You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Michael Bieniosek (JIRA)" <ji...@apache.org> on 2008/08/28 19:26:47 UTC

[jira] Created: (HADOOP-4042) bin/hadoop should check `which java` to find java

bin/hadoop should check `which java` to find java
-------------------------------------------------

                 Key: HADOOP-4042
                 URL: https://issues.apache.org/jira/browse/HADOOP-4042
             Project: Hadoop Core
          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 the bin/hadoop script isn't there, 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.


[jira] Commented: (HADOOP-4042) bin/hadoop should check `which java` to find java

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628481#action_12628481 ] 

Doug Cutting commented on HADOOP-4042:
--------------------------------------

This sounds reasonable and is what e.g., Ant's scripts do, so there's precedent.

> bin/hadoop should check `which java` to find java
> -------------------------------------------------
>
>                 Key: HADOOP-4042
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4042
>             Project: Hadoop Core
>          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.


[jira] Updated: (HADOOP-4042) bin/hadoop should check `which java` to find java

Posted by "Michael Bieniosek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-4042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Bieniosek updated HADOOP-4042:
--------------------------------------

    Description: 
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.


  was:
Currently, the bin/hadoop script tries to find java in JAVA_HOME/bin/java.  If the bin/hadoop script isn't there, 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.



> bin/hadoop should check `which java` to find java
> -------------------------------------------------
>
>                 Key: HADOOP-4042
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4042
>             Project: Hadoop Core
>          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.