分享

hbase put异常

fanbells 2013-12-26 14:29:42 发表于 异常错误 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 11742
使用hbase api往表中添加数据时报下面的错误,查了一些帖子说是hosts的问题,但查看了hosts文件,配置是对的。异常如下:
WARN client.HConnectionManager$HConnectionImplementation: Failed all from region=TEST,138742416472259301,1387714756070.367ad81bba063b050df832ba253d7c1f., hostname=slave3, port=60020
java.util.concurrent.ExecutionException: org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed setting up proxy interface org.apache.hadoop.hbase.ipc.HRegionInterface to slave3/192.168.1.193:60020 after attempts=1
        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
        at java.util.concurrent.FutureTask.get(FutureTask.java:83)
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.processBatchCallback(HConnectionManager.java:1711)
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.processBatch(HConnectionManager.java:1563)
        at org.apache.hadoop.hbase.client.HTable.flushCommits(HTable.java:990)
        at org.apache.hadoop.hbase.client.HTable.put(HTable.java:837)
        at com.yq.hbclient.dao.WrapperHbaseDaoIm.putMuliteKv(WrapperHbaseDaoIm.java:191)
        at com.yq.pa_cx_data.dao.Pa_Cx_Data_DaoIm.insertSingle(Pa_Cx_Data_DaoIm.java:79)
        at com.yqzk.datav3.data.UserDataDis.run(UserDataDis.java:601)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed setting up proxy interface org.apache.hadoop.hbase.ipc.HRegionInterface to slave3/192.168.1.193:60020 after attempts=1
        at org.apache.hadoop.hbase.ipc.HBaseRPC.handleConnectionException(HBaseRPC.java:263)
        at org.apache.hadoop.hbase.ipc.HBaseRPC.waitForProxy(HBaseRPC.java:231)
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getHRegionConnection(HConnectionManager.java:1476)
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getHRegionConnection(HConnectionManager.java:1435)
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getHRegionConnection(HConnectionManager.java:1422)
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$3$1.connect(HConnectionManager.java:1544)
        at org.apache.hadoop.hbase.client.ServerCallable.withoutRetries(ServerCallable.java:227)
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$3.call(HConnectionManager.java:1547)
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$3.call(HConnectionManager.java:1535)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
        ... 1 more
Caused by: java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
        at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:511)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:481)
        at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupConnection(HBaseClient.java:390)
        at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:436)
        at org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:1133)
        at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:980)
        at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:86)
        at com.sun.proxy.$Proxy5.getProtocolVersion(Unknown Source)
        at org.apache.hadoop.hbase.ipc.WritableRpcEngine.getProxy(WritableRpcEngine.java:138)
        at org.apache.hadoop.hbase.ipc.HBaseRPC.waitForProxy(HBaseRPC.java:208)
        ... 12 more

已有(2)人评论

跳转到指定楼层
lzw 发表于 2013-12-26 14:47:23
你在本地Telnet一下要连接的zookeeper地址是否通,你也可以看看我写的例子Hadoop MapReduce统计结果直接输出hbase
回复

使用道具 举报

fanbells 发表于 2013-12-26 15:18:58
lzw 发表于 2013-12-26 14:47
你在本地Telnet一下要连接的zookeeper地址是否通,你也可以看看我写的例子Hadoop MapReduce统计结果直接输 ...

问题已经解决,原因正在查找,是hadoop集群出现了问题,查看了50070页面发现datanode有deal的,但是jps发现进程都在。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条