[ 
https://issues.apache.org/jira/browse/MAPREDUCE-3432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Allen Wittenauer resolved MAPREDUCE-3432.
-----------------------------------------
    Resolution: Not a Problem

Fixed.

> Yarn doesn't work if JAVA_HOME isn't set
> ----------------------------------------
>
>                 Key: MAPREDUCE-3432
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3432
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv2
>    Affects Versions: 0.23.0
>         Environment: OS/X, JAVA_HOME unset
>            Reporter: Steve Loughran
>            Priority: Minor
>
> libexec/hadoop-config.sh does reliably work out JAVA_HOME for many platforms. 
> unfortunately, the yarn scripts don't use it. As such you get told off when 
> you try to run yarn
> {code}
> $ bin/yarn resourcemanager
> Error: JAVA_HOME is not set.
> {code}
> To make things more interesting, if you set the value in the shell, it still 
> doesn't propagate down to the scripts
> {code}
> $ echo $JAVA_HOME
> $ source libexec/hadoop-config.sh 
> $ echo $JAVA_HOME
> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> $ bin/yarn resourcemanager
> Error: JAVA_HOME is not set.
> $echo $JAVA_HOME
> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to