hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Busbey <bus...@cloudera.com>
Subject Re: Hbase 1.0 Distributed Mode:Issue:Master is initializing
Date Fri, 03 Apr 2015 16:11:42 GMT
you should check the master's log for what is causing it to be delayed in

A few configuration errors:

1) zk dataDir in hbase configs

<property>           <name>hbase.zookeeper.property.dataDir</name>
 <value>/hadoop/hdfs/zookeeper/data/zk1</value>      </property>

This property is not needed, because you have specified a ZK quorum and are
in distributed mode.

2) HDFS address

<property>        <name>fs.defaultFS</name>

Did you redact this, or is your HDFS set up in HA with the nameservice

If it's the latter, then this config is wrong:

<property>            <name>hbase.rootdir</name>            <value>hdfs://</value>       </property>

This is presumably the address of one of your NameNodes. If you are using
HA, then this should use the nameservice instead of a particular host.
Otherwise, HBase will get errors whenever the named host is not active.

3) IP addresses

In general, you should be using FQDN for hosts in your cluster and not IP
addresses. If you are using IP addresses because DNS is problematic, please
be aware that several parts of the cluster are going to attempt to use
reverse DNS to turn that back into a host name. You can save yourself
trouble by doing the work upfront to make sure forward and reverse DNS
behaves properly (even if just with coordinated /etc/hosts files)

On Fri, Apr 3, 2015 at 11:04 AM, sridhararao mutluri <drmsr6@hotmail.com>

> Team,
> I am facing below error.Please suggest solution:
> hbase(main):001:0> create 'cars', 'vi'
> ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is
> initializing        at
> org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:1869)
>       at
> org.apache.hadoop.hbase.master.HMaster.checkNamespaceManagerReady(HMaster.java:1874)
>       at
> org.apache.hadoop.hbase.master.HMaster.ensureNamespaceExists(HMaster.java:2067)
>       at
> org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:1262)
>   at
> org.apache.hadoop.hbase.master.MasterRpcServices.createTable(MasterRpcServices.java:398)
>       at
> org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:42436)
>       at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2031)
>     at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:107)
>   at
> org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
>       at
> org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
> at java.lang.Thread.run(Thread.java:745)
> hbase-site.xml shows:
> <configuration>     <property>            <name>hbase.master</name>
>     <value></value>       </property>       <property>
>           <name>hbase.rootdir</name>            <value>hdfs://
></value>       </property>      <property>
>  <name>hbase.zookeeper.property.dataDir</name>
>  <value>/hadoop/hdfs/zookeeper/data/zk1</value>      </property>
>  <property>             <name>hbase.cluster.distributed</name>
>  <value>true</value>       </property>       <property>
>  <name>hbase.zookeeper.property.clientPort</name>
>  <value>2181</value>       </property>       <property>
>  <name>hbase.zookeeper.quorum</name>
>  <value>,,</value>      </property>
> Hadoop core-site.xml:
> <configuration>    <property>        <name>fs.defaultFS</name>
> <value>hdfs://mycluster</value>    </property>     <property>
> Zookeeper status:[hadoop@...... bin]$ ./zkServer.sh statusJMX enabled by
> defaultUsing config: /home/hadoop/zookeeper-3.4.6/bin/../conf/zoo.cfgMode:
> follower
> Thanks,Sridhar


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message