You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Alice Chen (JIRA)" <ji...@apache.org> on 2015/07/22 20:19:34 UTC

[jira] [Created] (TRAFODION-1054) LP Bug: 1431014 - trafodion_install - bad java version test when ssh to hostname 1st time

Alice Chen created TRAFODION-1054:
-------------------------------------

             Summary: LP Bug: 1431014 - trafodion_install - bad java version test when ssh to hostname 1st time
                 Key: TRAFODION-1054
                 URL: https://issues.apache.org/jira/browse/TRAFODION-1054
             Project: Apache Trafodion
          Issue Type: Bug
          Components: installer
            Reporter: Chris Tjepkema
            Assignee: Amanda Moran
            Priority: Critical


first noticed on a 1 node sandbox where ssh had not been run...
Subject: How can 1.7.0_71 be less that 1.7.0_65 ? Installer java version problem
Without ssh….
java -version
java version "1.7.0_71"
OpenJDK Runtime Environment (rhel-2.5.3.1.el6-x86_64 u71-b14)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

This should be ok, but look out below.
The first invocation of ssh  returns a warning. See the blue part below!
THIS_JVM_VER="$(ssh -n $node $JAVA_HOME/bin/java -version 2>&1 > /dev/null)"

The second run of the installer gets past this!

*******************************
Trafodion Configuration Setup
*******************************

***INFO: Please press 'Enter' to select defaults.

Enter trafodion password, default is 'traf123': 
Enter list of nodes (blank separated), default '': sandbox
The authenticity of host 'sandbox (192.168.177.131)' can't be established.
RSA key fingerprint is e1:33:52:03:b8:25:07:45:30:1a:c6:fc:56:15:01:01.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'sandbox,192.168.177.131' (RSA) to the list of known hosts.
Enter Trafodion userid's home directory prefix, default is '/home': 
Specify location of EPEL RPM (if any), default is None: 
Specify location of Java 1.7.0_65 or higher, default is /usr/lib/jvm/java-1.7.0-openjdk.x86_64: 
The authenticity of host 'sandbox.hortonworks.com (192.168.177.131)' can't be established.
RSA key fingerprint is e1:33:52:03:b8:25:07:45:30:1a:c6:fc:56:15:01:01.
Are you sure you want to continue connecting (yes/no)? yes
***ERROR: Your existing JAVA_HOME on sandbox.hortonworks.com is less than 1.7.0_65
***ERROR: Your Java Version on sandbox.hortonworks.com = Warning: Permanently added 'sandbox.hortonworks.com' (RSA) to the list of known hosts.
java version "1.7.0_71"
OpenJDK Runtime Environment (rhel-2.5.3.1.el6-x86_64 u71-b14)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
***ERROR: Required java version on sandbox.hortonworks.com should be greater than 1.7.0_65
====

Here is how to reproduce on cluster atcsq02…

Cd /root/.ssh
Vi known_hosts

Dd or remove the line with your local host
What is weird Is I tried for n004 and that is not a problem.
Because it gets tested and added right away!

Enter list of nodes (blank separated), default '': n003 n004
Warning: Permanently added 'n004,172.31.0.4' (RSA) to the list of known hosts.


But when you remove n003 from known_hosts…. It gets tested later for the JAVA version test…


./trafodion_install

******************************
TRAFODION INSTALLATION START
******************************

***INFO: testing sudo access
***INFO: Log file located at /var/log/trafodion/trafodion_install_2015-03-11-20-35-16.log
***INFO: Config directory: /etc/trafodion
***INFO: Working directory: /usr/lib/trafodion

*******************************
Trafodion Configuration Setup
*******************************

***INFO: Please press 'Enter' to select defaults.

Enter trafodion password, default is 'traf123':
Enter list of nodes (blank separated), default 'n004 n003 ':
Enter Trafodion userid's home directory prefix, default is '/opt':
Specify location of EPEL RPM (if any), default is None:
Specify location of Java 1.7.0_65 or higher, default is /usr/java/jdk1.7.0_67-cloudera:
***ERROR: Your existing JAVA_HOME on n003 is less than 1.7.0_65
***ERROR: Your Java Version on n003 = Warning: Permanently added 'n003,172.31.0.3' (RSA) to the list of known hosts.
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
***ERROR: Required java version on n003 should be greater than 1.7.0_65
***ERROR: Error while running traf_config_setup.
***ERROR: No configuration file created.



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