免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 20852 | 回复: 3
打印 上一主题 下一主题

[HBase] 关于hbase中hbase.zookeeper.quorum设置问题 [复制链接]

论坛徽章:
71
15-16赛季CBA联赛之同曦
日期:2018-08-23 15:41:42辰龙
日期:2014-08-15 09:07:43狮子座
日期:2014-06-03 13:55:33亥猪
日期:2014-06-02 11:17:08巨蟹座
日期:2014-05-06 10:02:03午马
日期:2014-05-04 08:18:27亥猪
日期:2014-04-29 11:11:32技术图书徽章
日期:2014-04-24 15:51:26技术图书徽章
日期:2014-04-17 11:01:53辰龙
日期:2014-04-15 12:45:46亥猪
日期:2014-04-11 09:06:23射手座
日期:2014-04-01 15:28:10
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-02-11 14:27 |只看该作者 |倒序浏览
5可用积分
本帖最后由 zhaopingzi 于 2014-02-11 14:27 编辑

在调试hbase时发现
当regionservers的内容和hbase.zookeeper.quorum一致时,hbase启动没问题,如:

  <property>
    <name>hbase.zookeeper.quorum</name>
    <value>h1,h2,h3,h4,h5</value>
    </property>


#cat regionservers
     h1
     h2
     h3
     h4
     h5

但是当设置成下面时,把zookeeper起在h6~h10时hbase报错:
<property>
    <name>hbase.zookeeper.quorum</name>
    <value>h6,h7,h8,h9,h10</value>
    </property>

报错信息:

  1. 。。。。。。
  2. 014-02-11 13:57:00,093 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server h3/192.168.2.152:2181
  3. 2014-02-11 13:57:00,094 INFO org.apache.zookeeper.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.
  4. 2014-02-11 13:57:00,094 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
  5. java.net.ConnectException: Connection refused
  6.         at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
  7.         at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:708)
  8.         at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286)
  9.         at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035)
  10. 2014-02-11 13:57:00,197 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server h4/192.168.2.153:2181
  11. 2014-02-11 13:57:00,198 INFO org.apache.zookeeper.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.
  12. 2014-02-11 13:57:00,198 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
  13. java.net.ConnectException: Connection refused
  14.         at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
  15.         at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:708)
  16.         at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286)
  17.         at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035)
  18. 2014-02-11 13:57:00,302 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server h1/192.168.2.150:2181
  19. 2014-02-11 13:57:00,302 INFO org.apache.zookeeper.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.
  20. 2014-02-11 13:57:00,302 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
  21. java.net.ConnectException: Connection refused
  22.         at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
  23.         at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:708)
  24.         at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286)
  25.         at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035)


  26. 。。。。。
复制代码
看日志,说明hbase去联h1~h5去了,为什么不去联h6~h10呢???,难道regionsever必须和zookeeper设置在一起吗?

注:hbase的环境设置成已export HBASE_MANAGES_ZK=false

论坛徽章:
0
2 [报告]
发表于 2014-03-09 21:15 |只看该作者
不懂,学习。。。

论坛徽章:
16
IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每月发帖之星
日期:2015-09-11 19:30:52IT运维版块每周发帖之星
日期:2015-09-11 19:20:31IT运维版块每日发帖之星
日期:2015-08-26 06:20:00每日论坛发贴之星
日期:2015-08-20 06:20:00IT运维版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15金牛座
日期:2014-05-04 16:58:09双子座
日期:2013-12-17 16:44:37辰龙
日期:2013-11-22 15:20:59狮子座
日期:2013-11-18 22:55:08射手座
日期:2013-11-12 10:54:26
3 [报告]
发表于 2015-08-17 13:44 |只看该作者
region server 和hmaster里zk的信息必须保持一致吧。都是同一个hbase-site.xml吧。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP