Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ranger Blueprint Installation with plugins enabled

Highlighted

Ranger Blueprint Installation with plugins enabled

Expert Contributor

Hi,

Would like to ask help on installing ranger and enable its plugins via blueprint vs via ambari.

I've installed Ranger HA via blueprint, successfully with plugins enabled. But, when accessing the ranger dashboard, default services is missing, unlike when enabling the plugins manually via ambari, service is already available. see screenshots:

Enabled plugin via Ambari

72939-selection-592.png

Enabled plugin via Blueprint

72938-selection-591.png

Any inputs is highly appreciated. Thank you!

2 REPLIES 2

Re: Ranger Blueprint Installation with plugins enabled

New Contributor

Hi! I face exactly the same situation. Any ideas on how to proceed? @Michael Dennis "MD" Uanang? Did you make through it?

Re: Ranger Blueprint Installation with plugins enabled

New Contributor

OK, after some digging:

Plugin may be visibly enabled in ambari after blueprint install, but it won't be configured and available in Ranger GUI unless the "plugined" service is restarted. Moreover - keep in mind that if you set your own password for amb_ranger_admin user (for example using jinja2 template in blueprint) it has to follow required rules - at least 8 chars and at least one letter and one digit within. Unproperly set password was my case.

If you are installing cluster remotely, those API calls below may be usefull for you (for example to call from ansible playbook). Example for HIVE (all components, all hosts).

Put the service down

curl -i -u admin:admin -H "X-Requested-By: ambari"  -X PUT  -d '{"RequestInfo":{"context":"stop hive","operation_level":{"level":"CLUSTER","cluster_name":"<cluster_name>"}},"Body":{"ServiceInfo":{"state":"INSTALLED"}}}'  http://<ambari_host>:8080/api/v1/clusters/<cluster_name>/services/HIVE

Check service state:

curl --silent -u admin:admin -X GET http://<ambari_host>:8080/api/v1/clusters/<cluster_name>/services/HIVE?fields=ServiceInfo | grep '"state" :'

Bring the service up:

curl -i -u admin:admin -H "X-Requested-By: ambari"  -X PUT  -d '{"RequestInfo":{"context":"start hive","operation_level":{"level":"CLUSTER","cluster_name":"<cluster_name>"}},"Body":{"ServiceInfo":{"state":"STARTED"}}}'  http://<ambari_host>:8080/api/v1/clusters/<cluster_name>/services/HIVE



Don't have an account?
Coming from Hortonworks? Activate your account here