Although not supported with Ambari 2.0, we are using it today.To do so, during 
Ambari server s/w install specify custom Java and give its path.Note that Java 
should be at the same location on all servers.
Once you do that, the /etc/ambari-server/conf/ambari.properties properties file 
will have that path for the property "java.home".E.g. here's ours -
.......java.home=/dotomi/java/jdkjava.releases=jdk1.7,jdk1.6jdk1.6.desc=Oracle 
JDK 
1.6jdk1.6.dest-file=jdk-6u31-linux-x64.binjdk1.6.home=/usr/jdk64/jdk1.6.jcpol-file=jce_policy-6.zipjdk1.6.jcpol-url=http://public-repo-1.hortonworks.com/ARTIFACTS/jce_policy-6.zipjdk1.6.re=Creating
 
(jdk.*)/jrejdk1.6.url=http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-6u31-linux-x64.binjdk1.7.desc=Oracle
 JDK 
1.7jdk1.7.dest-file=jdk-7u67-linux-x64.tar.gzjdk1.7.home=/usr/jdk64/jdk1.7.jcpol-file=UnlimitedJCEPolicyJDK7.zipjdk1.7.jcpol-url=http://public-repo-1.hortonworks.com/ARTIFACTS/UnlimitedJCEPolicyJDK7.zipjdk1.7.re=(jdk.*)/jrejdk1.7.url=http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-7u67-linux-x64.tar.gz........
      From: Satyanarayana Jampa <sja...@innominds.com>
 To: "user@ambari.apache.org" <user@ambari.apache.org> 
 Sent: Thursday, July 9, 2015 1:20 PM
 Subject: Amabri - with custom java - version
   
 <!--#yiv6939200651 _filtered #yiv6939200651 {font-family:"Cambria 
Math";panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv6939200651 
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv6939200651 
#yiv6939200651 p.yiv6939200651MsoNormal, #yiv6939200651 
li.yiv6939200651MsoNormal, #yiv6939200651 div.yiv6939200651MsoNormal 
{margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", 
sans-serif;}#yiv6939200651 a:link, #yiv6939200651 
span.yiv6939200651MsoHyperlink 
{color:#0563C1;text-decoration:underline;}#yiv6939200651 a:visited, 
#yiv6939200651 span.yiv6939200651MsoHyperlinkFollowed 
{color:#954F72;text-decoration:underline;}#yiv6939200651 
span.yiv6939200651EmailStyle17 {font-family:"Calibri", 
sans-serif;color:windowtext;}#yiv6939200651 .yiv6939200651MsoChpDefault 
{font-family:"Calibri", sans-serif;} _filtered #yiv6939200651 {margin:72.0pt 
72.0pt 72.0pt 72.0pt;}#yiv6939200651 div.yiv6939200651WordSection1 {}-->Hi,     
            I am configuring java-1.8 to be used with Ambari during the 
“ambari-server setup” option. Also, I added the java-1.8 on all the nodes 
manually and have set the class path and JAVA_HOME.                 While 
installing Hadoop components, the Ambari is installing its default 
java-version, instead of using the existing java-1.8.                 How can 
we say Ambari not to install pre-packaged java and use the one which was 
manually setup on all the datanodes.    Thanks, Satya.    

  

Reply via email to