Support Questions
Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

check HBase failed while deploying on Ambari. Any Suggestions?

New Contributor


I am facing problem while installing HBase, below are the logs,

Python script has been killed due to timeout after waiting 300 secs

2017-10-11 01:53:22,752 - Stack Feature Version Info: Cluster Stack=2.6, Cluster Current Version=, Command Stack=None, Command Version= ->
2017-10-11 01:53:22,764 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2017-10-11 01:53:22,769 - checked_call['hostid'] {}
2017-10-11 01:53:22,774 - checked_call returned (0, '1c09eea3')
2017-10-11 01:53:22,780 - File['/var/lib/ambari-agent/tmp/'] {'content': StaticFile(''), 'mode': 0755}
2017-10-11 01:53:22,812 - File['/var/lib/ambari-agent/tmp/'] {'content': StaticFile(''), 'mode': 0755}
2017-10-11 01:53:22,839 - File['/var/lib/ambari-agent/tmp/'] {'content': Template(''), 'mode': 0755}
2017-10-11 01:53:22,887 - Writing File['/var/lib/ambari-agent/tmp/'] because contents don't match
2017-10-11 01:53:22,888 - Execute[' /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/ && /var/lib/ambari-agent/tmp/ /usr/hdp/current/hbase-client/conf id1c09eea3_date531117 /usr/hdp/current/hbase-client/bin/hbase &&  /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/'] {'logoutput': True, 'tries': 6, 'user': 'ambari-qa', 'try_sleep': 5}

ERROR: Can't get the location for replica 0

Here is some help for this command:
Start disable of named table:
  hbase> disable 't1'
  hbase> disable 'ns1:t1'

ERROR: Can't get the location for replica 0

Here is some help for this command:
Drop the named table. Table must first be disabled:
  hbase> drop 't1'
  hbase> drop 'ns1:t1'

ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
 at org.apache.hadoop.hbase.master.HMaster.checkInitialized(
 at org.apache.hadoop.hbase.master.HMaster.checkNamespaceManagerReady(
 at org.apache.hadoop.hbase.master.HMaster.ensureNamespaceExists(
 at org.apache.hadoop.hbase.master.HMaster.createTable(
 at org.apache.hadoop.hbase.master.MasterRpcServices.createTable(
 at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(
 at org.apache.hadoop.hbase.ipc.RpcExecutor$
 at org.apache.hadoop.hbase.ipc.RpcExecutor$

Here is some help for this command:
Creates a table. Pass a table name, and a set of column family
specifications (at least one), and, optionally, table configuration.
Column specification can be a simple string (name), or a dictionary
(dictionaries are described below in main help output), necessarily 
including NAME attribute. 

Create a table with namespace=ns1 and table qualifier=t1
  hbase> create 'ns1:t1', {NAME => 'f1', VERSIONS => 5}

Create a table with namespace=default and table qualifier=t1
  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', {NAME => 'f1', CONFIGURATION => {'hbase.hstore.blockingStoreFiles' => '10'}}
Table configuration options can be put at the end.

  hbase> create 'ns1:t1', 'f1', SPLITS => ['10', '20', '30', '40']
  hbase> create 't1', 'f1', SPLITS => ['10', '20', '30', '40']
  hbase> create 't1', 'f1', SPLITS_FILE => 'splits.txt', OWNER => 'johndoe'
  hbase> create 't1', {NAME => 'f1', VERSIONS => 5}, METADATA => { 'mykey' => 'myvalue' }
  hbase> # Optionally pre-split the table into NUMREGIONS, using
  hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname)
  hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'}
  hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit', REGION_REPLICATION => 2, CONFIGURATION => {'hbase.hregion.scan.loadColumnFamiliesOnDemand' => 'true'}}

You can also keep around a reference to the created table:

  hbase> t1 = create 't1', 'f1'

Which gives you a reference to the table named 't1', on which you can then
call methods.

Command failed after 1 tries

Super Collaborator

You need to check HBase master log to understand what is preventing it to get initialized.