You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Gabor Boros (JIRA)" <ji...@apache.org> on 2018/10/03 15:00:02 UTC

[jira] [Created] (AMBARI-24730) Update Ambari Server to new Java versioning scheme in Java 9

Gabor Boros created AMBARI-24730:
------------------------------------

             Summary: Update Ambari Server to new Java versioning scheme in Java 9
                 Key: AMBARI-24730
                 URL: https://issues.apache.org/jira/browse/AMBARI-24730
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.7.1
            Reporter: Gabor Boros
            Assignee: Gabor Boros
             Fix For: 2.8.0


Setting up Java 9 on Ambari Server prints the following error:
{code:java}
[root@gboros-jdk11-1 ~]# ambari-server setup -s -j /usr/java/jdk-9.0.4/ --stack-java-home /usr/java/jdk-9.0.4/
Using python  /usr/bin/python
Setup ambari-server
...
...
Checking JDK...
WARNING: JAVA_HOME /usr/java/jdk-9.0.4/ must be valid on ALL hosts
WARNING: JCE Policy files are required for configuring Kerberos security. If you plan to use Kerberos,please make sure JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts.
Setting JAVA_HOME for stack services...
WARNING: JAVA_HOME /usr/java/jdk-9.0.4/ (Stack) must be valid on ALL hosts
WARNING: JCE Policy files are required for configuring Kerberos security. If you plan to use Kerberos,please make sure JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts.
Check JDK version for Ambari Server...
JDK version found: 0
Minimum JDK version is 8 for Ambari. Setup JDK again only for Ambari Server.
{code}
This is a non-blocking error, the configuration is being written out properly:
{code:java}
[root@gboros-jdk11-1 ~]# cat /etc/ambari-server/conf/ambari.properties | grep 'java\.home'
java.home=/usr/java/jdk-9.0.4/
stack.java.home=/usr/java/jdk-9.0.4/
{code}
New versioning scheme is described at [Java 9 migration guide|https://docs.oracle.com/javase/9/migrate/toc.htm#JSMIG-GUID-3A71ECEF-5FC5-46FE-9BA9-88CBFCE828CB].

This becomes a blocker when using Java 10:

{code}
[root@gboros-jdk11-1 ambari]# ambari-server setup -s -j /usr/java/jdk-10.0.2/ --stack-java-home /usr/java/jdk-10.0.2/
Using python  /usr/bin/python
Setup ambari-server
...
...
Check JDK version for Ambari Server...
ERROR: Exiting with exit code 1.
REASON: Downloading or installing JDK failed: "Fatal exception: Running java version check command failed: invalid literal for int() with base 10: '0 2018-07-17\\n'. Exiting., exit code 1". Exiting.
{code}

 cc [~adoroszlai]

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)