Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $echo $JAVA_HOME
- /usr/lib/jvm/java-1.7.0-openjdk-amd64
- The error I get:
- ************************************************************/
- 10.0.1.193: Error: JAVA_HOME is not set and could not be found.
- 10.0.1.190: Error: JAVA_HOME is not set and could not be found.
- 10.0.1.191: Error: JAVA_HOME is not set and could not be found.
- 10.0.1.192: Error: JAVA_HOME is not set and could not be found.
- ----------------------------------------------------------------
- What exists in hadoop-config.sh:
- # Attempt to set JAVA_HOME if it is not set
- if [[ -z $JAVA_HOME ]]; then
- # On OSX use java_home (or /Library for older versions)
- if [ "Darwin" == "$(uname -s)" ]; then
- if [ -x /usr/libexec/java_home ]; then
- export JAVA_HOME=($(/usr/libexec/java_home))
- else
- export JAVA_HOME=(/Library/Java/Home)
- fi
- fi
- # Bail if we did not detect it
- if [[ -z $JAVA_HOME ]]; then
- echo "Error: JAVA_HOME is not set and could not be found." 1>&2
- exit 1
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement