Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Does Ranger have a Shell?

avatar
Master Guru

Does ranger have a shell to execute commands? I know it has restful API which we can curl policy actions. However I am curious if a shell is available to execute command interactivity.

1 ACCEPTED SOLUTION

avatar
Super Collaborator

No, Ranger does not have a shell. But that is an interesting idea.

If you are interested, Ambari does have a shell for it's REST API. It uses Spring Shell. Checkout this https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Shell and this http://docs.spring.io/spring-shell/docs/current/reference/htmlsingle/

View solution in original post

5 REPLIES 5

avatar
Super Collaborator

No, Ranger does not have a shell. But that is an interesting idea.

If you are interested, Ambari does have a shell for it's REST API. It uses Spring Shell. Checkout this https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Shell and this http://docs.spring.io/spring-shell/docs/current/reference/htmlsingle/

avatar
Master Guru

How cool is the ambari shell, could we please bundle that out of the box?

avatar
Super Collaborator

@Benjamin Leonhardi Try this https://github.com/hkropp/vagrant-hdp/blob/master/bin/ambari-shell.jar and run it with

% java -jar ambari-shell.jar --ambari.host=

avatar
Master Guru

Will try it out thanks. I normally only need the CURL commands when something goes wrong but would be nice to investigate the API a bit. Much easier in a shell.

avatar
Rising Star

For Hive and HBase, you can execute GRANT/REVOKE statements from a shell and it will automatically create policies in Ranger.