Return-Path: X-Original-To: apmail-ambari-user-archive@www.apache.org Delivered-To: apmail-ambari-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9BF0C10BA9 for ; Mon, 16 Feb 2015 18:19:20 +0000 (UTC) Received: (qmail 73945 invoked by uid 500); 16 Feb 2015 18:19:20 -0000 Delivered-To: apmail-ambari-user-archive@ambari.apache.org Received: (qmail 73917 invoked by uid 500); 16 Feb 2015 18:19:20 -0000 Mailing-List: contact user-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ambari.apache.org Delivered-To: mailing list user@ambari.apache.org Received: (qmail 73907 invoked by uid 99); 16 Feb 2015 18:19:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2015 18:19:20 +0000 X-ASF-Spam-Status: No, hits=4.2 required=5.0 tests=FSL_HELO_BARE_IP_2,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jeff@hortonworks.com designates 64.78.52.187 as permitted sender) Received: from [64.78.52.187] (HELO relayvx12c.securemail.intermedia.net) (64.78.52.187) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2015 18:18:54 +0000 Received: from securemail.intermedia.net (localhost [127.0.0.1]) by emg-ca-1-2.localdomain (Postfix) with ESMTP id AB26E53DEE for ; Mon, 16 Feb 2015 10:18:51 -0800 (PST) Subject: Re: Java version upgrade MIME-Version: 1.0 x-echoworx-emg-received: Mon, 16 Feb 2015 10:18:51.689 -0800 x-echoworx-msg-id: c4d7bbe3-1581-43da-85d2-4c91499f064a x-echoworx-action: delivered Received: from 10.254.155.17 ([10.254.155.17]) by emg-ca-1-2 (JAMES SMTP Server 2.3.2) with SMTP ID 532 for ; Mon, 16 Feb 2015 10:18:51 -0800 (PST) Received: from MBX080-W4-CO-1.exch080.serverpod.net (unknown [10.224.117.101]) by emg-ca-1-2.localdomain (Postfix) with ESMTP id 72D2B53DEE for ; Mon, 16 Feb 2015 10:18:51 -0800 (PST) Received: from MBX080-W4-CO-1.exch080.serverpod.net (10.224.117.101) by MBX080-W4-CO-1.exch080.serverpod.net (10.224.117.101) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Mon, 16 Feb 2015 10:18:50 -0800 Received: from MBX080-W4-CO-1.exch080.serverpod.net ([10.224.117.101]) by mbx080-w4-co-1.exch080.serverpod.net ([10.224.117.101]) with mapi id 15.00.1044.021; Mon, 16 Feb 2015 10:18:50 -0800 From: Jeff Sposetti To: "user@ambari.apache.org" Thread-Topic: Java version upgrade Thread-Index: AQHQScpNVOFMkv//ZUOEHgYyoIKpVpzzk+S1gAABeY0= Date: Mon, 16 Feb 2015 18:18:49 +0000 Message-ID: <1424110729478.37653@hortonworks.com> References: <1424094126451.90901@hortonworks.com>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [71.230.43.73] x-source-routing-agent: Processed Content-Type: multipart/alternative; boundary="_000_142411072947837653hortonworkscom_" X-Virus-Checked: Checked by ClamAV on apache.org --_000_142411072947837653hortonworkscom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Running "ambari-server setup" should not disturb your running cluster or cl= uster configuration by re-running setup. When prompted, modify the JDK choi= ce 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 bei= ng used. 3) After you run setup, you can check the java.home property from the Ambar= i Server... http://c6401.ambari.apache.org:8080/api/v1/services/AMBARI/components/AMBAR= I_SERVER ________________________________ From: Giovanni Paolo Gibilisco Sent: Monday, February 16, 2015 1:09 PM To: user@ambari.apache.org 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/inst= alling-hadoop-using-ambari/content/ambari-chap2-2-1.html) will reset my cur= rent ambari installation so I will loose th configuration of the cluster th= at is alread running. Is this correct? If so I can not re-run the setup otherwise I'll have to re= configure the entire cluster. Thanks. Giovanni On Mon Feb 16 2015 at 14:42:45 Dmitry Sen > 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 se= tting [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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D 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. I= f you plan to use Kerberos,please make sure JCE Unlimited Strength Jurisdic= tion Policy Files are valid on all hosts. Path to JAVA_HOME: /my/path/to/jdk ... Thanks, BR, Dmytro Sen ________________________________ From: Giovanni Paolo Gibilisco = > Sent: Monday, February 16, 2015 11:22 AM To: user@ambari.apache.org Subject: Java version upgrade Hi, I'm trying to upgrade the version of Java used in the cluster in order to s= upport Java 8. I've managed to install Java 8 and set the JAVA_HOME correct= ly on all the nodes on the cluster. I've restarted the services using ambar= i 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/poli= mi/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? --_000_142411072947837653hortonworkscom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

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 Am= bari Server...


http://c6401.ambari.apache.org:8080/api/v1/services= /AMBARI/components/AMBARI_SERVER



From: Giovanni Paolo Gibi= lisco <gibbo87@gmail.com>
Sent: Monday, February 16, 2015 1:09 PM
To: user@ambari.apache.org
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/amba= ri-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 <dsen@hortonworks.com> 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 th= is 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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D
Enter choice (1): 3
WARNING: JDK must be installed on all hosts and JAVA_HOME must be vali= d on all hosts.
WARNING: JCE Policy files are required for configuring Kerberos securi= ty. If you plan to use Kerberos,please make sure JCE Unlimited Strength Jur= isdiction Policy Files are valid on all hosts.
Path to JAVA_HOME: /my/path/to/jdk

...


Thanks,


BR,

Dmytro Sen



From: Giovanni Paolo Gibilisco <gibbo87@gmail.com>
Sent: Monday, February 16, 2015 11:22 AM
To: user= @ambari.apache.org
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 co= rrectly 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 excepti= on in my code saying 
"Exception in thread "main" java.lang.UnsupportedClassV= ersionError: it/polimi/tssotn/dataloader/DataLoader : Unsupported major.min= or 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?
--_000_142411072947837653hortonworkscom_--