hbase_异常_01_Hbase: Failed to become active master

Posted shirayner

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hbase_异常_01_Hbase: Failed to become active master相关的知识,希望对你有一定的参考价值。

一、异常现象

启动hbase之后,抛出异常,异常信息如下:

master.HMaster: Failed to become active master

hbase java.net.ConnectException: Call From to 9000 failed on connection exception: java.net.ConnectException: Connection refused;

 

二、异常原因

参考:Hbase: Failed to become active master 的解释:

Can you please check the config "hbase.rootdir". Looks like this config is pointing to NameNode which is in StandBy Node.

Try changing this to point to Active NameNode or change it to value of your config fs.defaultFS in core-site.xml and then the hdfs path.

 

要保持  hbase-site.xml  中的  hbase.rootdir  的值 与  core-site.xml  中的 fs.default.name  值保持一致,

而在这两个配置文件中的hostname不一致,一个是localhost 一个是rayner。所以出问题了。

 

三、异常解决

保持所有配置文件中的hostname一致,都为 rayner

 

四、参考资料

1.Hbase: Failed to become active master 

 

以上是关于hbase_异常_01_Hbase: Failed to become active master的主要内容,如果未能解决你的问题,请参考以下文章

Maven异常_04_Failed to clean project

Linux_异常_02_Failed to restart iptables.service: Unit not found.

hbase_学习_01_HBase环境搭建(单机)

大数据_学习_01_Hadoop 2.x及hbase常用端口及查看方法

Maven异常_02_compile faile_Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:c

01_HBase概述