java - HBase-创建表时出错

标签 java hadoop hbase

我正在尝试安装Hbase(hbase-0.94.8)。
我遵循了此页面中给出的步骤
http://archanaschangale.wordpress.com/2013/08/31/installing-pseudo-distributed-hbase-on-ubuntu/

我能够启动Hbase并进入shell,但是当我从shell输入create't1','c1'时,抛出以下错误

hbase(main):001:0> create 't1','c1'
14/03/15 10:23:16 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/03/15 10:23:18 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/03/15 10:23:19 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/03/15 10:23:21 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/03/15 10:23:23 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/03/15 10:23:27 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/03/15 10:23:31 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'}


hbase(main):002:0> 

最佳答案

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



这意味着HBase主服务器未运行。请验证它是否正在运行,然后尝试再次创建表

关于java - HBase-创建表时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22419915/

相关文章:

java - 使用 Quarkus Reactive MySQL Clients/io.vertx.mysqlclient 进行服务器故障转移

java - 错误: threadid=1: thread exiting with uncaught exception (group=0xb60734f0)

java - 由于 isValid() 操作无效,JDBC 到 hive 的连接失败

apache-spark - Hadoop 3和spark.sql:与HiveWarehouseSession和spark.sql一起使用

hbase - 更改 HBase 中的列限定符名称

java - 在 Lucene 4 中,AtomicReader 和 CompositeReader 有什么区别

java - Spring RoutingDataSourcevalidationQuery 没有被注入(inject)

使用 Hadoop Streaming 进行 avro 转换的 python 脚本

hadoop - 对 hbase/hdfs 的商业支持

hadoop - 每秒 HBase 请求为零