Repository: incubator-ranger
Updated Branches:
  refs/heads/master e44c5113e -> 092214406


RANGER-351: Updated HBase plugin to use HBase version 1.1, from 0.99.2


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

Branch: refs/heads/master
Commit: 0922144064f5ea8f6c217843d952decad0f9bb5c
Parents: e44c511
Author: Madhan Neethiraj <[email protected]>
Authored: Mon Mar 30 22:58:02 2015 -0700
Committer: Madhan Neethiraj <[email protected]>
Committed: Mon Mar 30 22:58:31 2015 -0700

----------------------------------------------------------------------
 .../RangerAuthorizationCoprocessorBase.java     | 33 ++++++++++++++++++++
 pom.xml                                         |  2 +-
 2 files changed, 34 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/09221440/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 a752569..e767bfe 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
@@ -22,6 +22,7 @@ import java.io.IOException;
 import java.util.List;
 
 import org.apache.hadoop.hbase.Cell;
+import org.apache.hadoop.hbase.CellScanner;
 import org.apache.hadoop.hbase.CoprocessorEnvironment;
 import org.apache.hadoop.hbase.HColumnDescriptor;
 import org.apache.hadoop.hbase.HRegionInfo;
@@ -43,11 +44,13 @@ import 
org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment;
 import org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessorEnvironment;
 import org.apache.hadoop.hbase.coprocessor.RegionServerObserver;
 import org.apache.hadoop.hbase.master.RegionPlan;
+import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry;
 import 
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
 import org.apache.hadoop.hbase.regionserver.HRegion;
 import org.apache.hadoop.hbase.regionserver.wal.WALEdit;
 import org.apache.hadoop.hbase.replication.ReplicationEndpoint;
 
+
 /**
  * This class exits only to prevent the clutter of methods that we don't 
intend to implement in the main co-processor class. 
  * @author alal
@@ -214,6 +217,36 @@ public abstract class RangerAuthorizationCoprocessorBase 
extends BaseRegionObser
        public void 
postRollWALWriterRequest(ObserverContext<RegionServerCoprocessorEnvironment> 
ctx) throws IOException {
                // Not applicable.  Expected to be empty
        }
+
+    public void preReplicateLogEntries(final 
ObserverContext<RegionServerCoprocessorEnvironment> ctx, List<WALEntry> 
entries, CellScanner cells) throws IOException {
+    }
+
+    public void postReplicateLogEntries(final 
ObserverContext<RegionServerCoprocessorEnvironment> ctx, List<WALEntry> 
entries, CellScanner cells) throws IOException {
+    }
+
+    public void 
preGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx, 
List<TableName> tableNamesList, List<HTableDescriptor> descriptors, String 
regex) throws IOException {
+    }
+
+    public void 
postGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx, 
List<TableName> tableNamesList, List<HTableDescriptor> descriptors, String 
regex) throws IOException {
+    }
+
+    public  void 
preGetTableNames(ObserverContext<MasterCoprocessorEnvironment> ctx, 
List<HTableDescriptor> descriptors, String regex) throws IOException {
+    }
+
+    public  void 
postGetTableNames(ObserverContext<MasterCoprocessorEnvironment> ctx, 
List<HTableDescriptor> descriptors, String regex) throws IOException {
+    }
+
+    public void 
preGetNamespaceDescriptor(ObserverContext<MasterCoprocessorEnvironment> ctx, 
String namespace) throws IOException {
+    }
+
+    public void 
postGetNamespaceDescriptor(ObserverContext<MasterCoprocessorEnvironment> ctx, 
NamespaceDescriptor ns) throws IOException {
+    }
+
+    public void 
preListNamespaceDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx, 
List<NamespaceDescriptor> descriptors) throws IOException {
+    }
+
+    public void 
postListNamespaceDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx, 
List<NamespaceDescriptor> descriptors) throws IOException {
+    }
        
        public void preTableFlush(final 
ObserverContext<MasterCoprocessorEnvironment> ctx, final TableName tableName) 
throws IOException {
                // Not applicable.  Expected to be empty

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/09221440/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index e0345cb..8845eed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -131,7 +131,7 @@
                <hadoop-common-kms.version>2.6.0</hadoop-common-kms.version>
                <hadoop.version>3.0.0-SNAPSHOT</hadoop.version>
                <hamcrest.all.version>1.3</hamcrest.all.version>
-               <hbase.version>0.99.2</hbase.version>
+               <hbase.version>1.1.0-SNAPSHOT</hbase.version>
                <hive.version>1.2.0-SNAPSHOT</hive.version>
                <storm.version>0.9.2-incubating</storm.version>
                
<httpcomponent.httpmime.version>4.2.5</httpcomponent.httpmime.version>

Reply via email to