如何安装hadoop?

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

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

  1. bin/hadoop namenode -format

我收到以下错误消息,并且没有创建包含hdfs的hadoop文件夹。为什么会出现这个错误?

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

暂无答案!

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

相关问题