[ https://issues.apache.org/jira/browse/AMBARI-24730 ]


    Vijayakumar Govindasamy deleted comment on AMBARI-24730:
    --------------------------------------------------

was (Author: gvijay452):
This issue still exist,
{code:java}
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 
2023-07-18 LTS\\n'. Exiting., exit code 1". Exiting. {code}
Java Version
{code:java}
/usr/lib/jvm/jdk-11-oracle-x64/bin/java -version
java version "11.0.20" 2023-07-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.20+9-LTS-256)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.20+9-LTS-256, mixed mode) 
{code}
Command Used:
{code:java}
ambari-server setup -s -j /usr/lib/jvm/jdk-11-oracle-x64 --stack-java-home 
/usr/lib/jvm/jdk-11-oracle-x64 {code}

> 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
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.8.0
>
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> 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
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ambari.apache.org
For additional commands, e-mail: issues-h...@ambari.apache.org

Reply via email to