name node formatting HDFS file not found error in Hadoop2.4.0
First, check whether JAVA_HOME
is set correctly in .bashrc
file. Use echo $JAVA_HOME
to check whether it is set or not. If not, set it using
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
Note: After making changes to .bashrc
file, you'll need to reload it either by logging out and back in or by using . ~/.bashrc
as pointed out in "How do I reload .bashrc without logging out and back in?".
It seems like the JAVA_HOME
variable is incorrectly set in your hadoop-env.sh
.
Set JAVA_HOME
to /usr/lib/jvm/java-7-openjdk-amd64
instead of usr/jvm/java-7-openjdk-amd64
. as it is set currently (pointed out by the error).
Use
export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
in your hadoop-env.sh
file.
Related videos on Youtube
Austin Shaw
Updated on September 18, 2022Comments
-
Austin Shaw over 1 year
All methods in my business logic return the same class type. That class has 3 properties: a success\fail boolean, and 2 dynamic properties(1 for fail result and 1 for success result). How can I decouple this business logic, if both my main API and the business logic need to know about this custom class?
-
Alaa Ali over 9 yearsWhat's the output of
echo $JAVA_HOME; ls $JAVA_HOME; grep JAVA /usr/local/hadoop/etc/hadoop/hadoop-env.sh
?
-