1

I'm trying to get Hadoop running 'Local Mode' on my Windows 10 machine. When I run the command:

bin/hadoop namenode -format 

I get the following error message, and the folder hadoop which contains hdfs Isn't being created. Why do I get this error?

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)
Gyanendra Dwivedi
  • 5,511
  • 2
  • 27
  • 53
Bata Omou
  • 7
  • 3

0 Answers0