Skip to end of metadata
Go to start of metadata

If you are using APIs to add host to an existing cluster involves the following steps:

  • Install ambari-agent on the host to be added to the cluster
    • Ensure that the agent installed be the same version as the server
    • Configure the agent to register with the server (edit /etc/ambari-agent/conf/ambari-agent.ini)

Adding a host and then installing components

Verified against releases 1.4.1/1.2.5

Starting 1.4.2/1.4.3 you will have to add -H option to the curl calls. E.g. -H "X-Requested-By: ambari"

1. Ensure the host is registered properly.

If you do not see the host resource then verify that ambari-agent registered successfully with the ambari-server. See through the logs to check what host-name was used for registration.
2. Add the host to the cluster.

3. Ensure the host is added to the cluster.

4. Add the necessary host components to the host.
These steps are applicable when the components being added are member of service already added. If you are adding hosts to install components of a new service then you need to add the service itself to the installed stack first. This may require adding new config types as well.

Ensure that ganglia monitor is also installed on the new hosts.

5. Install the components.
This step will create requests that you can monitor for progress and result.

Each install request will return a request id that can be used to monitor progress.

Monitor the request and tasks within the request for progress

Use the following to access all tasks for a given request

6. Start the components.
This step will create requests that you can monitor for progress and result. Start the components after install has been successful.

Each install request will return a request id that can be used to monitor progress.
Client components, such as HDFS_CLIENT, need not be started. Nagios server may need to be restarted to ensure it picks up the new host and reports its status.
7. Restart Nagios.

  • No labels