在开启Hbase的时候

运行,start-hbase.sh 
报错:
localhost: ssh: Could not resolve hostname localhost: Name or service not known
starting master, logging to /apps/hbase-1.2.0-cdh5.13.2/logs/hbase-root-master-hadoop01.out
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
hadoop01: starting regionserver, logging to /apps/hbase-1.2.0-cdh5.13.2/bin/../logs/hbase-root-regionserver-hadoop01.out
hadoop01: Java HotSpot(TM) 64-Bit Server VM warning:  ignoring option PermSize=128m; support was removed in 8.0
hadoop01: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0

查看日志

2019-05-29 19:04:30,507 INFO  [main] zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=90000 watcher=master:600000
x0, quorum=localhost:2181, baseZNode=/hbase

发现quorum=localhost:2181

vi ${HBASE_HOME}/conf/hbase-site.xml
修改:
<property>
	<name>hbase.zookeeper.quorum</name>
	<value>hadoop01</value>
</property>

Hbase自带的zookeeper会出现很多问题
学会查看日志${XXXX}/logs/XXXX.log

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐