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 else.
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... http://c6401.ambari.apache.org:8080/api/v1/services/AMBARI/components/AMBARI_SERVER ________________________________ From: Giovanni Paolo Gibilisco <[email protected]> Sent: Monday, February 16, 2015 1:09 PM To: [email protected] 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 https://ambari.apache.org/1.2.2/installing-hadoop-using-ambari/content/ambari-chap2-2-1.html) 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 cluster. Thanks. Giovanni On Mon Feb 16 2015 at 14:42:45 Dmitry Sen <[email protected]<mailto:[email protected]>> wrote: 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 hosts. Path to JAVA_HOME: /my/path/to/jdk ... Thanks, BR, Dmytro Sen ________________________________ From: Giovanni Paolo Gibilisco <[email protected]<mailto:[email protected]>> Sent: Monday, February 16, 2015 11:22 AM To: [email protected]<mailto:[email protected]> Subject: Java version upgrade Hi, 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?
