ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sneet...@apache.org
Subject incubator-ranger git commit: RANGER-920: Update HBase plugin for changes in the HBase Authorizer interface
Date Tue, 12 Apr 2016 00:20:39 GMT
Repository: incubator-ranger
Updated Branches:
  refs/heads/master 984d3ffb8 -> 0851489e2


RANGER-920: Update HBase plugin for changes in the HBase Authorizer interface


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/0851489e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/0851489e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/0851489e

Branch: refs/heads/master
Commit: 0851489e215473e2a5ef08ef22af45180e16ac32
Parents: 984d3ff
Author: sneethiraj <sneethir@apache.org>
Authored: Mon Apr 11 20:20:19 2016 -0400
Committer: sneethiraj <sneethir@apache.org>
Committed: Mon Apr 11 20:20:19 2016 -0400

----------------------------------------------------------------------
 .../hbase/RangerAuthorizationCoprocessor.java       | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/0851489e/ranger-hbase-plugin-shim/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
----------------------------------------------------------------------
diff --git a/ranger-hbase-plugin-shim/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
b/ranger-hbase-plugin-shim/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
index 7ecaf72..e276737 100644
--- a/ranger-hbase-plugin-shim/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
+++ b/ranger-hbase-plugin-shim/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
@@ -95,11 +95,12 @@ import org.apache.hadoop.hbase.replication.ReplicationEndpoint;
 import org.apache.hadoop.hbase.util.Pair;
 import org.apache.hadoop.hbase.wal.WALKey;
 import org.apache.ranger.plugin.classloader.RangerPluginClassLoader;
-
 import com.google.common.collect.ImmutableList;
 import com.google.protobuf.RpcCallback;
 import com.google.protobuf.RpcController;
 import com.google.protobuf.Service;
+import java.util.Set;
+import com.google.common.net.HostAndPort;
 
 public class RangerAuthorizationCoprocessor implements MasterObserver, RegionObserver, RegionServerObserver,
BulkLoadObserver, AccessControlProtos.AccessControlService.Interface, CoprocessorService,
Coprocessor {
 
@@ -3772,4 +3773,17 @@ public class RangerAuthorizationCoprocessor implements MasterObserver,
RegionObs
 			rangerPluginClassLoader.deactivate();
 		}
 	}
+
+
+ 
+  // TODO : need override annotations for all of the following methods
+
+  public void preMoveServers(final ObserverContext<MasterCoprocessorEnvironment> ctx,
Set<HostAndPort> servers, String targetGroup) throws IOException {}
+  public void preMoveTables(final ObserverContext<MasterCoprocessorEnvironment> ctx,
Set<TableName> tables, String targetGroup) throws IOException {}
+  public void postMoveTables(final ObserverContext<MasterCoprocessorEnvironment> ctx,
Set<TableName> tables, String targetGroup) throws IOException {}
+  public void preRemoveRSGroup(final ObserverContext<MasterCoprocessorEnvironment>
ctx, String name) throws IOException {}
+  public void postRemoveRSGroup(final ObserverContext<MasterCoprocessorEnvironment>
ctx, String name) throws IOException {}
+  public void preBalanceRSGroup(final ObserverContext<MasterCoprocessorEnvironment>
ctx, String groupName) throws IOException {}
+  public void postBalanceRSGroup(final ObserverContext<MasterCoprocessorEnvironment>
ctx, String groupName, boolean balancerRan) throws IOException {}
+
 }


Mime
View raw message