ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Sposetti <>
Subject Re: Java version upgrade
Date Mon, 16 Feb 2015 18:18:49 GMT
Running "ambari-server setup" should not disturb your running cluster or cluster configuration
by re-running setup. When prompted, modify the JDK choice and then do not modify anything

A couple other notes...

1) Be sure the Custom JDK path is correct on all hosts in the cluster.

2) From Ambari Web, restart your services for the new JDK path to start being used.

3) After you run setup, you can check the java.home property from the Ambari Server...

From: Giovanni Paolo Gibilisco <>
Sent: Monday, February 16, 2015 1:09 PM
Subject: Re: Java version upgrade

Thanks for your reply,
as I understood running ambari-server setup and selecting the jdk (or using the -j argument
as shown in the guide
will reset my current ambari installation so I will loose th configuration of the cluster
that is alread running.
Is this correct? If so I can not re-run the setup otherwise I'll have to reconfigure the entire

On Mon Feb 16 2015 at 14:42:45 Dmitry Sen <<>>

Hi Giovanni,

Ambari supports customized JDK :

# ambari-server setup

Using python  /usr/bin/python2.6
Setup ambari-server
Checking SELinux...
SELinux status is 'disabled'
Ambari-server daemon is configured to run under user 'root'. Change this setting [y/n] (n)?
Adjusting ambari-server permissions and ownership...
Checking iptables...
Checking JDK...
Do you want to change Oracle JDK [y/n] (n)? y
[1] Oracle JDK 1.7
[2] Oracle JDK 1.6
[3] - Custom JDK
Enter choice (1): 3
WARNING: JDK must be installed on all hosts and JAVA_HOME 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
Path to JAVA_HOME: /my/path/to/jdk




Dmytro Sen

From: Giovanni Paolo Gibilisco <<>>
Sent: Monday, February 16, 2015 11:22 AM
Subject: Java version upgrade

I'm trying to upgrade the version of Java used in the cluster in order to support Java 8.
I've managed to install Java 8 and set the JAVA_HOME correctly on all the nodes on the cluster.
I've restarted the services using ambari and even restarted the ambari server and agents but
still wehn i subit a job using yarn i get an exception in my code saying
"Exception in thread "main" java.lang.UnsupportedClassVersionError: it/polimi/tssotn/dataloader/DataLoader
: Unsupported major.minor version 52.0"
that basically means it is not running with Java 8.
Is there a way to tell ambari to confgure yarn (and all other services) so use the new jre?

View raw message