You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by sn...@apache.org on 2016/04/11 21:16:41 UTC

incubator-ranger git commit: RANGER-920: Update HBase plugin for changes in the HBase Authorizer interface

Repository: incubator-ranger
Updated Branches:
  refs/heads/master 2bbb47619 -> d20c0a9fd


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

Signed-off-by: sneethiraj <sn...@apache.org>


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

Branch: refs/heads/master
Commit: d20c0a9fd45a5470300b7ccf1265122a59d907e8
Parents: 2bbb476
Author: Abhay Kulkarni <ak...@hortonworks.com>
Authored: Mon Apr 11 09:37:30 2016 -0700
Committer: sneethiraj <sn...@apache.org>
Committed: Mon Apr 11 13:52:28 2016 -0400

----------------------------------------------------------------------
 .../hbase/RangerAuthorizationCoprocessorBase.java        | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/d20c0a9f/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessorBase.java
----------------------------------------------------------------------
diff --git a/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessorBase.java b/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessorBase.java
index 3b489af..25f498f 100644
--- a/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessorBase.java
+++ b/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessorBase.java
@@ -20,7 +20,9 @@ package org.apache.ranger.authorization.hbase;
 
 import java.io.IOException;
 import java.util.List;
+import java.util.Set;
 
+import com.google.common.net.HostAndPort;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.hadoop.hbase.Cell;
@@ -475,4 +477,13 @@ public abstract class RangerAuthorizationCoprocessorBase extends BaseRegionObser
       final String namespace, final Quotas quotas) throws IOException{
   }
 
+  // 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 {}
 }