eclipse连接hbase要存储数据时报错
13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp
13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:os.arch=i386
13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:os.version=2.6.38-13-generic
13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:user.name=hadoop
13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:user.home=/home/hadoop
13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:user.dir=/home/hadoop/Desktop/寒假/HbasePic
13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=192.168.6.202:2181,192.168.6.201:2181,192.168.6.203:2181 sessionTimeout=180000 watcher=hconnection
13/03/14 08:38:14 INFO zookeeper.ClientCnxn: Opening socket connection to server /192.168.6.202:2181
13/03/14 08:38:14 WARN client.ZooKeeperSaslClient: SecurityException: java.lang.SecurityException: Unable to locate a login configuration occurred when trying to find JAAS configuration.
13/03/14 08:38:14 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration.
13/03/14 08:38:14 INFO zookeeper.ClientCnxn: Socket connection established to datanode2.local/192.168.6.202:2181, initiating session
13/03/14 08:38:14 INFO zookeeper.ClientCnxn: Session establishment complete on server datanode2.local/192.168.6.202:2181, sessionid = 0x23d62b54a350021, negotiated timeout = 40000
13/03/14 08:38:14 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 2651@dell20-ubuntu
13/03/14 08:38:15 INFO client.HConnectionManager$HConnectionImplementation: getMaster attempt 0 of 10 failed; retrying after sleep of 1008
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489)
at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupConnection(HBaseClient.java:416)
at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:462)
at org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:1150)
at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:1000)
at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:150)
at $Proxy5.getProtocolVersion(Unknown Source)
at org.apache.hadoop.hbase.ipc.WritableRpcEngine.getProxy(WritableRpcEngine.java:183)
at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:335)
at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:312)
at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:364)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:682)
at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:110)
at com.hbase.mcc.test.createTable(test.java:51)
at com.hbase.mcc.test.main(test.java:234)
hosts文件也尝试修改过了,可以还是报一样的错