2016-07-15 54 views
-1

我是HBase的新手,並試圖在Ubuntu 14.04上配置HBase。配置並啓動HBase(進入HBase CLI)。如果我運行任何HBase命令,我得到的節點/hbase不在ZooKeeper中。 請在下面找到我的hbase-site.xmlzoo.cfgHBase ZooKeeper

<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 

欣賞提前你的一切幫助/支持。

+0

請不要全部大寫鍵入您的瓷磚。它在這裏被認爲是SHOUTING(就像它在大多數網站上一樣),它不會早日得到答案,而且非常粗魯和煩人。閱讀也很難。如果您查看主頁面,您將不會在全部大寫中找到任何其他問題。請停止這樣做。謝謝。 –

回答

0

你設置hbase.zookeeper.quorum在HBase的-site.xml中,像這樣:

<property> 
    <name>hbase.zookeeper.quorum</name> 
    <value>your_zookeeper_url:2181</value> 
</property> 
0

變化zookeeper.znode.parent屬性值/hbase-unsecure,讓我知道

<property> 
    <name>zookeeper.znode.parent</name> 
    <value>/hbase-unsecure</value> 
</property> 
0

我不得不添加在我的情況下,hadoop-env.sh中的hbase/lib的類路徑。添加hbase classpath解決了我的問題。 問候 阿尼爾Khiani

0

這裏是我的HBase-site.xml中,我希望它能幫助:

<?xml version="1.0"?> 
 
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> 
 
<configuration> 
 
    <property> 
 
     <name>hbase.rootdir</name> 
 
     <value>hdfs://localhost:54310/hbase</value> 
 
    </property> 
 

 
    <property> 
 
     <name>hbase.cluster.distributed</name> 
 
     <value>true</value> 
 
    </property> 
 
    
 
    <property> 
 
     <name>hbase.zookeeper.quorum</name> 
 
     <value>localhost</value> 
 
    </property> 
 
    
 
    <property> 
 
     <name>hbase.master</name> 
 
     <value>localhost:60000</value> 
 
    </property> 
 
    
 
    <property> 
 
     <name>hbase.zookeeper.property.dataDir</name> 
 
     <value>/usr/local/hadoop/zookeeper</value> 
 
    </property> 
 
    
 
    <property> 
 
     <name>hbase.zookeeper.property.clientPort</name> 
 
     <value>2181</value> 
 
    </property> 
 
    
 
    </configuration>

-1
<dependency> 
     <groupId>org.apache.hbase</groupId> 
     <artifactId>hbase</artifactId> 
     <version>3.0.0-SNAPSHOT</version> 
     <type>pom</type> 
    </dependency> 
相關問題