Util.FSUtils: Waiting for dfs to exit safe mode

有好几次,启动Hadoop和HBase之后,执行jps命令,已经看到有HMaster的进程,

但是进入到HBase的shell,执行一个命令,会出现下面的错误:

ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times

进入到logs目录查看master的日志:发现一直显示下面的内容:

2013-04-13 17:13:17,374 INFO org.apache.hadoop.hbase.util.FSUtils: Waiting for dfs to exit safe mode...
2013-04-13 17:13:27,377 INFO org.apache.hadoop.hbase.util.FSUtils: Waiting for dfs to exit safe mode...
2013-04-13 17:13:37,386 INFO org.apache.hadoop.hbase.util.FSUtils: Waiting for dfs to exit safe mode...
2013-04-13 17:13:47,393 INFO org.apache.hadoop.hbase.util.FSUtils: Waiting for dfs to exit safe mode...
2013-04-13 17:13:57,395 INFO org.apache.hadoop.hbase.util.FSUtils: Waiting for dfs to exit safe mode...
2013-04-13 17:14:07,409 INFO org.apache.hadoop.hbase.util.FSUtils: Waiting for dfs to exit safe mode...

原来是Hadoop在刚启动的时候,还处在安全模式造成的。

[[email protected] hadoop-2.6.0-cdh5.6.0]$ bin/hadoop dfsadmin -safemode get
Safe mode is ON

可等Hadoop退出安全模式后再执行HBase命令,或者手动退出Hadoop的安全模式

[[email protected] hadoop-2.6.0-cdh5.6.0]$ bin/hadoop dfsadmin -safemode leave
Safe mode is OFF

现在再执行HBase的命令就没有问题了。

hadoop dfsadmin-safemode 命令参数说明:

enter    - 进入安全模式
leave    - 强制NameNode离开安全模式
get      - 返回安全模式是否开启的信息
wait     - 等待,一直到安全模式结束。
时间: 2024-08-26 04:52:45

Util.FSUtils: Waiting for dfs to exit safe mode的相关文章

waiting for it to exit..

another app is currently holding the yum lock;waiting for it to exit...2009-02-04 20:58有时用yum升级一些文件时,会出现以下情况:another app is currently holding the yum lock;waiting for it to exit...可以通过强制关掉yum进程:#rm -f /var/run/yum.pid然后就可以使用yum了.

Another app is currently holding the yum lock; waiting for it to exit 解决方法

Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 46 M RSS (925 MB VSZ) Started: Thu Jul 6 08:40:45 2017 - 01:57 ago State : Running, pid: 10884 解决方法:手工杀死yum进程 sudo kill -9 10884

Another app is currently holding the yum lock; waiting for it to exit...

刚安装完虚拟机,用xshell连接上linux后,安装程序时一直出现这个信息Another app is currently holding the yum lock; waiting for it to exit... 解决方法:rm -rf /var/run/yum.pid 来强行解除锁定,然后你的yum就可以运行了 可以看博文 http://www.cnblogs.com/IceKernel/articles/2587274.html

Yum Error Another app is currently holding the yum lock; waiting for it to exit

Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 153 M RSS (266 MB VSZ) Started: Thu Jul 12 00:03:05 2012 - 06:17 ago State : Sleeping, pid: 4018 Another app is currently holding t

yum提示another app is currently holding the yum lock;waiting for it to exit

强制关掉yum进程:#rm -f /var/run/yum.pid然后就可以使用yum了. yum提示another app is currently holding the yum lock;waiting for it to exit,布布扣,bubuko.com

another app is currently holding the yum lock;waiting for it to exit解决

有时用yum升级一些文件时,会出现以下情况: another app is currently holding the yum lock;waiting for it to exit... 可以通过强制关掉yum进程: www.2cto.com #rm -f /var/run/yum.pid 然后就可以使用yum了.

Centos6.5使用yum安装软件的时候 Another app is currently holding the yum lock; waiting for it to exit...

Loaded plugins: fastestmirror, refresh-packagekit, security Existing lock /var/run/yum.pid: another copy is running as pid 2135. Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 43

yum安装提示Another app is currently holding the yum lock; waiting for it to exit...

在Linux系统中使用yum安装软件时,提示yum处于锁定状态 1 Another app is currently holding the yum lock; waiting for it to exit... 通过查询得知,可能是系统内部在自动升级,可通过强制关闭yum进程 1 #rm -f /var/run/yum.pid 之后yum就可以正常使用了 原文地址:https://www.cnblogs.com/guoxiangyue/p/9049202.html

hadoop+hbase+zookeeper+spark+phoenix相关实施报错处理

排错日志: 解决办法:可能是修改 机器名导致的,修改hosts,写入hostname和IP,然后,try it agin! 解决办法: 当引入hadoop-common-2.2.0.jar包进行二次开发,比如读写HDFS文件时,初次运行报错. java.io.IOException: No FileSystem for scheme: hdfs at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2421)