大家好,请教个问题,我在windows下,远程读hbase 数据,如果把hbase_site.xml文件打到jar包里,就可以运行这个jar,但是把hbase_site.xml放到跟jar包同一个目录下,就不能执行了。
在linux下,就可以,不知道大家遇到过这种问题没有。
15/10/29 21:37:48 INFO zookeeper.ZooKeeper: Initiating client connection, conne
tString=localhost:2181 sessionTimeout=180000 watcher=hconnection
15/10/29 21:37:49 INFO zookeeper.RecoverableZooKeeper: The identifier of this p
ocess is 14864@zhangxq3519a
15/10/29 21:37:49 INFO zookeeper.ClientCnxn: Opening socket connection to serve
127.0.0.1/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown
error)
15/10/29 21:37:50 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexp
cted error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocke
NIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068) |