Skip to content

Instantly share code, notes, and snippets.

@jblaine
Created December 13, 2012 21:31
Show Gist options
  • Save jblaine/4280138 to your computer and use it in GitHub Desktop.
Save jblaine/4280138 to your computer and use it in GitHub Desktop.
root@ip-10-212-75-158:~# export JAVA_HOME=/opt/java/jdk1.7.0_10
root@ip-10-212-75-158:~# ls $JAVA_HOME
bin include LICENSE release THIRDPARTYLICENSEREADME.txt
COPYRIGHT jre man src.zip
db lib README.html THIRDPARTYLICENSEREADME-JAVAFX.txt
root@ip-10-212-75-158:~# service hadoop-0.20-mapreduce-tasktracker start
+======================================================================+
| Error: JAVA_HOME is not set and Java could not be found |
+----------------------------------------------------------------------+
| Please download the latest Sun JDK from the Sun Java web site |
| > http://java.sun.com/javase/downloads/ < |
| |
| Hadoop requires Java 1.6 or later. |
| NOTE: This script will find Sun Java whether you install using the |
| binary or the RPM based installer. |
+======================================================================+
root@ip-10-212-75-158:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment