【问题标题】:Apache Hbase installationApache Hbase 安装
【发布时间】:2013-06-11 13:27:53
【问题描述】:

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

我按照本页给出的完全相同的步骤进行操作

http://hbase.apache.org/book/quickstart.html

我能够启动 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'}

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

问候, 瑞亚潘A

【问题讨论】:

  • 你能告诉我你的 hbase-site.xml 和 hmaster 日志文件的内容吗?
  • hbase.rootdirfile:///tmp/hbase-hduser/hbasehbase.zookeeper.property.dataDir/DIRECTORY/zookeeper
  • 我想看看你的日志文件一次。

标签: apache hadoop hbase


【解决方案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>

【讨论】:

  • 请编辑您的帖子并使用代码标记使其可读。
【解决方案2】:

我得到了同样的错误来纠正它去 conf 文件夹中的 hbase-site.xml 并删除属性标记之前和之后的 cmets (&lt;!-- --&gt;)。

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

【讨论】:

    【解决方案3】:

    必须启动 HMaster。您可以使用 webUI 来做到这一点。使用 cloudera manager 到 webUi 来启动 hbase master。然后就可以正常使用了

    【讨论】:

      猜你喜欢
      • 2014-01-21
      • 2012-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-11
      • 2016-02-22
      • 1970-01-01
      相关资源
      最近更新 更多