Roberta Marton created TRAFODION-1951:
-----------------------------------------

             Summary: 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


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)

Reply via email to