安装 Apache Hbase

3

我正在尝试在ubuntu 12.04环境下安装Hbase(hbase-0.94.8)。

我按照此页面中给出的步骤进行操作。

我能够启动Hbase并进入shell,但是当我从shell中输入“create 'test','cf'”时,出现了以下错误:

hbase(main):001:0> create 'test', 'cf'
13/06/11 13:01:40 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
13/06/11 13:01:41 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
13/06/11 13:01:42 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
13/06/11 13:01:44 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
13/06/11 13:01:46 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
13/06/11 13:01:50 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
13/06/11 13:01:54 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.

ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times

Here is some help for this command:
Create table; pass table name, a dictionary of specifications per
column family, and optionally a dictionary of table configuration.
Dictionaries are described below in the GENERAL NOTES section.
Examples:

  hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
  hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
  hbase> # The above in shorthand would be the following:
  hbase> create 't1', 'f1', 'f2', 'f3'
  hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true}
  hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']}
  hbase> create 't1', 'f1', {SPLITS_FILE => 'splits.txt'}
  hbase> # Optionally pre-split the table into NUMREGIONS, using
  hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname)
  hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'}

请有人解释一下这个安装出了什么问题。

谢谢,Rayappan A


你能把你的hbase-site.xml和hmaster日志文件的内容展示给我看吗? - Tariq
<configuration> <property> <name>hbase.rootdir</name> <value>file:///tmp/hbase-hduser/hbase</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/DIRECTORY/zookeeper</value> </property> </configuration> - Rayappan A
我想看一下你的日志文件。 - Tariq
3个回答

1
<!-- language: lang-xml -->

    <configuration>
      <property>
        <name>hbase.rootdir</name>
        <value>file:///home/ishwarya/hbase-store</value>
      </property>
      <property>
        <name>hbase.zookeeper.property.dataDir</name>
        <value>/home/ishwarya/zookeeper</value>
      </property>
      <property>
        <name>hbase.zookeeper.property.clientPort</name>
        <value>2182</value>
        <description>Property from ZooKeeper's config zoo.cfg.
                     The port at which the clients will connect.</description>
      </property>
    </configuration>

请编辑您的帖子并使用代码标记使其可读。 - laalto

0

我遇到了同样的错误,要纠正它,请前往conf文件夹中的hbase-site.xml,并删除属性标签(<!-- -->)之前和之后的注释。

这是我的hbase.site.xml文件,您可以将其与您的进行比较。 希望这可以帮助您。


0

必须启动HMaster。您可以使用WebUI进行操作。使用Cloudera Manager访问WebUI以启动HBase Master。然后它将正常工作。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接