主问题:
Exception in thread "main" org.apache.hadoop.hbase.client.RetriesExhaustedException
引发问题:
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 user 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:.*'
解决方法:
解决思路:
(1)面对Java编程产生的Exception,凡凡先检查本地配置
(如:configuration.set(“hbase.rootdir”,”hdfs://localhost:9000/hbase”);)
(2)确认HBase是否正常(如:引发问题)。说明HBase这也不对(而之前是可以的,那说明Hadoop可以异常)
So,我重启次。发现正确运行了,可能是之前暂停导致SSH等断开
Tips:
这里启动关闭Hadoop和HBase的顺序一定是:
启动Hadoop—>启动HBase—>关闭HBase—>关闭Hadoop