Home:ALL Converter>Hadoop namenode format error

Hadoop namenode format error

Ask Time:2016-10-20T05:28:53         Author:Sonali Singh

Json Formatter

I am trying to configure hadoop on ubuntu but when executing the command bin/hadoop namenode -format it shows the following message

DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command for it,

/home/sonali/hadoop-2.2.0/bin/hdfs: line 201: /usr/lib/jvm/java-6-openjdk-i386/bin/java: No such file or directory

Author:Sonali Singh,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40141806/hadoop-namenode-format-error
Sumit :

line 201: /usr/lib/jvm/java-6-openjdk-i386/bin/java: No such file or directory\n\nThe problem seems to be with Java. Try to cd to above path and then it will throw error as well(most probably).\n\nSo you need to set JAVA_HOME properly in your .bashrc file.\n\nYou can try setting JAVA_HOME = /usr/lib/jvm/java-6-openjdk-i386",
2016-10-20T02:19:44
yy