eclipse连接hbase要存储数据时报错

island1406 2013-03-14 08:55:21
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文件也尝试修改过了,可以还是报一样的错
...全文
369 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
翾飞 2013-04-16
  • 打赏
  • 举报
回复
怎么设置hosts
qinglang0821 2013-04-03
  • 打赏
  • 举报
回复
请问如何明确namenode和datanode的ip地址啊?
island1406 2013-03-14
  • 打赏
  • 举报
回复
找到原因了,没有在hosts文件中明确,namenode和datanode的ip地址

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧