Re-run Ambari Server Setup.
ambari-server setup
At the prompt to change the JDK, Enter y.
Do you want to change Oracle JDK [y/n] (n)?
y
At the prompt to choose a JDK, Enter
1
to change the JDK to v1.7.[1] - Oracle JDK 1.7
[2] - Oracle JDK 1.6
[3] - Custom JDK Enter choice: 3
If you choose Oracle JDK 1.7 or Oracle JDK 1.6, the JDK you choose downloads and installs automatically.
If you choose
Custom JDK
, verify or add the custom JDK path on all hosts in the cluster.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:
Restart each component
Restart each host
Restart all services
For more information about managing services in your cluster, see Managing Services.