5

经过几次尝试,我使用 hbase 0.94.1 和 zookeeper 3.3.6,hbase 的 master 关闭并且 sw 退出

这些是我从 shell 得到的错误

12/09/26 18:58:35 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
12/09/26 18:58:35 INFO zookeeper.ClientCnxn: Opening socket connection to server /127.0.0.1:2181
12/09/26 18:58:35 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 5133@xxx-xxx
12/09/26 18:58:35 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session
12/09/26 18:58:35 WARN zookeeper.ClientCnxnSocket: Connected to an old server; r-o mode will be unavailable
12/09/26 18:58:35 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x13a037edbb2000c, negotiated timeout = 40000
12/09/26 18:58:36 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
12/09/26 18:58:36 INFO client.HConnectionManager$HConnectionImplementation: Closed zookeeper sessionid=0x13a037edbb2000c
12/09/26 18:58:36 INFO zookeeper.ZooKeeper: Session: 0x13a037edbb2000c closed
12/09/26 18:58:36 INFO zookeeper.ClientCnxn: EventThread shut down

org.apache.hadoop.hbase.MasterNotRunningException: Retried 10 times
    at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:127)
    at util.HBaseHelper.<init>(HBaseHelper.java:29)
    at util.HBaseHelper.getHelper(HBaseHelper.java:33)
    at driver.ABoxHbaseTableMaker.makeTable(ABoxHbaseTableMaker.java:39)
    at driver.ABoxImporterDriver.run(ABoxImporterDriver.java:55)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
    at driver.ABoxImporterDriver.main(ABoxImporterDriver.java:32)
    at gui.Main.jButton1ActionPerformed(Main.java:274)
    at gui.Main.access$3(Main.java:241)
    at gui.Main$5.actionPerformed(Main.java:160)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
    ...

T试图改变端口,但没有。

这些是配置文件:

动物园.cfg:

tickTime=2000
dataDir=/home/.../.../zookeeper-3.3.6/data
clientPort=2181

hbase-site.xml

<configuration>
<property>
    <name>hbase.rootdir</name>
    <value>file:///home/.../.../hbase-0.94.1/hbDATA/</value>
  </property>
 <property>
    <name>hbase.zookeeper.quorum</name>
    <value>localhost</value>
 </property>
 <property>
    <name>zookeeper.znode.parent</name>
    <value>file:///home/.../.../hbase-0.94.1/hbDATA/</value>
 </property>
 <property>
    <name>hbase.zookeeper.property.clientPort</name>
    <value>2181</value>
 </property>
</configuration>
4

1 回答 1

0

如果您在独立模式下使用 HBase,您甚至不需要所有这些属性..虽然,伪或完全分布式模式需要额外设置..通过查看您的配置道具,我假设您在本地使用 HBase模式。所以你可以跳过所有这些东西。而对于伪分布式模式,HBase 的默认 ZK 就足够了。

于 2012-10-02T18:56:26.953 回答