3.1. Setting up JAAS for Ambari

If you want to set up Java Authentication and Authorization Services (JAAS) configurations for Ambari to provide independent, secure access to native Hadoop GUIs such as the NameName UI, use the Apache community documentation topic Create the JAAS Configuration Files to set up your configurations. Then, do the following:

  1. Log into the Ambari server host.


    Ambari Server should not be running when you do this. Edit configuration files before you start Ambari Server the first time or, stop the Ambari Server, edit the files, then re-start Ambari Server.

  2. Run the following, specific setup-security command and answer the prompts:

    ambari-server setup-security
    1. Select 5 for Setup Ambari kerberos JAAS configuration.

    2. Enter the Kerberos principal name for the Ambari server you set up here.

    3. Enter the path to the keytab for the Ambari principal.

    4. Restart Ambari Server:

      ambari-server restart