hadoop start-dfs有问题

时间:2017-10-26 19:48:47

标签: hadoop hdfs

我正在尝试在Windows 2012服务器上安装hadoop 2.8.1,我已经使用命令格式化了namenode:hdfs namenode -format,并且工作了,我去使用start-dfs来获取hdfs,但是我得到了这个错误讯息:

17/10/26 12:42:53 ERROR datanode.DataNode: Exception in secureMain
java.lang.UnsatisfiedLinkError: 
org.apache.hadoop.io.nativeio.NativeIO$Windows.a
ccess0(Ljava/lang/String;I)Z
    at org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Native Method)

  at org.apache.hadoop.io.nativeio.NativeIO$Windows.access(NativeIO.java:6
 06)
    at org.apache.hadoop.fs.FileUtil.canRead(FileUtil.java:958)
    at org.apache.hadoop.util.DiskChecker.checkAccessByFileMethods(DiskCheck
er.java:203)
    at org.apache.hadoop.util.DiskChecker.checkDirAccess(DiskChecker.java:19
0)
    at org.apache.hadoop.util.DiskChecker.checkDir(DiskChecker.java:173)
    at org.apache.hadoop.hdfs.server.datanode.DataNode$DataNodeDiskChecker.c
heckDir(DataNode.java:2572)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.checkStorageLocations
(DataNode.java:2614)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode
.java:2596)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(D
 ataNode.java:2489)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNo
de.java:2536)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2721)

0 个答案:

没有答案