我是HBase的新手,正在尝试在Ubuntu14.04上配置HBase。在配置并启动HBase之后(进入HBase命令行界面)。如果我运行任何HBase命令,就会得到节点/hbase不在ZooKeeper中。请在下面找到我的hbase-site.xml和zoo.cfg。
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost/hbase</value>
<description>Enter the HBase NameNode server hostname</description>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
<description> The port at which the clients will connect.
</description>
</property>
<property>
<name>hbase.master.port</name>
<value>2080</value>
<description>The port the HBase Master should bind to.</description>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/var/lib/zookeeper</value>
<description>Property from ZooKeeper's config zoo.cfg.
The directory where the snapshot is stored.
</description>
</property>
<property>
<name>zookeeper.znode.parent</name>
<value>/hbase</value>
</property>
</configuration>Zoo.cfg
dataDir=/var/lib/zookeeper
server.1=localhost:2888:3888提前感谢您的所有帮助/支持。
发布于 2016-07-19 04:25:27
您是否在hbase-site.xml中设置了hbase.zookeeper.quorum,如下所示:
<property>
<name>hbase.zookeeper.quorum</name>
<value>your_zookeeper_url:2181</value>
</property>发布于 2016-07-19 13:08:32
将zookeeper.znode.parent属性值更改为/hbase-unsecure并通知我
<property>
<name>zookeeper.znode.parent</name>
<value>/hbase-unsecure</value>
</property>发布于 2016-07-21 15:49:02
在我的例子中,我必须在hadoop-env.sh中为hbase/lib添加类路径。添加hbase类路径解决了我的问题。向Anil Khiani致敬
https://stackoverflow.com/questions/38387219
复制相似问题