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
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