Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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.