Created on 04-10-2017 05:00 AM
How to set up a Ranger enabled cluster using Ambari-blueprint.
In order to setup a cluster using Ambari blueprints we will need a minimum three node cluster.
Lets say this cluster contains three hosts as below:
secure-ranger-a.com
secure-ranger-b.com
secure-ranger-c.com
Pre-requisites: To setup a Ranger enabled cluster we need to install ambari-server on one of the hosts which can be the called the gateway node and ambari-agents should be installed on all the nodes including the gateway node.All the ambari-agents should be configured to point to the ambari-server on the gateway node.
Note : The operating system used for this setup is Cent-OS.
Lets consider the gateway node to be simple-ranger-a.com, to install ambari-server on this host we need to add ambari repository to the OS repositories.
Now we will need to create the blueprints and run them on the Ambari server.you can use the below blueprints and modify accordingly.
Save the attached hdp.txt and rename the .txt extention to .json
Save the attached cluster.txt and rename the .txt extention to .json
Save the attached blueprint.txt and rename the .txt extention to .json
After modifying the above jsons to use required repositories and hosts, we should now save the jsons on the gateway host.
Now we can submit the blueprints to be processed on the ambari-server using below commands.
On successful execution of above commands we get response message in below format:
{ "href" : "http://<gateway-host>:8080/api/v1/clusters/myblueprint/requests/1", "Requests" : { "id" : 1, "status" : "Accepted" } }
We can now log-in to Ambari and check the background operations to see the components being installed and started on all the hosts.
Created on 05-08-2018 02:31 AM
Thanks for this guide.. 🙂
...Will this work on a HA setup?