Versions Compared

Key

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

Prerequisites

  • At least 2 hosts in the cluster where YARN is not present on 1 host
  • HDP 2.0+
  • YARN Installed

Assumptions

PlaceholderDescriptionExample
ambari_server  
cluster_name  
target_host  

 

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 on a host that does not already have ResourceManager installed.

    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>