You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "hanasaki jiji (Commented) (JIRA)" <ji...@apache.org> on 2012/01/03 23:36:39 UTC

[jira] [Commented] (HADOOP-6605) Add JAVA_HOME detection to hadoop-config

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

hanasaki jiji commented on HADOOP-6605:
---------------------------------------

installed hadoop 1.0.0 .deb package on debian squeeze with openjdk6 already installed
/etc/init.d/hadoop-datanode start results in "/usr/lib/jvm/java6-sun/bin/java not found

this same error is reported with:
1. just openjdk 6 headless
2. full openjdk 6
3. even if JAVA_HOME is exported before running the above command
                
> Add JAVA_HOME detection to hadoop-config
> ----------------------------------------
>
>                 Key: HADOOP-6605
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6605
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Chad Metcalf
>            Assignee: Eli Collins
>            Priority: Minor
>             Fix For: 0.22.0
>
>         Attachments: HADOOP-6605.patch, hadoop-6605-1.patch, hadoop-6605-2.patch, hadoop-6605-3.patch, hadoop-6605-4.patch, hadoop-6605-5.patch
>
>
> The commands that source hadoop-config.sh currently bail with an error if JAVA_HOME is not set. Let's detect JAVA_HOME (from a list of locations on various OS types) if JAVA_HOME is not already set by hadoop-env.sh or the environment. This way users don't have to manually configure it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira