Created on 11-29-2016 07:10 AM - edited 09-16-2022 03:50 AM
Hello,
i am trying to update the Java version from 7 to 8 on a Sandbox which is running on CentOS.
If i am trying this with the command:
ambari-server setup
i get asked which version i want to install but after the "upgrade" i have still the Java 7 on the sandbox. I am running it wih root.
I hope someone can help me with this.
Regrads,
Jan
Created 11-29-2016 08:24 AM
To shortcut the procedure you can also set the other java version for the whole server:
/usr/sbin/alternatives --config java
This will change the java version for the whole system and not just Ambari and the HDP components.
Created 11-29-2016 08:17 AM
I assume that you did not use the 'custom Java' option in the setup dialog, right?
For the update of the used java to work, you will have to make sure that
(I guess in the sandbox setup you only have one machine, as long as you did not change it).
After setup completes, you must restart each component for the new JDK to be used by the Hadoop services.Using the Ambari Web UI, do the following tasks:
Created 11-29-2016 08:24 AM
To shortcut the procedure you can also set the other java version for the whole server:
/usr/sbin/alternatives --config java
This will change the java version for the whole system and not just Ambari and the HDP components.
Created 12-01-2016 08:16 AM
@Jan Bauer - did this solve your question?
Created 12-13-2016 10:52 AM
Sorry for the late answer,
i had to install it like you said.
But additional i hade to modify all env files for the servies on the Cluster. (Set the new JAVA_HOME Path)
Created 04-11-2017 05:05 AM
I had install new openjdk 1.8 and there is the old 1.6 version on the same version
I use
/usr/sbin/alternatives --config java
changed the java version,
and then use java -version,it shows me the openjdk version is 1.8
but I found /usr/lib/jvm/ linked to /etc/alternatives/java_sdk and still linked to /usr/lib/jvm/java-1.6.0-openjdk.x86_64
So I think nothing changed.
I just set JAVA_HOME to /usr/lib/jvm/java ,and want not to change the java home path after each jdk upgrade.
So I don't know why the /etc/alternatives/java_sdk link not change.