...
Code Block | ||||
---|---|---|---|---|
| ||||
public class SentryAuthorizer implements Authorizer { void grant(EntityId entity, Principal Principal, Set<Action> actions){ // do grant operation on sentry client with needed mapping/conversion } ... ... private SentryGenericServiceClient getClient() throws Exception { return SentryGenericServiceClientFactory.create(conf); // create sentry client from Configuration } } |
CDAP Sentry Model
The CDAP Sentry Model defines the CDAP entities for whom access needs to be authorized via Apache Sentry. It will based off of the Sentry Generic Authorization Model. The CDAP Sentry Model will have the following components:
...