Hbase大师没有运行 [英] Hbase master not running

查看:140
本文介绍了Hbase大师没有运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图以伪分布模式运行Hbase。我遵循此链接



我在使用ubuntu 12.04版本Hbase版本0.94.8 Hadoop版本2.4.0

在hbase / conf / hbase-env.sh,我添加了以下内容:

$ p $ export JAVA_HOME = / usr / lib / jvm / jdk1.7.0_25

export HBASE_REGIONSERVERS = / usr / lib / hbase / hbase-0.94.8 / conf / regionservers

export HBASE_MANAGES_ZK = true

然后我在bashrc文件中设置HBASE_HOME路径



在hbase / conf / hbase-site.xml我添加了以下内容:

 < configuration> 

<属性>

<名称> hbase.rootdir< / name>

< value> hdfs:// localhost:9000 / hbase< / value>

< / property>



<属性>

<名称> hbase.cluster.distributed< /名称>

<值> true< /值>

< / property>


<属性>

< name> hbase.zookeeper.quorum< / name>

< value> localhost< / value>

< / property>


<属性>

<名称> dfs.replication< / name>

<值> 1< /值>

< / property>


<属性>

< name> hbase.zookeeper.property.clientPort< / name>

<值> 2181< /值>

< / property>


<属性>

<名称> hbase.zookeeper.property.dataDir< / name>

< value> /home/prashasti/Installed/hbase-0.94.8/HBASE/zookeeper< /值>

< / property>

< / configuration>

为了防止hadoop和hbase之间的版本不匹配,我添加了

  hadoop-common-2.4.0.jar 



<

$ p $ hadoop-mapreduce-client-core-2.4.0.jar

在hbase / lib文件夹中



当我使用

$ b启动hbase
$ b

  $。/ bin / start-hbase.sh 

没有错误出现,但Hmaster无法启动。 您可以尝试从hbase-site.xml中除去 hbase.rootdir 以外的所有配置参数。 >然后尝试启动hbase。
也注释掉hbase-env.xml中的导出HBASE_REGIONSERVERS导出HBASE_MANAGES_ZK


I am trying to run Hbase in a pseudo-distributed mode. I followed this link.

I am using ubuntu version 12.04 Hbase version 0.94.8 Hadoop Version 2.4.0

In hbase/conf/hbase-env.sh, i added the following

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_25

export HBASE_REGIONSERVERS=/usr/lib/hbase/hbase-0.94.8/conf/regionservers

export HBASE_MANAGES_ZK=true

Then I set the HBASE_HOME path in bashrc file

In hbase/conf/hbase-site.xml I added the following,

<configuration>

<property>

<name>hbase.rootdir</name>

<value>hdfs://localhost:9000/hbase</value>

</property>



<property>

<name>hbase.cluster.distributed</name>

<value>true</value>

</property>


<property>

<name>hbase.zookeeper.quorum</name>

<value>localhost</value>

</property>


<property>

<name>dfs.replication</name>

<value>1</value>

</property>


<property>

<name>hbase.zookeeper.property.clientPort</name>

<value>2181</value>

</property>


<property>

<name>hbase.zookeeper.property.dataDir</name>

<value>/home/prashasti/Installed/hbase-0.94.8/HBASE/zookeeper</value>

</property>

</configuration>

To prevent version mismatch between hadoop and hbase, I added

hadoop-common-2.4.0.jar

and

hadoop-mapreduce-client-core-2.4.0.jar

in hbase/lib folder

When I start hbase using

$./bin/start-hbase.sh

No error turns up, but the Hmaster doesn't start.

解决方案

can you pl try removing all the configuration parameters from hbase-site.xml except hbase.rootdir and then try starting the hbase. Also comment out export HBASE_REGIONSERVERS export HBASE_MANAGES_ZK in hbase-env.xml

这篇关于Hbase大师没有运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆