如何安装hadoop?

enyaitl3  于 2021-05-31  发布在  Hadoop
关注(0)|答案(0)|浏览(270)

我正试图让hadoop在我的windows10机器上运行“本地模式”。当我运行命令时:

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)

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题