Repository: incubator-sentry Updated Branches: refs/heads/master 7d214749a -> afe33c981
SENTRY-224: Provider resource should not be required for DB provider backend (Prasad Mujumdar via Sravya Tirukkovalur) Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/afe33c98 Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/afe33c98 Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/afe33c98 Branch: refs/heads/master Commit: afe33c981062ad60320b06629c473ed16273d9de Parents: 7d21474 Author: Sravya Tirukkovalur <[email protected]> Authored: Thu May 22 16:28:15 2014 -0700 Committer: Sravya Tirukkovalur <[email protected]> Committed: Thu May 22 16:28:15 2014 -0700 ---------------------------------------------------------------------- .../apache/sentry/provider/db/SimpleDBProviderBackend.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/afe33c98/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/SimpleDBProviderBackend.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/SimpleDBProviderBackend.java b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/SimpleDBProviderBackend.java index 13af593..54c1d6d 100644 --- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/SimpleDBProviderBackend.java +++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/SimpleDBProviderBackend.java @@ -17,11 +17,9 @@ package org.apache.sentry.provider.db; import java.io.IOException; -import java.lang.UnsupportedOperationException; import java.util.Set; import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.fs.Path; import org.apache.sentry.SentryUserException; import org.apache.sentry.core.common.ActiveRoleSet; import org.apache.sentry.core.common.SentryConfigurationException; @@ -44,10 +42,11 @@ public class SimpleDBProviderBackend implements ProviderBackend { private volatile boolean initialized; public SimpleDBProviderBackend(Configuration conf, String resourcePath) throws IOException { - this(conf, new Path(resourcePath)); + // DB Provider doesn't use policy file path + this(conf); } - public SimpleDBProviderBackend(Configuration conf, Path resourcePath) throws IOException { + public SimpleDBProviderBackend(Configuration conf) throws IOException { this(new SentryPolicyServiceClient(conf)); }
