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>