Error:can ' t get master address from zookeeper; Znode data = = Null__hadoop

Source: Internet
Author: User
Tags zookeeper file permissions
Error:can ' t get master address from zookeeper; Znode data = null
http://blog.csdn.net/u010022051/article/details/44176931
Run HBase shell times wrong:

HBase (main):001:0> list

Error:can ' t get master address from zookeeper; Znode data = null


Here's 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:.* '


Workaround:

(1) Reason: The user running HBase (zookeeper) cannot write to the zookeeper file, causing Znode data to be empty.

Workaround: Specify a directory where the user running HBase has write file permissions in Hbase-site.xml as the Zookeeper data directory, as
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/user88/zk_data</value>
</property>

(2) in the Hbase-site.xml file

<property>
<name>hbase.rootdir</name>
<value>hdfs://hadoop1:49002/hbase</value>
</property>


The IP setting in RootDir is very important, it needs to set the corresponding IP
is not the same as the path in Fs.defaultfs in Core-site.xml

<property>
<name>fs.defaultFS</name>
<value>hdfs://hadoop1:9000</value>
</property>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.