2.1. Setup Options

The following table describes options frequently used for Ambari Server setup.

OptionDescription

-j

--java-home

Specifies the JAVA_HOME path to use on the Ambari Server and all hosts in the cluster. By default when you do not specify this option, Setup downloads the Oracle JDK 1.6 binary to /var/lib/ambari-server/resources on the Ambari Server and installs the JDK to /usr/jdk64.

Use this option when you plan to use a JDK other than the default Oracle JDK 1.6. See JDK Requirements for more information on the supported JDKs. If you are using an alternate JDK, you must manually install the JDK on all hosts and specify the Java Home path during Ambari Server setup.

This path must be valid on all hosts. For example.

ambari-server setup –j /usr/java/default

-s

--silent

Setup runs silently. Accepts all default prompt values.

-v

--verbose

Prints verbose info and warning messages to the console during Setup.

-c

--jce-policy

Use specified jce_policy. Must be valid on the Ambari Server host.

-i

--jdk-location

Use specified JDK file in local filesystem instead of downloading

-g

--debug

Start Ambari Server in debug mode

loading table of contents...