I am a beginner with hadoop and trying to install and run hadoop in my Ubuntu as a single node cluster. This is my JAVA_HOME in my hadoop_env.sh
# The java
Above answers should work as long as you are using default conf directory $HADOOP_HOME/conf
or $HADOOP_HOME/etc/hadoop
. Here are a few things you should do if you're using a different conf folder.
hadoop-env.sh
file from the default conf directory to your conf folder, say /home/abc/hadoopConf
.Replace the line
#export JAVA_HOME=${JAVA_HOME}
with the following:
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export HADOOP_CONF_DIR=/home/abc/hadoopConf
Change the values appropriately. If you have any other environment variables related to hadoop configured in your .bashrc
or .profile
or .bash_profile
consider adding them next to the above lines.