本人想单机搭建hbase
hbase-site.xm
hbase.rootdir
hdfs://tim:9000/hbase
hbase.cluster.distributed
false
hbase.zookeeper.property.dataDir
/data1/hadoop/zookeeper/zoo/data
hbase.zookeeper.quorum
tim:2181
hbase_env.sh
export HBASE_MANAGES_ZK=true 设置已经更改成了false,
java路径也设置了
启动了外带的zookeeper后,在启动hbase,就报错
2017-11-17 12:01:24,565 ERROR [main] master.HMasterCommandLine: Master exiting
java.io.IOException: Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting as clients (e.g. shell) will not be able to find this ZK quorum.
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:213)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:138)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
后来解决了,大概是因为配置了
hbase.zookeeper.quorum
tim:2181
改成
hbase.zookeeper.quorum
tim
也不行,zookeeper会自动调整内置的zookeeper端口为2182,
后来直接不配置hbase.zookeeper.quorum,就好了。
可见这个属性也会影响hbase是否开启自带的zookeeper