You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/05/05 17:14:12 UTC

[jira] [Commented] (TRAFODION-1951) Unable to install trafodion due to java version mismatch

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

ASF GitHub Bot commented on TRAFODION-1951:
-------------------------------------------

GitHub user amandamoran opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/468

    [[TRAFODION-1951]] Fix for JAVA checking

    Adding fix for JAVA checking if JAVA 7 has an update 100 or greater. 
    
    Also deleting two files that are no longer used (and should have been deleted when the Vanilla Apache support was checked in). 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/amandamoran/incubator-trafodion TRAFODION-1951

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/468.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #468
    
----
commit e208598d88caab04e14db1dbb38ac5f4378e8826
Author: Amanda Moran <am...@apache.com>
Date:   2016-05-05T17:11:48Z

    [[TRAFODION-1951]] Fix for JAVA checking

----


> Unable to install trafodion due to java version mismatch
> --------------------------------------------------------
>
>                 Key: TRAFODION-1951
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-1951
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: installer
>            Reporter: Roberta Marton
>            Assignee: Amanda Moran
>
> After downloading the latest JAVA version today (java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el6_7.x86_64)  trafodion installation (trafodion_install) is failing with the following error:
> ***ERROR: Your existing JAVA_HOME on <node> is less than 1.7.0_65
> ***ERROR: Your Java Version on <node> = java version "1.7.0_101"
> OpenJDK Runtime Environment (rhel-2.6.6.1.el6_7-x86_64 u101-b00)
> OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
> ***ERROR: Required java version on <node> should be greater than 1.7.0_65
> It seems the check in traf_config_check is only looking at two bytes for the check and now the java version has gone to three bytes.
> To work around, I temporarily changed the following in traf_config_check file and my installation proceeded.
> if [[ "${THIS_JVM_VER:20:1}" -eq "0" ]] || [[ "${THIS_JVM_VER:20:2}" -lt $JAVA65 ]
> if [[ "${THIS_JVM_VER:20:2}" -eq "0" ]] || [[ "${THIS_JVM_VER:20:3}" -lt $JAVA65 ]
> Surrounding code:
> #Checking if using 1.7.0_n
> if [[ "${THIS_JVM_VER:18:1}" -eq "0" ]] && [[ "$temp_JAVA" -eq "$JAVA7" ]]; then
>   if [[ "${THIS_JVM_VER:20:1}" -eq "0" ]] || [[ "${THIS_JVM_VER:20:2}" -lt $JAVA65 ]]; then
>       error="true"
>   fi
> fi
> if [[ -n $error ]]; then
>    errorFound=1
>    echo "JAVA HOME" >> $ERROR_LOG
>    echo "***ERROR: Your existing JAVA_HOME on $node is less than $REQ_VER"  >> $ERROR_LOG
>     echo "***ERROR: Your Java Version on $node = $THIS_JVM_VER"  >> $ERROR_LOG
>     echo "***ERROR: Required java version on $node should be greater than $REQ_VER"  >> $ERROR_LOG
> fi
>          fi



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