You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Ronny Hidayat <pr...@gmail.com> on 2017/10/03 07:50:08 UTC
Adding new plugin to ranger
Hi all,
I want to add new plugin to ranger (glusterfs-agent), so GlusterFS
appears on Ranger-Admin website.
How to do that ?
Do you have any tutorial ?
Thank you.
Re: Adding new plugin to ranger
Posted by Don Bosco Durai <bo...@apache.org>.
Sorry, I didn’t paste the correct URL for Bryan’s blog. Here is the correct one https://bryanbende.com/development/2016/04/25/building-a-plugin-for-apache-ranger
You might also want to check HDFS plugin implementation. Take a look at checkPermission() method.
https://github.com/apache/ranger/blob/master/hdfs-agent/src/main/java/org/apache/ranger/authorization/hadoop/RangerHdfsAuthorizer.java
Bosco
On 10/4/17, 4:55 PM, "Ronny Hidayat" <pr...@gmail.com> wrote:
Ok, Thank you for your help.
2017-10-05 0:37 GMT+07.00, Don Bosco Durai <bo...@apache.org>:
> There is a nice blog written by Bryan Bende
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=53741207
>
> You can also refer to
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=53741207
>
> There is a sample project by Madhan to bootstrap your plugin.
> https://github.com/apache/ranger/tree/master/ranger-examples/sampleapp
>
> I couldn’t see the ServiceDef in the project, but you could look into one of
> the existing ones.
>
> At a high level, Apache Ranger expects the native component to publish an
> interface e.g.
> https://github.com/apache/ranger/blob/master/ranger-examples/sampleapp/src/main/java/org/apache/ranger/examples/sampleapp/IAuthorizer.java
> . Once your interface is defined, then it is pretty straight forward.
>
> If you are stuck, someone will be able to help you out.
>
> All the best…
>
> Bosco
>
>
>
> On 10/3/17, 12:50 AM, "Ronny Hidayat" <pr...@gmail.com> wrote:
>
> Hi all,
>
> I want to add new plugin to ranger (glusterfs-agent), so GlusterFS
> appears on Ranger-Admin website.
> How to do that ?
> Do you have any tutorial ?
>
> Thank you.
>
>
>
>
Re: Adding new plugin to ranger
Posted by Ronny Hidayat <pr...@gmail.com>.
Ok, Thank you for your help.
2017-10-05 0:37 GMT+07.00, Don Bosco Durai <bo...@apache.org>:
> There is a nice blog written by Bryan Bende
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=53741207
>
> You can also refer to
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=53741207
>
> There is a sample project by Madhan to bootstrap your plugin.
> https://github.com/apache/ranger/tree/master/ranger-examples/sampleapp
>
> I couldn’t see the ServiceDef in the project, but you could look into one of
> the existing ones.
>
> At a high level, Apache Ranger expects the native component to publish an
> interface e.g.
> https://github.com/apache/ranger/blob/master/ranger-examples/sampleapp/src/main/java/org/apache/ranger/examples/sampleapp/IAuthorizer.java
> . Once your interface is defined, then it is pretty straight forward.
>
> If you are stuck, someone will be able to help you out.
>
> All the best…
>
> Bosco
>
>
>
> On 10/3/17, 12:50 AM, "Ronny Hidayat" <pr...@gmail.com> wrote:
>
> Hi all,
>
> I want to add new plugin to ranger (glusterfs-agent), so GlusterFS
> appears on Ranger-Admin website.
> How to do that ?
> Do you have any tutorial ?
>
> Thank you.
>
>
>
>
Re: Adding new plugin to ranger
Posted by Don Bosco Durai <bo...@apache.org>.
There is a nice blog written by Bryan Bende https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=53741207
You can also refer to https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=53741207
There is a sample project by Madhan to bootstrap your plugin. https://github.com/apache/ranger/tree/master/ranger-examples/sampleapp
I couldn’t see the ServiceDef in the project, but you could look into one of the existing ones.
At a high level, Apache Ranger expects the native component to publish an interface e.g. https://github.com/apache/ranger/blob/master/ranger-examples/sampleapp/src/main/java/org/apache/ranger/examples/sampleapp/IAuthorizer.java . Once your interface is defined, then it is pretty straight forward.
If you are stuck, someone will be able to help you out.
All the best…
Bosco
On 10/3/17, 12:50 AM, "Ronny Hidayat" <pr...@gmail.com> wrote:
Hi all,
I want to add new plugin to ranger (glusterfs-agent), so GlusterFS
appears on Ranger-Admin website.
How to do that ?
Do you have any tutorial ?
Thank you.