Created
July 18, 2018 06:01
-
-
Save shivannakarthik/16a85be65051caa25a49e0019dd679a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Installing Ranger Admin HA via Ambari causes a full cluster outage and the ambari wizard takes full control of the restarts. | |
| #Below are the steps to enable HA manually wiht out having to use Ambari for setup. | |
| 1. Add Ranger Admin component to another host selected for HA in the cluster using Ambari API. | |
| curl -u username:password -H "X-Requested-by:ambari" -i -k -X POST -d '{"host_components" : [{"HostRoles":{"component_name":"RANGER_ADMIN"}}]}' http://<ambari_host>:8080/api/v1/clusters/<clustername>/hosts?Hosts/host_name=<host_where_you_need_ha_component> | |
| Note: Ambari API command used above puts Ranger Admin component on host. To install Ranger Admin component, go to Ambari --> Ranger --> Ranger Admin Host --> Click on drop down to re-install | |
| Warning: Do not start Ranger Admin yet. | |
| 2. Setup loadbalancer for both Ranger Admins | |
| 3. If your cluster is Kerberized | |
| Create principals and keytabs for new Ranger Admin Instance. | |
| Setup Spnego keytab for loadbalancer. You should not be recreation spnego keytab. You should just add the principals to the existing spnego keytab | |
| 4. Update Ranger Configuration for Ranger Admin HA | |
| Go to Ambari --> Ranger --> Configurations --> Update "External URL" to loadbalancer URL | |
| 5. Restart Ranger Service in rolling mode | |
| 6. Test and Validate Ranger HA setup | |
| 7. Perform rolling restart for other HDP services as required |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment