hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wojciech Langiewicz (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-4042) bin/hadoop should check `which java` to find java
Date Wed, 24 Nov 2010 14:53:19 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-4042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935344#action_12935344

Wojciech Langiewicz commented on HADOOP-4042:

I don't know how this would affect performance issues, but on my system 'which java' shows
/usr/bin/java, which is a symlink to /etc/alternatives/java, which is a symlink to /usr/lib/jvm/java-6-openjdk/jre/bin/java.
and $JAVA_HOME points directly to /usr/lib/jvm/java-6-openjdk

> bin/hadoop should check `which java` to find java
> -------------------------------------------------
>                 Key: HADOOP-4042
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4042
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 0.18.0
>            Reporter: Michael Bieniosek
>            Priority: Minor
> Currently, the bin/hadoop script tries to find java in JAVA_HOME/bin/java.  If JAVA_HOME
is not set, it errors out.
> Instead, I think it should check `which java 2>/dev/null` to see if there is a java
on the user's PATH.  If a java is on the user's path, the script should just set JAVA=java.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message