loading table of contents...

7. Apache Atlas High Availability

Use the following steps to set up High Availability (HA) for Apache Atlas.

[Note]Note

In Ambari 2.4.0.0, adding or removing Atlas Metadata Servers requires manually editing the atlas.rest.address property.

  1. Select Hosts on the Ambari dashboard, then select the host on which to install the standby Atlas Metadata Server.

  2. On the Summary page of the new Atlas Metadata Server host, select Add > Atlas Metadata Server and add the new Atlas Metadata Server. Ambari adds the new Atlas Metadata Server in a Stopped state.

  3. Select Atlas > Configs > Advanced, then select Advanced application-properties. Append the atlas.rest.address property with a comma and the value for the new Atlas Metadata Server: ,http(s):<host_name>:<port_number>.

    [Note]Note

    The default protocol is "http". If the atlas.enableTLS property is set to true, use "https". Also, the default HTTP port is 21000 and the default HTTPS port is 21443. These values can be overridden using the atlas.server.http.port and atlas.server.https.port properties, respectively.

  4. Stop all of the Atlas Metadata Servers that are currently running.

    [Important]Important

    You must use the Stop command to stop the Atlas Metadata Servers. Do not use a Restart command as this attempts to first stop the newly added Atlas Server, which at this point does not contain any configurations in /etc/atlas/conf.

  5. On the Ambari dashboard, select Atlas > Service Actions > Start.

    Ambari automatically configures the following Atlas properties in the /etc/atlas/conf/atlas-application.properties file.

    • atlas.server.ids

    • atlas.server.address.$id

    • atlas.server.ha.enabled

  6. Restart the following services that contain Atlas hooks (in order to refresh the configuration files):

    • Hive

    • Storm

    • Falcon

    • Sqoop

    • Oozie

    When you update the Atlas configuration settings in Ambari, Ambari marks the services that require restart, and you can select Actions > Restart All Required to restart all services that require a restart.

    [Important]Important

    Apache Oozie requires a restart after an Atlas configuration update, but may not be included in the services marked as requiring restart in Ambari. Select Oozie > Service Actions > Restart All to restart Oozie along with the other services.