请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

java链接Hbase连不上,控制台日志

老师,我在windows环境上用java代码访问阿里云上部署的hbase,启动程序后控制台一直不断输出如下log,百度过也没有类似的答案,请问是什么原因呢?

17:05:19.782 [main-SendThread(39.107.85.174:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Got ping response for sessionid: 0x161e5234ea2004c after 42ms

17:05:19.806 [main-SendThread(39.107.85.174:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x161e5234ea2004c, packet:: clientPath:null serverPath:null finished:false header:: 36,4  replyHeader:: 36,601,0  request:: '/hbase/meta-region-server,F  response:: #ffffffff0001a726567696f6e7365727665723a363030323067fffffffaffffffbbffffff8e6cffffffd3ffffff866550425546a13a66861646f6f7010fffffff4ffffffd4318ffffffe5ffffff99ffffffc1ffffffadffffff9e2c100183,s{194,194,1519976995928,1519976995928,0,0,0,0,60,0,194} 

17:05:22.065 [main] DEBUG org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation - locateRegionInMeta parentTable=hbase:meta, metaLocation=[region=hbase:meta,,1.1588230740, hostname=hadoop,60020,1519976991973, seqNum=0], attempt=8 of 31 failed; retrying after sleep of 10041 because: unknown host: hadoop

17:05:22.089 [main-SendThread(39.107.85.174:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x161e5234ea2004c, packet:: clientPath:null serverPath:null finished:false header:: 37,8  replyHeader:: 37,601,0  request:: '/hbase,F  response:: v{'replication,'meta-region-server,'rs,'splitWAL,'backup-masters,'table-lock,'flush-table-proc,'region-in-transition,'online-snapshot,'master,'running,'recovering-regions,'draining,'namespace,'hbaseid,'table} 

17:05:22.115 [main-SendThread(39.107.85.174:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x161e5234ea2004c, packet:: clientPath:null serverPath:null finished:false header:: 38,4  replyHeader:: 38,601,0  request:: '/hbase/meta-region-server,F  response:: #ffffffff0001a726567696f6e7365727665723a363030323067fffffffaffffffbbffffff8e6cffffffd3ffffff866550425546a13a66861646f6f7010fffffff4ffffffd4318ffffffe5ffffff99ffffffc1ffffffadffffff9e2c100183,s{194,194,1519976995928,1519976995928,0,0,0,0,60,0,194} 

17:05:32.163 [main-SendThread(39.107.85.174:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x161e5234ea2004c, packet:: clientPath:null serverPath:null finished:false header:: 39,8  replyHeader:: 39,601,0  request:: '/hbase,F  response:: v{'replication,'meta-region-server,'rs,'splitWAL,'backup-masters,'table-lock,'flush-table-proc,'region-in-transition,'online-snapshot,'master,'running,'recovering-regions,'draining,'namespace,'hbaseid,'table} 

17:05:32.163 [main-SendThread(39.107.85.174:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Got ping response for sessionid: 0x161e5234ea2004c after 25ms

17:05:32.187 [main-SendThread(39.107.85.174:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x161e5234ea2004c, packet:: clientPath:null serverPath:null finished:false header:: 40,4  replyHeader:: 40,601,0  request:: '/hbase/meta-region-server,F  response:: #ffffffff0001a726567696f6e7365727665723a363030323067fffffffaffffffbbffffff8e6cffffffd3ffffff866550425546a13a66861646f6f7010fffffff4ffffffd4318ffffffe5ffffff99ffffffc1ffffffadffffff9e2c100183,s{194,194,1519976995928,1519976995928,0,0,0,0,60,0,194} 

17:05:34.445 [main] DEBUG org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation - locateRegionInMeta parentTable=hbase:meta, metaLocation=[region=hbase:meta,,1.1588230740, hostname=hadoop,60020,1519976991973, seqNum=0], attempt=9 of 31 failed; retrying after sleep of 10070 because: unknown host: hadoop

17:05:34.475 [main-SendThread(39.107.85.174:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x161e5234ea2004c, packet:: clientPath:null serverPath:null finished:false header:: 41,8  replyHeader:: 41,601,0  request:: '/hbase,F  response:: v{'replication,'meta-region-server,'rs,'splitWAL,'backup-masters,'table-lock,'flush-table-proc,'region-in-transition,'online-snapshot,'master,'running,'recovering-regions,'draining,'namespace,'hbaseid,'table} 

17:05:34.503 [main-SendThread(39.107.85.174:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x161e5234ea2004c, packet:: clientPath:null serverPath:null finished:false header:: 42,4  replyHeader:: 42,601,0  request:: '/hbase/meta-region-server,F  response:: #ffffffff0001a726567696f6e7365727665723a363030323067fffffffaffffffbbffffff8e6cffffffd3ffffff866550425546a13a66861646f6f7010fffffff4ffffffd4318ffffffe5ffffff99ffffffc1ffffffadffffff9e2c100183,s{194,194,1519976995928,1519976995928,0,0,0,0,60,0,194} 

17:05:44.607 [main-SendThread(39.107.85.174:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x161e5234ea2004c, packet:: clientPath:null serverPath:null finished:false header:: 43,8  replyHeader:: 43,601,0  request:: '/hbase,F  response:: v{'replication,'meta-region-server,'rs,'splitWAL,'backup-masters,'table-lock,'flush-table-proc,'region-in-transition,'online-snapshot,'master,'running,'recovering-regions,'draining,'namespace,'hbaseid,'table} 

17:05:44.608 [main-SendThread(39.107.85.174:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Got ping response for sessionid: 0x161e5234ea2004c after 28ms


正在回答 回答被采纳积分+3

1回答

Michael_PK 2018-03-05 17:25:03

这都是debug ,没关系啊,你可以调整log4j 的日志级别

0 回复 有任何疑惑可以回复我~
  • 提问者 qq_大鳄鱼_0 #1
    我做的操作是获取hbase表中的内容,这个日志一直都在滚动,程序停不下来,好像是多次尝试链接服务器连不上。。我注意到有这么一段日志:
    17:27:24.325 [main] DEBUG org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation - locateRegionInMeta parentTable=hbase:meta, metaLocation=[region=hbase:meta,,1.1588230740, hostname=hadoop,60020,1519976991973, seqNum=0], attempt=7 of 31 failed; retrying after sleep of 10096 because: unknown host: hadoop
    最后一个写着unknown host: hadoop,我生产环境上的host是叫hadoop的,难道是环境上有什么地方配置失败导致找不到host吗?
    回复 有任何疑惑可以回复我~ 2018-03-05 17:31:11
  • 提问者 qq_大鳄鱼_0 #2
    我的hbase-site.xml配置是这样的
    <configuration>
     <property>
      <name>hbase.rootdir</name>
      <value>hdfs://hadoop:8020/hbase</value>
     </property>
     <property>
      <name>hbase.cluster.distributed</name>
      <value>true</value>
     </property>
     <property>
      <name>hbase.zookeeper.quorum</name>
      <value>hadoop:2181</value>
     </property>
    </configuration>
    回复 有任何疑惑可以回复我~ 2018-03-05 17:35:19
  • Michael_PK 回复 提问者 qq_大鳄鱼_0 #3
    你本地host配置映射了吗
    回复 有任何疑惑可以回复我~ 2018-03-05 18:01:08
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信