Created 04-18-2016 07:22 PM
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.
Created 04-18-2016 07:27 PM
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/
Created 04-18-2016 07:27 PM
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/
Created 04-18-2016 08:22 PM
How cool is the ambari shell, could we please bundle that out of the box?
Created 04-18-2016 08:46 PM
@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=
Created 04-18-2016 08:59 PM
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.
Created 04-19-2016 09:14 PM
For Hive and HBase, you can execute GRANT/REVOKE statements from a shell and it will automatically create policies in Ranger.