hadoop-env.sh Bash shell script with all environment variables The only line we need to add is: export JAVA_HOME=/usr/local/jdk-1.7.0 Make sure to change that to where your JDK resides