Hbase安装遇到问题及如何解决

进行hbase伪分布式模式配置,hadoop版本2.10.0,hbase版本1.6.0(1.5.0同),按照相应的教程(http://dblab.xmu.edu.cn/blog/install-hbase/)配置./hbase/conf/hbase-env.sh和./hbase/conf/hbase-site.xml文件,运行hbase shell 出现以下错误:

hbase(main):001:0> list
TABLE

ERROR: Can't get master address from ZooKeeper; znode data == null

Here is some help for this command:
List all tables in hbase. Optional regular expression parameter could
be used to filter the output. Examples:

hbase> list
hbase> list 'abc.'
hbase> list 'ns:abc.
'
hbase> list 'ns:.*'

且用命令启动hbase之后,输入jps查看后会发现HBase服务只剩余HQuorumPeer还在运行,Hregionserver和hmaster已经消失。

各种尝试之后,发现只要将./hbase/conf/hbase-site.xml文件修改成以下格式即可正常运行:

<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>
</configuration>

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • hadoop2集群搭建详解------------------------天津九安医疗电子--吴伟 一、需要软件 ...
    hogface阅读 5,914评论 1 4
  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 13,214评论 0 13
  • Hbase集群安装指南 HBase – Hadoop Database,是一个高可靠性、高性能、面向列、可伸缩的分...
    阿懒土灵阅读 5,384评论 0 3
  • 一、Hbase简介 HBase是Apache Hadoop的数据库,能够对大型数据提供随机、实时的读写访问,是Go...
    鹅鹅鹅_阅读 2,823评论 0 1
  • 山里有秋风扫落叶,有薄雾萦绕山峦,却无人弄喧哗,独得翠鸟奏轻调,还算清静。 身在喧市独求静,守着空山想声音 难得舒...
    Lessmorelee阅读 2,593评论 0 5

友情链接更多精彩内容