Support Questions
Find answers, ask questions, and share your expertise

java update Ambari

Rising Star

I need to update Oracle JDK to 8u172. What's the best way of doing it. Is there a documentation

1 ACCEPTED SOLUTION

Accepted Solutions

Super Mentor

@Prakash Punj

You will need to install the desired JDK to all your cluster hosts manually on some common location like

Example: )on every cluster host same path should exist

/usr/jdk64/jdk1.8.0_172

.

Now on the ambari server host run the following command to setup the JDK.

# ambari-server setup –j /usr/jdk64/jdk1.8.0_172
# ambari-server restart

.

Ambari Serevr setup JDK Reference: https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-installation-ppc/content/set_up_t...

https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-administration/content/ch_changin...

Also if you want to install the JCE on your JDK then please refer to : https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-security/content/installing_the_j...

HCC thread on the same: https://community.hortonworks.com/questions/91401/update-jdk-from-17-to-180-121-on-hdp.html

View solution in original post

2 REPLIES 2

Super Mentor

@Prakash Punj

You will need to install the desired JDK to all your cluster hosts manually on some common location like

Example: )on every cluster host same path should exist

/usr/jdk64/jdk1.8.0_172

.

Now on the ambari server host run the following command to setup the JDK.

# ambari-server setup –j /usr/jdk64/jdk1.8.0_172
# ambari-server restart

.

Ambari Serevr setup JDK Reference: https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-installation-ppc/content/set_up_t...

https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-administration/content/ch_changin...

Also if you want to install the JCE on your JDK then please refer to : https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-security/content/installing_the_j...

HCC thread on the same: https://community.hortonworks.com/questions/91401/update-jdk-from-17-to-180-121-on-hdp.html

View solution in original post

Rising Star

Thanks @Jay Kumar SenSharma.

Question: On other nodes, do we have to do anything after installing new version of JAVA. Just by putting the JAVA in the same path as Ambari-server, is that going to be ok..?