Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PlaceholderDescriptionExample
ambari_server The server running the Ambari web clientc6401.ambari.apache.org:8080 
cluster_name The name of the clustercluster1 
target_host The host that will have the additional ResourceManagerc6402.ambari.apache.org 

 

Installing ResourceManager

  1. Stop all services except for HDFS.
    1. Using the Ambari web client to manually stop each service.
    2. Using the Ambari REST APIs directly. For this method, you can consult the documentation on starting and stopping services.

  2. Install ResourceManager manually Add a ResourceManager component to YARN on a host that does not already have ResourceManager installed. This will not actually install ResourceManager, but will setup the host component associations.

    Code Block
    curl -u admin:$PASSWORD -H "X-Requested-By: Ambari" -i -X POST -d '{"host_components" : [{"HostRoles":{"component_name":"RESOURCEMANAGER"}}] }' http://<ambari_server>:8080/api/v1/clusters/<cluster_name>/hosts?Hosts/host_name=<target_host>
  3. Install ResourceManager on the same target_host used in the previous step.

    Code Block
    curl -u admin:$PASSWORD -H "X-Requested-By: Ambari" -i -X PUT -d '{"RequestInfo":{"context":"Install ResourceManager","operation_level":{"level":"HOST_COMPONENT","cluster_name":"<cluster_name>","host_name":"<target_host>","service_name":"YARN"}},"Body":{"HostRoles":{"state":"INSTALLED"}}}' http://<ambari_server>/api/v1/clusters/<cluster_name>/hosts/<target_host>/host_components/RESOURCEMANAGER

YARN Configuration