简体   繁体   English

Hbase org.apache.hadoop.hbase.PleaseHoldException

[英]Hbase org.apache.hadoop.hbase.PleaseHoldException

I want to try out the HBase-0.94 standalone mode and has followed the instruction in Quick Start . 我想尝试HBase-0.94独立模式,并按照快速入门中的说明进行操作。

I start hbase with start-hbase.sh and launch hbase shell 我用start-hbase.sh启动hbase shell并启动hbase shell

It seems that my master can't be initialized because my create table command always fails as following: 似乎我的master无法初始化,因为我的create table命令总是失败如下:

hbase(main):001:0> create 't1', 'cf'

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

Here's my conf/hbase-site.xml file: 这是我的conf/hbase-site.xml文件:

<configuration>
<property>
    <name>hbase.rootdir</name>
    <value>/home/manuzhang/hbase</value>
</property>
<property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/home/manuzhang/zookeeper</value>
</property>
</configuration>

and my /etc/hosts file: 和我的/etc/hosts文件:

127.0.0.1   localhost
127.0.0.1       jmx_host
127.0.1.1   manuzhang-U24E

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

74.125.237.1 dl-ssl.google.com

You have to edit your /etc/hosts file because HBase probably can't connect to localhost using 127.0.0.1 您必须编辑/ etc / hosts文件,因为HBase可能无法使用127.0.0.1连接到localhost

You should replace the line : 您应该替换该行:

127.0.0.1       jmx_host

with

127.0.0.1   manuzhang-U24E

Restart HBase after that to and hopefully that fixes it. 之后重启HBase并希望修复它。

The HBase and /etc/hosts relationship is actually a very popular mystery. HBase和/ etc / hosts关系实际上是一个非常流行的谜。 Although changing the line 127.0.1.1 or 127.0.0.1 might work, the process is actually quite involved. 虽然更改127.0.1.1或127.0.0.1行可能会起作用,但实际上该过程非常复杂。

When HBase is setting an RPC server, it'll listen on the IP of the interface defined in "hbase.regionserver.dns.interface". 当HBase设置RPC服务器时,它将侦听“hbase.regionserver.dns.interface”中定义的接口的IP。 (Well, not quite, actually, HBase will find the IPs of this interface, will look up for its hostname, and the first hostname of the first IP associated to this network interface will be used). (嗯,实际上,HBase将找到此接口的IP,将查找其主机名,并将使用与此网络接口关联的第一个IP的第一个主机名)。

What if you didn't provide anything? 如果你没有提供任何东西怎么办? It'll get you back your hostname, assuming that your host name is associated to the most reasonable interface. 假设您的主机名与最合理的界面相关联,它会让您返回主机名。

Reference (Beautiful post. I would strongly suggest to read it once). 参考 (美丽的帖子。我强烈建议你阅读一次)。

Please change the address 127.0.1.1 to 127.0.0.1 in the line 请在行中将地址127.0.1.1更改为127.0.0.1

127.0.1.1  manuzhang-U24E

restart hbase and it should work. 重启hbase,它应该工作。 This happens since hbase is not able to find the master host. 这是因为hbase无法找到主主机。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 org.apache.hadoop.hbase.PleaseHoldException: Master 正在初始化 - org.apache.hadoop.hbase.PleaseHoldException: Master is initializing 错误:org.apache.hadoop.hbase.PleaseHoldException:主正在初始化 - error: org.apache.hadoop.hbase.PleaseHoldException: master is initialzing 无法在 hbase shell 中创建表:org.apache.hadoop.hbase.PleaseHoldException:Master 正在初始化 - Cannot create table in hbase shell : org.apache.hadoop.hbase.PleaseHoldException: Master is initializing HBASE-org.apache.hadoop.hbase.MasterNotRunningException - HBASE - org.apache.hadoop.hbase.MasterNotRunningException Spark Streaming + Hbase:NoClassDefFoundError:org / apache / hadoop / hbase / spark / HBaseContext - Spark Streaming + Hbase: NoClassDefFoundError: org/apache/hadoop/hbase/spark/HBaseContext org.apache.hadoop.hbase.MasterNotRunningException - org.apache.hadoop.hbase.MasterNotRunningException Hbase java.lang.NoClassDefFoundError:org / apache / hadoop / hbase / MasterNotRunningException - Hbase java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/MasterNotRunningException 异常:org.apache.hadoop.hbase.masternotrunningexception - Exception :org.apache.hadoop.hbase.masternotrunningexception HBase异常:org.apache.hadoop.hbase.UnknownRowLockException - HBase Exception: org.apache.hadoop.hbase.UnknownRowLockException HBase中的org.apache.hadoop.hbase.io.ImmutableBytesWritable异常 - org.apache.hadoop.hbase.io.ImmutableBytesWritable exception in HBase
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM