ClusterId read in ZooKeeper is null 处理
ClusterId read in ZooKeeper is null.
Re-running the program after fixing issue 1 will result in the following error in the log file (Oddly logged at INFO level)
13/12/11 09:45:33 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=90000 watcher=hconnection-0x207f5580
13/12/11 09:45:33 INFO zookeeper.RecoverableZooKeeper: Process identifier=hconnection-0x207f5580 connecting to ZooKeeper ensemble=localhost:2181
13/12/11 09:45:33 INFO zookeeper.ClientCnxn: Opening socket connection to server localhost.localdomain/127.0.0.1:2181. Will not attempt to authenticate using SASL (java.lang.SecurityException: Unable to locate a login configuration)
13/12/11 09:45:33 INFO zookeeper.ClientCnxn: Socket connection established to localhost.localdomain/127.0.0.1:2181, initiating session
13/12/11 09:45:33 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost.localdomain/127.0.0.1:2181, sessionid = 0x142e28373f3000c, negotiated timeout = 40000
13/12/11 09:45:33 INFO client.ZooKeeperRegistry: ClusterId read in ZooKeeper is null
解决办法
The HBase clients will discover the running HBase cluster using the following two properties:
- hbase.zookeeper.quorum: is used to connect to the zookeeper cluster
- zookeeper.znode.parent. tells which znode keeps the data (and address for HMaster) for the cluster
The value of zookeeper.znode.parent in HBASE_CONF/hbase-site.xml is specified as /hbase-unsecure (see below) which is correct but for some reason (still trying to figure this out), the value being printed is /hbase. So currently I’ve overridden this programatically in the client program by adding the following line to the program
conf.set(“zookeeper.znode.parent”, “/hbase-unsecure”);

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
- 上一篇
好文章列表(持续)
零、总技术和非技术 阿里感悟系列文章 CTO是干什么的? 英文电子书免费下(英文书太贵了,原谅我不尊重版权) 服务端工程师入门与进阶 Java 版 DB-Engines Ranking(所有数据库的排行榜) 如何写一本书?(分析的很好) 如何出一本技术书 怎么样写出更好、也更简短的源码分析书(黄健宏) 七年阿里老人谈新人成长 技术人员的发展之路 redis多数据中心 http://www.infoq.com/cn/presentations/ctrip-redis-multiple-datacenter-practices 前沿技术 基于Google Spanner的CockroachDB 一、IO模型 网络IO之阻塞、非阻塞、同步、异步总结 IO - 同步,异步,阻塞,非阻塞 (亡羊补牢篇) select、poll、epoll之间的区别总结[整理] 用户空间与内核空间,进程上下文与中断上下文[总结] 使用异步 I/O 大大提高应用程序的性能 怎样理解阻塞非阻塞与同步异步的区别?(知乎) 一个故事讲清楚 NIO select、poll、epoll之间的区别总结[整理] 二、j...
- 下一篇
SparkSql官方文档中文翻译(java版本)
1 概述(Overview) 2 DataFrames 2.1 入口:SQLContext(Starting Point: SQLContext) 2.2 创建DataFrames(Creating DataFrames) 2.3 DataFrame操作(DataFrame Operations) 2.4 运行SQL查询程序(Running SQL Queries Programmatically) 2.5 DataFrames与RDDs的相互转换(Interoperating with RDDs) 2.5.1 使用反射获取Schema(Inferring the Schema Using Reflection) 2.5.2 通过编程接口指定Schema(Programmatically Specifying the Schema) 3 数据源(Data Source) 3.1 一般Load/Save方法 3.1.1 手动指定选项(Manually Specifying Options) 3.1.2 存储模式(Save Modes) 3.1.3 持久化到表(Saving to Pers...
相关文章
文章评论
共有0条评论来说两句吧...