THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Prerequisites
- At least 2 hosts in the cluster where YARN is not present on 1 host
- HDP 2.0+
- YARN Installed
Assumptions
Placeholder | Description | Example |
---|---|---|
ambari_server | ||
cluster_name | ||
target_host |
Installing ResourceManager
- Stop all services except for HDFS.
- Using the Ambari web client to manually stop each service.
- Using the Ambari REST APIs directly. For this method, you can consult the documentation on starting and stopping services.
Install ResourceManager manually on a host that does not already have ResourceManager installed.
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>