Andy,

I'm not sure what you are referring to but I want to make sure of thing.
Sentry doesn't have an a public API. You need a sentry-binding.
It would be helpfull if you could help us understand your use case and how
you are trying to use sentry.

On Mon, Nov 5, 2018 at 10:42 AM Na Li <lina...@cloudera.com.invalid> wrote:

> Andy,
>
> I don't think there is up-to-date document on Sentry API.
>
> You can find the API provided by Sentry server at
>
> https://github.com/apache/sentry/blob/master/sentry-service/sentry-service-api/src/gen/thrift/gen-javabean/org/apache/sentry/api/service/thrift/SentryPolicyService.java
>
> On how to integrate with your application, you can look at how Hive
> integrate with Sentry at
>
> https://github.com/apache/sentry/blob/master/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java
>
> You can run e2e test at
>
> https://github.com/apache/sentry/blob/master/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestOwnerPrivileges.java#L112
> and see how hive uses Sentry for authorization.
>
> Thanks,
>
> Lina
>
> On Mon, Nov 5, 2018 at 8:51 AM andy chen <vein...@126.com> wrote:
>
> > Hello,
> >
> >         Can you give me a favor?  I want to ask where to find the
> document
> > of sentry API 。I try to read the source code of sentry,however ,I can’t
> get
> > the point . Now I stil don’t know how to call the  sentry API in my app.
> I
> > really need you help.
> >
> > Thanks &Best Regards
> >
> >
> >
> >
> >
>

Reply via email to