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());
}
@Before
public void setup() throws Exception{
dfs.createBaseDir();