HBase启动失败

Stella981
• 阅读 493

如果在hbase的shell中输入了status报错,

hbase(main):001:0> status

ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
    at org.apache.hadoop.hbase.master.HMaster.checkServiceStarted(HMaster.java:2445)
    at org.apache.hadoop.hbase.master.MasterRpcServices.isMasterRunning(MasterRpcServices.java:946)
    at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:58521)
    at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2339)
    at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:123)
    at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:188)
    at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:168)

Here is some help for this command:
Show cluster status. Can be 'summary', 'simple', 'detailed', or 'replication'. The
default is 'summary'. Examples:

  hbase> 

然后网页出现了

HBase启动失败

解决:

关闭hdfs的安全模式,你也可以通过查看hadoop的50070端口的网站查看是否开启了安全模式

HBase启动失败

如何关闭安全模式?

hdfs dfsadmin -safemode leave

然后稍等几秒,再刷新网页就好了。

点赞
收藏
评论区
推荐文章
Stella981 Stella981
2年前
Hive 数据导入HBase的2种方法详解
最近经常被问到这个问题,所以简单写一下总结。Hive数据导入到HBase基本有2个方案:  1、HBase中建表,然后Hive中建一个外部表,这样当Hive中写入数据后,HBase中也会同时更新  2、MapReduce读取Hive数据,然后写入(API或者Bulkload)到HBase1、Hive外部表创
Stella981 Stella981
2年前
Hbase表两种数据备份方法
Hbase表两种数据备份方法导入和导出示例本文将提供两种备份方法——1)基于Hbase提供的类对hbase中某张表进行备份2)基于Hbasesnapshot数据快速备份方法场合:由于线上和测试环境是分离的,无法在测试环境访问线上库,所以需要将线上的hbase表导出一部分到测试环境中的hbase表,这就是本文的由来。
Stella981 Stella981
2年前
MapReduce
MapReduce从HBase读取处理后再写入HBase代码如下packagecom.hbase.mapreduce;importjava.io.IOException;importorg.apache.hadoop.conf.Conf
Stella981 Stella981
2年前
HBase 在HDFS上的物理目录结构
根目录配置项<namehbase.rootdir</name默认“/hbase”根级文件/hbase/WALs被HLog实例管理的WAL文件。/hbase/WALs/datahbase.com,60020,1443159380730对于每个HregionServer,日志目录中都包含一个对应的子目录
Wesley13 Wesley13
2年前
Hbase权限控制
Hbase权限配置、使用手册1Hbase权限控制简介Hbase的权限控制是通过AccessControllerCoprocessor协处理器框架实现的,可实现对用户的RWXCA的权限控制。2配置配置hbasesite.xmlCM主页→点击hbase(进入Hbase
Stella981 Stella981
2年前
HBase跨集群表复制
概述A集群HBase中有个表testTableCopy,要将其复制到B集群的HBase中。使用HBase表复制工具./hbaseorg.apache.hadoop.hbase.mapreduce.CopyTableroot@host:/tstar/hbase/bin./hbaseorg.apache.hadoop.hba
Stella981 Stella981
2年前
HBase–常用Shell操作篇
HBase为用户提供了一个Shell终端进行交互操作,通过“helpget”命令可以获得帮助信息。【查询相关】1\.进入hbaseshellconsole  $HBASE\_HOME/bin/hbaseshell2\.查看有哪些表  list3\.查看全表数据   scan'tablename'
Stella981 Stella981
2年前
Hbase基本操作及单机配置
1.安装单机版hbase1.25下载hbase(http://apache.fayea.com/hbase/)2.解压hbaseTarzxvf\\\.tar.gzMv\\\/opt3.设置环境变量Vim/etc/profile添加exportPATH$PATH:/opt/hbase1.2.5/bin
Stella981 Stella981
2年前
HBase 启动后HMaster进程自动消失
原因分析1、hadoop与hbase版本不兼容,导致的异常。2、log日志信息显示org.apache.hadoop.hbase.TableExistsException:hbase:namespace异常,可能是更换了hbase的版本后zookeeper还保留着上一次的hbase设置,造成了冲突。解决方案1、
Stella981 Stella981
2年前
HBase应该如何优化?
1HBase高可用在HBase中Hmaster负责监控RegionServer的生命周期,均衡RegionServer的负载,如果Hmaster挂掉了,那么整个HBase集群将陷入不健康的状态,此时的工作状态并不会维持太久。所以需要配置hbase的高可用2预分区