1. How to change the JDK Version for an Existing Cluster

  1. Re-run Ambari Server Setup.

    ambari-server setup

  2. At the prompt to change the JDK, Enter y.

    Do you want to change Oracle JDK [y/n] (n)? y

  3. 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.

  4. If you choose Custom JDK, verify or add the custom JDK path on all hosts in the cluster.

  5. 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.


loading table of contents...