You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ma...@apache.org on 2023/03/23 18:33:14 UTC
[ranger] branch ranger-2.4 updated: RANGER-3971:Upgrade-HBASE-version-to-2.4.6
This is an automated email from the ASF dual-hosted git repository.
madhan pushed a commit to branch ranger-2.4
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/ranger-2.4 by this push:
new a20fc6b54 RANGER-3971:Upgrade-HBASE-version-to-2.4.6
a20fc6b54 is described below
commit a20fc6b54301beb181f282a6f10e0bd9b2733097
Author: Bhavik Patel <bh...@gmail.com>
AuthorDate: Wed Nov 23 09:47:20 2022 +0530
RANGER-3971:Upgrade-HBASE-version-to-2.4.6
(cherry picked from commit 3074e9fa349b769e391da5ad5eb95a20aaa95e9f)
---
distro/src/main/assembly/admin-web.xml | 1 +
hbase-agent/pom.xml | 5 +++++
.../authorization/hbase/RangerAuthorizationCoprocessor.java | 8 ++++----
pom.xml | 8 ++++----
4 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/distro/src/main/assembly/admin-web.xml b/distro/src/main/assembly/admin-web.xml
index 81a41d37f..6a498153d 100644
--- a/distro/src/main/assembly/admin-web.xml
+++ b/distro/src/main/assembly/admin-web.xml
@@ -101,6 +101,7 @@
<include>org.apache.hbase:hbase-protocol:jar:${hbase.version}</include>
<include>org.apache.hbase:hbase-server:jar:${hbase.version}</include>
<include>org.apache.hbase:hbase-protocol-shaded:jar:${hbase.version}</include>
+ <include>org.apache.hbase:hbase-shaded-client:jar:${hbase.version}</include>
<include>org.apache.hbase.thirdparty:hbase-shaded-protobuf:jar:${hbase-shaded-protobuf}</include>
<include>org.apache.hbase.thirdparty:hbase-shaded-netty:jar:${hbase-shaded-netty}</include>
<include>org.apache.hbase.thirdparty:hbase-shaded-miscellaneous:jar:${hbase-shaded-miscellaneous}</include>
diff --git a/hbase-agent/pom.xml b/hbase-agent/pom.xml
index 20d3e3069..90063e1a8 100644
--- a/hbase-agent/pom.xml
+++ b/hbase-agent/pom.xml
@@ -75,6 +75,11 @@
</exclusion>
</exclusions>
</dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-shaded-client</artifactId>
+ <version>${hbase.version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger-plugins-common</artifactId>
diff --git a/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java b/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
index fbb1bb4f7..4bdf442b1 100644
--- a/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
+++ b/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
@@ -788,7 +788,7 @@ public class RangerAuthorizationCoprocessor implements AccessControlService.Inte
Throwable var3 = null;
try {
- if(!admin.tableExists(AccessControlLists.ACL_TABLE_NAME)) {
+ if(!admin.tableExists(PermissionStorage.ACL_TABLE_NAME)) {
createACLTable(admin);
}
} catch (Throwable var12) {
@@ -812,8 +812,8 @@ public class RangerAuthorizationCoprocessor implements AccessControlService.Inte
}
private static void createACLTable(Admin admin) throws IOException {
- ColumnFamilyDescriptor cfd = ColumnFamilyDescriptorBuilder.newBuilder(AccessControlLists.ACL_LIST_FAMILY).setMaxVersions(1).setInMemory(true).setBlockCacheEnabled(true).setBlocksize(8192).setBloomFilterType(BloomType.NONE).setScope(0).build();
- TableDescriptor td = TableDescriptorBuilder.newBuilder(AccessControlLists.ACL_TABLE_NAME).addColumnFamily(cfd).build();
+ ColumnFamilyDescriptor cfd = ColumnFamilyDescriptorBuilder.newBuilder(PermissionStorage.ACL_LIST_FAMILY).setMaxVersions(1).setInMemory(true).setBlockCacheEnabled(true).setBlocksize(8192).setBloomFilterType(BloomType.NONE).setScope(0).build();
+ TableDescriptor td = TableDescriptorBuilder.newBuilder(PermissionStorage.ACL_TABLE_NAME).addColumnFamily(cfd).build();
admin.createTable(td);
}
@@ -1403,7 +1403,7 @@ public class RangerAuthorizationCoprocessor implements AccessControlService.Inte
});
if (_userUtils.isSuperUser(user)) {
perms.add(new UserPermission(_userUtils.getUserAsString(user),
- Permission.newBuilder(AccessControlLists.ACL_TABLE_NAME).withActions(Action.values()).build()));
+ Permission.newBuilder(PermissionStorage.ACL_TABLE_NAME).withActions(Action.values()).build()));
}
}
response = AccessControlUtil.buildGetUserPermissionsResponse(perms);
diff --git a/pom.xml b/pom.xml
index 1615f98f2..43a758944 100644
--- a/pom.xml
+++ b/pom.xml
@@ -124,13 +124,13 @@
<hadoop.version>3.3.0</hadoop.version>
<ozone.version>1.0.0</ozone.version>
<hamcrest.version>2.2</hamcrest.version>
- <hbase.version>2.2.6</hbase.version>
+ <hbase.version>2.4.6</hbase.version>
<hive.version>3.1.2</hive.version>
<hive.storage-api.version>2.7.2</hive.storage-api.version>
<orc.version>1.5.8</orc.version>
- <hbase-shaded-protobuf>3.3.0</hbase-shaded-protobuf>
- <hbase-shaded-netty>3.3.0</hbase-shaded-netty>
- <hbase-shaded-miscellaneous>3.3.0</hbase-shaded-miscellaneous>
+ <hbase-shaded-protobuf>3.5.1</hbase-shaded-protobuf>
+ <hbase-shaded-netty>3.5.1</hbase-shaded-netty>
+ <hbase-shaded-miscellaneous>3.5.1</hbase-shaded-miscellaneous>
<libfb303.version>0.9.3</libfb303.version>
<libthrift.version>0.13.0</libthrift.version>
<htrace-core.version>4.1.0-incubating</htrace-core.version>