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.

Does Ranger have a Shell?

Solved Go to solution

Does Ranger have a Shell?

Super 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

Accepted Solutions
Highlighted

Re: Does Ranger have a Shell?

Expert Contributor

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/

5 REPLIES 5
Highlighted

Re: Does Ranger have a Shell?

Expert Contributor

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/

Re: Does Ranger have a Shell?

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

Re: Does Ranger have a Shell?

Expert Contributor

@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=

Re: Does Ranger have a Shell?

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.

Re: Does Ranger have a Shell?

Contributor

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

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