ERROR: org.apache.hadoop.hbase.PleaseHoldException: org.apache.hadoop.hbase.PleaseHoldException: Mas

来源:互联网 发布:程序员的一天 编辑:程序博客网 时间:2024/05/13 09:57
[root@SZB-L0019009 ~]#  /appcom/hbase/bin/hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.94.11, r1513697, Wed Aug 14 04:54:46 UTC 2013


hbase(main):001:0>  create 't1',{NAME => 'f1', VERSIONS => 2},{NAME => 'f2', VERSIONS => 2}


ERROR: org.apache.hadoop.hbase.PleaseHoldException: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing


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配置文件问题,肯定的

解决:

进入

[root@SZB-L0019009 hadoop-1.2.1]# cd ..
[root@SZB-L0019009 HadoopInstall]# ls
hadoop-1.2.1
[root@SZB-L0019009 HadoopInstall]# cd ..
[root@SZB-L0019009 appcom]# ls
apps            GangliaInstall  hadoop-config  hbase         HbaseInstall    PhoenixInstall  zookeeper         ZookeeperInstall
ganglia-config  hadoop          HadoopInstall  hbase-config  phoenix-config  softwares       zookeeper-config
[root@SZB-L0019009 appcom]# cd hbase
hbase/        hbase-config/ 
[root@SZB-L0019009 appcom]# cd hbase-config/
[root@SZB-L0019009 hbase-config]# ls
backup-masters                    hbase-env.cmd  hbase-policy.xml  hbase-site.xml.20150226  hdfs-site.xml     regionservers
hadoop-metrics2-hbase.properties  hbase-env.sh   hbase-site.xml    hbase-site.xml.bak       log4j.properties
[root@SZB-L0019009 hbase-config]# vi hbase-site.xml


修改其中的

  <property>
    <name>hbase.master</name>
    <value>SZB-L0015691:60000</value>
  </property>

0 0