1

我试图让 Hadoop 在我的 Windows 10 机器上运行“本地模式”。当我运行命令时:

bin/hadoop namenode -format 

我收到以下错误消息,并且未创建包含 hdfs 的文件夹 hadoop。为什么我会收到此错误?

C:\hadoop-2.3.0\bin>hadoop namenode -format
    DEPRECATED: Use of this script to execute hdfs command is deprecated.
    Instead use the hdfs command for it.
    18/04/12 01:52:41 FATAL namenode.NameNode: Exception in namenode join
    java.lang.ExceptionInInitializerError
            at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:76)
            at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1324)
    Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
            at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3107)
            at java.base/java.lang.String.substring(String.java:1873)
            at org.apache.hadoop.util.Shell.<clinit>(Shell.java:49)
            ... 2 more
    Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.util.StringUtils
            at org.apache.hadoop.util.ExitUtil.terminate(ExitUtil.java:170)
            at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1331)
4

0 回答 0