Hadoop错误汇总

1.ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Incompatible namespaceIDs in /var/lib/hadoop-0.20/cache/hdfs/dfs/data: namenode

namespaceID = 240012870; datanode namespaceID = 1462711424 .

http://blog.csdn.net/wh62592855/article/details/5752199

 

2.org.apache.hadoop.security.AccessControlException: Permission denied: user=xxj

hdfs-site.xml文件中加入

 

  dfs.permissions

  false

 


3. Invalid Hadoop Runtime specified; please click 'Configure Hadoop install directory' or fill in library location input
 field

eclipse window->preferences - > Map/Reduce  选择hadoop根目录


4.eclipse error: failure to login

eclipse hadoop plugin/lib 目录中加入

lib/hadoop-core.jar,

lib/commons-cli-1.2.jar,

lib/commons-configuration-1.6.jar,

lib/commons-httpclient-3.0.1.jar,

lib/commons-lang-2.4.jar,

lib/jackson-core-asl-1.0.1.jar,

lib/jackson-mapper-asl-1.0.1.jar

修改META-INF/MANIFEST.MF

Bundle-ClassPath: classes/,lib/hadoop-core.jar,lib/commons-cli-1.2.jar,lib/commons-configuration-1.6.jar,lib/commons-httpclient-3.0.1.jar,lib/commons-lang-

2.4.jar,lib/jackson-core-asl-1.0.1.jar,lib/jackson-mapper-asl-1.0.1.jar


5.hadoop 1.0.0版本
hadoop 启动时 TaskTracker无法启动
ERROR org.apache.hadoop.mapred.TaskTracker: Can not start task tracker because java.io.IOException: Failed to set permissions of path: \tmp\hadoop-admin

\mapred\local\ttprivate to 0700
 at org.apache.hadoop.fs.FileUtil.checkReturnValue(FileUtil.java:682)
 at org.apache.hadoop.fs.FileUtil.setPermission(FileUtil.java:655)
 at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:509)
 at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:344)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:189)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:719)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1436)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3694)

eclipse运行作业  Failed to set permissions of path: \tmp\hadoop-admin\mapred\staging\Administrator-1506477061\.staging to 0700

:Windows环境下的Hadoop TaskTracker无法正常启动  包括0.20.204、0.20.205、1.0.0版本

网上的解决方案 五花八门  有的说用 0.20.204以下版本 等

我采用修改FileUtil类 checkReturnValue方法代码 重新编译  替换原来的hadoop-core-1.0.0.jar文件 来解决

改后的hadoop-core-1.0.0.jar下载地址http://download.csdn.net/detail/java2000_wl/4326323

bug https://issues.apache.org/jira/browse/HADOOP-7682

 

6.Bad connection to FS. command aborted. exception: Call to dp01-154954/192.168.13.134:9000 failed on connection exception: java.net.ConnectException: Connection refused: no further information

ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory D:\tmp\hadoop-SYSTEM\dfs\name is in an inconsistent

state: storage directory does not exist or is not accessible.

重新格式化  bin/hadoop namenode -format  (小心不要拼错)

 

7.org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot delete /tmp/hadoop-SYSTEM/mapred/system. Name node is in safe mode.
The ratio of reported blocks 0.9412 has not reached the threshold 0.9990. Safe mode will be turned off automatically.
 at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.deleteInternal(FSNamesystem.java:1992)
 at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.delete(FSNamesystem.java:1972)
 at org.apache.hadoop.hdfs.server.namenode.NameNode.delete(NameNode.java:792)
 at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563)
 at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1388)
 at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1384)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.Subject.doAs(Subject.java:396)
 at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1083)
 at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)

  :bin/hadoop dfsadmin -safemode leave (解除安全模式)

 safemode参数说明:

enter - 进入安全模式

leave - 强制NameNode离开安全模式

get -   返回安全模式是否开启的信息

wait - 等待,一直到安全模式结束。

 

8 hbase

INFO org.apache.hadoop.hbase.util.FSUtils: Waiting for dfs to exit safe mode...

:bin/hadoop dfsadmin -safemode leave (解除安全模式)

9、Unexpected version of storage directory

2013-05-19 11:29:57,447 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: org.apache.hadoop.hdfs.server.common.IncorrectVersionException:  
Unexpected version of storage directory /home/hadoop/usr/local/hadoop/data1. Reported: -32. Expecting = -18.  
    at org.apache.hadoop.hdfs.server.common.Storage.getFields(Storage.java:647)  
    at org.apache.hadoop.hdfs.server.datanode.DataStorage.getFields(DataStorage.java:178)  
    at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.read(Storage.java:227)  
    at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.read(Storage.java:216)  
    at org.apache.hadoop.hdfs.server.datanode.DataStorage.doTransition(DataStorage.java:228)  
    at org.apache.hadoop.hdfs.server.datanode.DataStorage.recoverTransitionRead(DataStorage.java:148)  
    at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:298)  
    at org.apache.hadoop.hdfs.server.datanode.DataNode.(DataNode.java:216)  
    at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1283)  
    at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1238)  
    at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1246)  
    at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:1368)  
  
2013-05-19 11:29:57,447 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG: 

namdenode 和datanode的namespaceID不一致,   
      可以通过修改每个datanode的namespaceID位于dfs/data/current/VERSION文件中,
      使其与/dfs/name/current/VERSION的namenode的namespaceID一致。


10.win7下 ssh启动不了  错误:ssh: connect to host localhost port 22: Connection refused

  输入windows 登录用户名

Hadoop错误汇总_第1张图片

Hadoop错误汇总_第2张图片

参考:http://blog.163.com/tienan_feng@126/blog/static/173379258201132021831344/

http://blog.csdn.net/java2000_wl/article/details/7598040

你可能感兴趣的:(Bug,Hadoop)