导航菜单
路很长,又很短
博主信息
昵   称:Cocodroid ->关于我
Q     Q:2531075716
博文数:337
阅读量:1472646
访问量:166454
至今:
×
云标签 标签球>>
云标签 - Su的技术博客
博文->>首页 博主的更多博文>>
Hadoop出现Eannot delete /tmp/hadoop-root/mapred/system/job_local_0001. Name node is in safe mode
Tags : Hadoop,NameNode 发表时间: 2017-09-17 04:09:23
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。
比如: 转自:Su的技术博客  原文地址:

 

14/11/30 21:04:37 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName=JobTracker, sessionId=

14/11/30 21:04:37 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.

Eannot delete /tmp/hadoop-root/mapred/system/job_local_0001. Name node is in safe mode.

The ratio of reported blocks 1.0000 has reached the threshold 0.9990. Safe mode will be turned off automatically in 2 seconds.

        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.deleteInternal(FSNamesystem.java:1700)

        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.delete(FSNamesystem.java:1680)

        at org.apache.hadoop.hdfs.server.namenode.NameNode.delete(NameNode.java:517)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508)

        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959)

        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955)

        at java.security.AccessController.doPrivileged(Native Method)

        at javax.security.auth.Subject.doAs(Subject.java:415)

        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953)

 

        at org.apache.hadoop.ipc.Client.call(Client.java:740)

        at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)

        at com.sun.proxy.$Proxy0.delete(Unknown Source)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:606)

        at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)

        at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)

        at com.sun.proxy.$Proxy0.delete(Unknown Source)

        at org.apache.hadoop.hdfs.DFSClient.delete(DFSClient.java:582)

        at org.apache.hadoop.hdfs.DistributedFileSystem.delete(DistributedFileSystem.java:227)

        at org.apache.hadoop.mapred.JobClient.configureCommandLineOptions(JobClient.java:569)

        at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:761)

        at org.apache.hadoop.mapreduce.Job.submit(Job.java:432)

        at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:447)

        at com.verysu.hadoop.HelloDriver.main(HelloDriver.java:39)

 

 

解决:

    NameNode会在开始启动阶段自动关闭安全模式,然后启动成功。如果你不想等待,可以运行:

    bin/hadoop dfsadmin -safemode leave 强制结束。

 

 

 

 

 

 

打赏
打赏
关注公众号
公众号
类别:大数据| 阅读(1503)| 赞 (0)
评论
暂无评论!
发表评论
昵  称:

验证码:

内  容:

    同时赞一个 赞