Examples of SentryServiceClientFactory


Examples of org.apache.sentry.service.thrift.SentryServiceClientFactory

  public static SentryPolicyServiceClient getSentryClient() throws Exception {
    if (sentryServer == null) {
      throw new IllegalAccessException("Sentry service not initialized");
    }
    SentryServiceClientFactory factory = new SentryServiceClientFactory();
    return factory.create(sentryServer.getConf());
  }
View Full Code Here

Examples of org.apache.sentry.service.thrift.SentryServiceClientFactory

  private final HiveAuthzConf authzConf;
  private final Server server;

  public SentryMetastorePostEventListener(Configuration config) {
    super(config);
    sentryClientFactory = new SentryServiceClientFactory();

    authzConf = HiveAuthzConf.getAuthzConf(new HiveConf());
    server = new Server(authzConf.get(AuthzConfVars.AUTHZ_SERVER_NAME.getVar()));
  }
View Full Code Here

Examples of org.apache.sentry.service.thrift.SentryServiceClientFactory

  private String ipAddress;
  private HiveOperation stmtOperation;


  public SentryGrantRevokeTask() {
    this(new SentryServiceClientFactory());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.