hdfs - HMaster node disappeared while execute hbase shell command -
i new in hbase. started work hbase recently,in ubuntu server standalone hbase work fine zookeeper. however, while trying work pseudo-distributed local, it's having strange don't understand. have configured hbase conf/hbase-site.xml according below:
<name>hbase.cluster.distributed</name> <value>true</value>
<name>hbase.rootdir</name> <value>hdfs://localhost:9000/hbase</value>
<name>hbase.zookeeper.property.datadir</name> <value>/home/username/zookeeper/new</value>
and have setup hdfs single node cluster of pseudo-distributed operation. tricky part when run hbase,zookeeper , hadoop(hdfs) , "jps" command show below information.
8998 hregionserver
8066 resourcemanager
8229 nodemanager
7456 namenode
7852 secondarynamenode
7045 quorumpeermain
9269 jps
8815 hmaster
in addition after executing "hbase shell" command ask hbase operation. hbase(main):001:0>
however, while put "list" or create table command, give
error: can't master address zookeeper; znode data == null .
and after exiting hbase(main):001:0> see
8998 hregionserver
8066 resourcemanager
8229 nodemanager
7456 namenode
9656 jps
7852 secondarynamenode
7045 quorumpeermain
here, 8815 hmaster disappeared.
i appreciate if find way solve problem.
search through hbase-env.sh file hbase_manages_zk
, make sure set true:
export hbase_manages_zk=true
then head on over hbase-site.conf , let know on nodes run zookeeper (it show variation of quorumpeer jps):
<property> <name>hbase.zookeeper.quorum</name> <value>localhost</value> </property>
if still doesn't work, try switching localhost
in conf files hostname (making sure in machine's /etc/hosts file).
Comments
Post a Comment