从Windows java.lang.UnsatisfiedLinkError启动NodeManger Hadoop时出错

时间:2019-05-06 09:51:33

标签: windows hadoop

无法同时在 start-all.cmd start-dfs.cmd 上启动 nodemanager datamanager >。

我已经在环境变量中添加了所有必需的内容,例如用户变量

  • HADOOP_HOME-> C:\ hadoop-2.8.0 \ bin
  • JAVA_HOME-> C:\ Program Files(x86)\ Java \ jdk1.8.0_191

在路径中

  • C:\ hadoop-2.8.0 \ sbin

  • C:\ hadoop-2.8.0

  • C:\ hadoop-2.8.0 \ bin

  • %HADOOP_HOME%\ bin

  • C:\ hadoop-2.8.0 \ bin \ hadoop.dll(在某些网站上找到)

19/05/06 15:17:56 INFO util.GSet: capacity      = 2^15 = 32768 entries
19/05/06 15:17:56 ERROR namenode.NameNode: Failed to start namenode.
java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(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:606)
        at org.apache.hadoop.fs.FileUtil.canWrite(FileUtil.java:977)
        at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.analyzeStorage(Storage.java:505)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverStorageDirs(FSImage.java:317)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:210)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1012)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:691)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:634)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:695)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:898)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:877)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1603)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1671)
19/05/06 15:17:56 INFO util.ExitUtil: Exiting with status 1
19/05/06 15:17:56 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at DESKTOP-NCOP97O/192.168.1.122```

0 个答案:

没有答案