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

Sean Mackrory commented on BIGTOP-843:
--------------------------------------

Hadoop will need to run well on JDK 7 sooner or later, so I'm hesitant to cut 
that off (I try to use JDK 7 when I can) and I don't know if any contributors 
or downstream projects / users are using 32-bit, but personally I'm okay with 
cutting that off. In my opinion, serious users should be explicitly specifying 
the JDK to be used in /etc/default/bigtop-utils anyway, so maybe we should make 
that a more obvious step in the process of getting Bigtop up and running? If 
somebody wants to run Bigtop on JDK 7 or 32-bit, I don't think bigtop-utils 
should be getting in the way unnecessarily, but if it really makes a big 
difference in terms of working well out-of-the-box for a lot of people, I'm not 
opposed to it.
                
> It would be really cool if bigtop-detect-javahome were smarter and didn't 
> pick a 32-bit JVM, or a 1.7 JVM set with default
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: BIGTOP-843
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-843
>             Project: Bigtop
>          Issue Type: Improvement
>          Components: General
>    Affects Versions: 0.5.0
>            Reporter: Robert Justice
>            Assignee: Mark Grover
>
> I see more and more folks with whacked versions of java configured in 
> /usr/java/default or /usr/lib/jvm/default-java that are pointing to 32-bit 
> JVMs or are simply not even a 1.6 JVM.  I was wondering if we could do a bit 
> more intelligence in this script and run a java -version to rule out a 32-bit 
> JVM or a 1.7 JDK?  Or would that be too error prone?
> if [ -z "$JAVA_HOME" ]; then
>   for candidate in \
>     /usr/lib/jvm/java-6-sun \
>     /usr/lib/jvm/java-1.6.0-sun-1.6.0.*/jre/ \
>     /usr/lib/jvm/java-1.6.0-sun-1.6.0.* \
>     /usr/lib/jvm/j2sdk1.6-oracle \
>     /usr/lib/jvm/j2sdk1.6-oracle/jre \
>     /usr/lib/j2sdk1.6-sun \
>     /usr/java/jdk1.6* \
>     /usr/java/jre1.6* \
>     /Library/Java/Home \
>     /usr/java/default \
>     /usr/lib/jvm/default-java \
>     /usr/lib/jvm/java-openjdk \
>     /usr/lib/jvm/jre-openjdk \
>     /usr/lib/jvm/java-1.6.0-openjdk-1.6.* \
>     /usr/lib/jvm/jre-1.6.0-openjdk* ; do
>     if [ -e $candidate/bin/java ]; then
>       export JAVA_HOME=$candidate
>       break
>     fi
>   done
> fi

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to