This is an automated email from the ASF dual-hosted git repository.
sekikn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new 9b21061d BIGTOP-3820. Upgrade Ranger to 2.3.0. (#1020)
9b21061d is described below
commit 9b21061d24e9640bc982131e0caa1f449c14cd27
Author: Kengo Seki <[email protected]>
AuthorDate: Sun Oct 9 09:46:21 2022 +0900
BIGTOP-3820. Upgrade Ranger to 2.3.0. (#1020)
---
.../src/common/ranger/do-component-build | 22 ++-
.../src/common/ranger/install_ranger.sh | 44 +----
.../src/common/ranger/patch1-RANGER-3459.diff | 193 ---------------------
...h2-update-solr.diff => patch1-RANGER-3818.diff} | 0
bigtop-packages/src/rpm/ranger/SPECS/ranger.spec | 95 ++++++----
bigtop.bom | 2 +-
6 files changed, 77 insertions(+), 279 deletions(-)
diff --git a/bigtop-packages/src/common/ranger/do-component-build
b/bigtop-packages/src/common/ranger/do-component-build
index eff4bc49..016fa3ba 100644
--- a/bigtop-packages/src/common/ranger/do-component-build
+++ b/bigtop-packages/src/common/ranger/do-component-build
@@ -19,14 +19,20 @@ set -e
. `dirname $0`/bigtop.bom
-mvn clean compile package install -DskipTests -Drat.skip \
- -Dhadoop.version=${HADOOP_VERSION} \
- -Dhbase.version=${HBASE_VERSION} \
- -Dhive.version=${HIVE_VERSION} \
- -Dkafka.version=${KAFKA_VERSION} \
- -Dsolr.version=${SOLR_VERSION} \
- -Dzookeeper.version=${ZOOKEEPER_VERSION} \
- "$@"
+mvn clean compile package install \
+ -DskipTests=true \
+ -Dcheckstyle.skip=true \
+ -Djacoco.skip=true \
+ -Dpmd.skip=true \
+ -Drat.skip=true \
+ -Dspotbugs.skip=true \
+ -Dhadoop.version=${HADOOP_VERSION} \
+ -Dhbase.version=${HBASE_VERSION} \
+ -Dhive.version=${HIVE_VERSION} \
+ -Dkafka.version=${KAFKA_VERSION} \
+ -Dsolr.version=${SOLR_VERSION} \
+ -Dzookeeper.version=${ZOOKEEPER_VERSION} \
+ "$@"
mkdir build
for f in target/ranger*.tar.gz
diff --git a/bigtop-packages/src/common/ranger/install_ranger.sh
b/bigtop-packages/src/common/ranger/install_ranger.sh
index 481956ec..b9cf68a4 100644
--- a/bigtop-packages/src/common/ranger/install_ranger.sh
+++ b/bigtop-packages/src/common/ranger/install_ranger.sh
@@ -81,13 +81,6 @@ for var in PREFIX BUILD_DIR COMPONENT ; do
done
-RANGER_HOME=${RANGER_HOME:-/usr/lib/ranger}
-ETC_DIR=${ETC_DIR:-/etc/ranger}
-ADMIN_CONF_DIR=${CONF_DIR:-${ETC_DIR}/admin/conf.dist}
-USERSYNC_CONF_DIR=${CONF_DIR:-${ETC_DIR}/usersync/conf.dist}
-KMS_CONF_DIR=${CONF_DIR:-${ETC_DIR}/kms/conf.dist}
-TAGSYNC_CONF_DIR=${CONF_DIR:-${ETC_DIR}/tagsync/conf.dist}
-
if [ "${COMP_DIR}" == "" ]
then
COMP_DIR=ranger-${COMPONENT}
@@ -96,48 +89,13 @@ fi
# Create the required directories.
install -d -m 0755 ${PREFIX}/usr/lib/$COMP_DIR
-install -d -m 0755 ${PREFIX}/$ETC_DIR/{admin,usersync,kms,tagsync}
-
-install -d -m 0755 ${PREFIX}/var/{log,run}/ranger/{admin,usersync,kms,tagsync}
+install -d -m 0755 ${PREFIX}/var/{lib,log,run}/ranger
# Copy artifacts to the appropriate Linux locations.
cp -r ${BUILD_DIR}/ranger-*-${COMPONENT}/* ${PREFIX}/usr/lib/${COMP_DIR}/
-if [[ "${COMPONENT}" = "admin" ]]
-then
-cp -a ${BUILD_DIR}/ranger-*-${COMPONENT}/ews/webapp/WEB-INF/classes/conf.dist
${PREFIX}/${ADMIN_CONF_DIR}
-ln -s /etc/ranger/admin/conf ${PREFIX}/usr/lib/${COMP_DIR}/conf
-ln -s /usr/lib/${COMP_DIR}/conf
${PREFIX}/usr/lib/${COMP_DIR}/ews/webapp/WEB-INF/classes/conf
-ln -s /usr/lib/${COMP_DIR}/ews/start-ranger-admin.sh
${PREFIX}/usr/lib/${COMP_DIR}/ews/ranger-admin-start
-ln -s /usr/lib/${COMP_DIR}/ews/stop-ranger-admin.sh
${PREFIX}/usr/lib/${COMP_DIR}/ews/ranger-admin-stop
-fi
-
-if [[ "${COMPONENT}" = "usersync" ]]
-then
-echo "usersync"
-cp -a ${BUILD_DIR}/ranger-*-${COMPONENT}/conf.dist
${PREFIX}/${USERSYNC_CONF_DIR}
-ln -s /etc/ranger/usersync/conf ${PREFIX}/usr/lib/${COMP_DIR}/conf
-ln -s /usr/lib/${COMP_DIR}/start.sh
${PREFIX}/usr/lib/${COMP_DIR}/ranger-usersync-start
-ln -s /usr/lib/${COMP_DIR}/stop.sh
${PREFIX}/usr/lib/${COMP_DIR}/ranger-usersync-stop
-fi
-
-if [[ "${COMPONENT}" = "kms" ]]
-then
-echo "kms"
-cp -a ${BUILD_DIR}/ranger-*-${COMPONENT}/ews/webapp/WEB-INF/classes/conf.dist
${PREFIX}/${KMS_CONF_DIR}
-ln -s /etc/ranger/kms/conf ${PREFIX}//usr/lib/${COMP_DIR}/conf
-ln -s /usr/lib/${COMP_DIR}/conf
${PREFIX}/usr/lib/${COMP_DIR}/ews/webapp/WEB-INF/classes/conf
-fi
-
-if [[ "${COMPONENT}" = "tagsync" ]]
-then
-echo "tagsync"
-cp -a ${BUILD_DIR}/ranger-*-${COMPONENT}/conf.dist
${PREFIX}/${TAGSYNC_CONF_DIR}
-ln -s /etc/ranger/tagsync/conf ${PREFIX}/usr/lib/${COMP_DIR}/conf
-fi
-
# For other Components
if [[ "${COMPONENT}" = "hive-plugin" || "${COMPONENT}" = "hbase-plugin" ||
"${COMPONENT}" = "storm-plugin" || "${COMPONENT}" = "hdfs-plugin" ||
"${COMPONENT}" = "yarn-plugin" || "${COMPONENT}" = "kafka-plugin" ||
"${COMPONENT}" = "atlas-plugin" || "${COMPONENT}" = "knox-plugin" ]]
then
diff --git a/bigtop-packages/src/common/ranger/patch1-RANGER-3459.diff
b/bigtop-packages/src/common/ranger/patch1-RANGER-3459.diff
deleted file mode 100644
index 8537e84d..00000000
--- a/bigtop-packages/src/common/ranger/patch1-RANGER-3459.diff
+++ /dev/null
@@ -1,193 +0,0 @@
-From b63924c717b1a394d693814d02a282a0aaa7dc97 Mon Sep 17 00:00:00 2001
-From: Viktor Somogyi-Vass <[email protected]>
-Date: Mon, 20 Sep 2021 17:23:29 +0200
-Subject: [PATCH] RANGER-3459: Upgrade Kafka dependency to 2.8
-
-Co-authored-by: Andras Katona <[email protected]>
----
- .../kafka/authorizer/KafkaRangerAuthorizerGSSTest.java | 8 +++++---
- .../authorizer/KafkaRangerAuthorizerSASLSSLTest.java | 8 +++++---
- .../kafka/authorizer/KafkaRangerAuthorizerTest.java | 8 +++++---
- .../kafka/authorizer/KafkaRangerTopicCreationTest.java | 8 +++++---
- pom.xml | 2 +-
- 5 files changed, 21 insertions(+), 13 deletions(-)
-
-diff --git
a/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerGSSTest.java
b/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerGSSTest.java
-index fe600b1eaf..e82de18495 100644
----
a/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerGSSTest.java
-+++
b/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerGSSTest.java
-@@ -30,6 +30,7 @@
- import java.util.Properties;
- import java.util.concurrent.Future;
-
-+import kafka.server.KafkaServer;
- import org.apache.curator.test.InstanceSpec;
- import org.apache.curator.test.TestingServer;
- import org.apache.hadoop.security.UserGroupInformation;
-@@ -43,6 +44,7 @@
- import org.apache.kafka.clients.producer.RecordMetadata;
- import org.apache.kafka.common.PartitionInfo;
- import org.apache.kafka.common.config.SaslConfigs;
-+import org.apache.kafka.common.utils.Time;
- import org.apache.kerby.kerberos.kerb.server.SimpleKdcServer;
- import org.junit.Assert;
- import org.junit.Test;
-@@ -50,7 +52,7 @@
- import org.slf4j.LoggerFactory;
-
- import kafka.server.KafkaConfig;
--import kafka.server.KafkaServerStartable;
-+import scala.Some;
-
- /**
- * A simple test that starts a Kafka broker, creates "test" and "dev" topics,
-@@ -69,7 +71,7 @@
- public class KafkaRangerAuthorizerGSSTest {
- private final static Logger LOG =
LoggerFactory.getLogger(KafkaRangerAuthorizerGSSTest.class);
-
-- private static KafkaServerStartable kafkaServer;
-+ private static KafkaServer kafkaServer;
- private static TestingServer zkServer;
- private static int port;
- private static Path tempDir;
-@@ -140,7 +142,7 @@ public static void setup() throws Exception {
-
UserGroupInformation.createUserForTesting("kafka/[email protected]",
new String[] {"IT"});
-
- KafkaConfig config = new KafkaConfig(props);
-- kafkaServer = new KafkaServerStartable(config);
-+ kafkaServer = new KafkaServer(config, Time.SYSTEM, new
Some<String>("KafkaRangerAuthorizerGSSTest"), false);
- kafkaServer.startup();
-
- // Create some topics
-diff --git
a/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerSASLSSLTest.java
b/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerSASLSSLTest.java
-index 6f4538549b..b25d1fdd10 100644
----
a/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerSASLSSLTest.java
-+++
b/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerSASLSSLTest.java
-@@ -27,6 +27,7 @@
- import java.util.Properties;
- import java.util.concurrent.Future;
-
-+import kafka.server.KafkaServer;
- import org.apache.commons.io.FileUtils;
- import org.apache.curator.test.TestingServer;
- import org.apache.hadoop.security.UserGroupInformation;
-@@ -40,11 +41,12 @@
- import org.apache.kafka.clients.producer.RecordMetadata;
- import org.apache.kafka.common.config.SaslConfigs;
- import org.apache.kafka.common.config.SslConfigs;
-+import org.apache.kafka.common.utils.Time;
- import org.junit.Assert;
- import org.junit.Test;
-
- import kafka.server.KafkaConfig;
--import kafka.server.KafkaServerStartable;
-+import scala.Some;
-
- /**
- * A simple test that starts a Kafka broker, creates "test" and "dev" topics,
sends a message to them and consumes it. We also plug in a
-@@ -63,7 +65,7 @@
- @org.junit.Ignore("Causing JVM to abort on some platforms")
- public class KafkaRangerAuthorizerSASLSSLTest {
-
-- private static KafkaServerStartable kafkaServer;
-+ private static KafkaServer kafkaServer;
- private static TestingServer zkServer;
- private static int port;
- private static String serviceKeystorePath;
-@@ -139,7 +141,7 @@ public static void setup() throws Exception {
- UserGroupInformation.createUserForTesting("alice", new String[]
{"IT"});
-
- KafkaConfig config = new KafkaConfig(props);
-- kafkaServer = new KafkaServerStartable(config);
-+ kafkaServer = new KafkaServer(config, Time.SYSTEM, new
Some<String>("KafkaRangerAuthorizerSASLSSLTest"), false);
- kafkaServer.startup();
-
- // Create some topics
-diff --git
a/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerTest.java
b/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerTest.java
-index 113ac36869..d24ee1e570 100644
----
a/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerTest.java
-+++
b/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerTest.java
-@@ -29,6 +29,7 @@
- import java.util.Properties;
- import java.util.concurrent.Future;
-
-+import kafka.server.KafkaServer;
- import org.apache.commons.io.FileUtils;
- import org.apache.curator.test.TestingServer;
- import org.apache.hadoop.security.UserGroupInformation;
-@@ -41,11 +42,12 @@
- import org.apache.kafka.clients.producer.ProducerRecord;
- import org.apache.kafka.clients.producer.RecordMetadata;
- import org.apache.kafka.common.config.SslConfigs;
-+import org.apache.kafka.common.utils.Time;
- import org.junit.Assert;
- import org.junit.Test;
-
- import kafka.server.KafkaConfig;
--import kafka.server.KafkaServerStartable;
-+import scala.Some;
-
- /**
- * A simple test that starts a Kafka broker, creates "test" and "dev" topics,
sends a message to them and consumes it. We also plug in a
-@@ -65,7 +67,7 @@
- */
- public class KafkaRangerAuthorizerTest {
-
-- private static KafkaServerStartable kafkaServer;
-+ private static KafkaServer kafkaServer;
- private static TestingServer zkServer;
- private static int port;
- private static String serviceKeystorePath;
-@@ -133,7 +135,7 @@ public static void setup() throws Exception {
- UserGroupInformation.createUserForTesting(serviceDN, new String[]
{"IT"});
-
- KafkaConfig config = new KafkaConfig(props);
-- kafkaServer = new KafkaServerStartable(config);
-+ kafkaServer = new KafkaServer(config, Time.SYSTEM, new
Some<String>("KafkaRangerAuthorizerTest"), false);
- kafkaServer.startup();
-
- // Create some topics
-diff --git
a/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerTopicCreationTest.java
b/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerTopicCreationTest.java
-index a12817ebab..201064970b 100644
----
a/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerTopicCreationTest.java
-+++
b/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerTopicCreationTest.java
-@@ -18,7 +18,7 @@
- package org.apache.ranger.authorization.kafka.authorizer;
-
- import kafka.server.KafkaConfig;
--import kafka.server.KafkaServerStartable;
-+import kafka.server.KafkaServer;
- import org.apache.curator.test.InstanceSpec;
- import org.apache.curator.test.TestingServer;
- import org.apache.hadoop.security.UserGroupInformation;
-@@ -29,10 +29,12 @@
- import org.apache.kafka.clients.admin.CreateTopicsResult;
- import org.apache.kafka.clients.admin.NewTopic;
- import org.apache.kafka.common.KafkaFuture;
-+import org.apache.kafka.common.utils.Time;
- import org.apache.kerby.kerberos.kerb.server.SimpleKdcServer;
- import org.junit.Test;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
-+import scala.Some;
-
- import java.io.File;
- import java.net.ServerSocket;
-@@ -49,7 +51,7 @@
- public class KafkaRangerTopicCreationTest {
- private final static Logger LOG =
LoggerFactory.getLogger(KafkaRangerTopicCreationTest.class);
-
-- private static KafkaServerStartable kafkaServer;
-+ private static KafkaServer kafkaServer;
- private static TestingServer zkServer;
- private static int port;
- private static Path tempDir;
-@@ -121,7 +123,7 @@ public static void setup() throws Exception {
-
UserGroupInformation.createUserForTesting("kafka/[email protected]",
new String[] {"IT"});
-
- KafkaConfig config = new KafkaConfig(props);
-- kafkaServer = new KafkaServerStartable(config);
-+ kafkaServer = new KafkaServer(config, Time.SYSTEM, new
Some<String>("KafkaRangerTopicCreationTest"), false);
- kafkaServer.startup();
- }
-
diff --git a/bigtop-packages/src/common/ranger/patch2-update-solr.diff
b/bigtop-packages/src/common/ranger/patch1-RANGER-3818.diff
similarity index 100%
rename from bigtop-packages/src/common/ranger/patch2-update-solr.diff
rename to bigtop-packages/src/common/ranger/patch1-RANGER-3818.diff
diff --git a/bigtop-packages/src/rpm/ranger/SPECS/ranger.spec
b/bigtop-packages/src/rpm/ranger/SPECS/ranger.spec
index dad58f79..e6d53a8c 100644
--- a/bigtop-packages/src/rpm/ranger/SPECS/ranger.spec
+++ b/bigtop-packages/src/rpm/ranger/SPECS/ranger.spec
@@ -14,11 +14,8 @@
%undefine _missing_build_ids_terminate_build
%define ranger_name ranger
-%define etc_ranger /etc/%{ranger_name}
%define ranger_home /usr/lib/%{ranger_name}
%define ranger_user_home /var/lib/%{ranger_name}
-%define config_ranger %{etc_ranger}/conf
-%define config_ranger_dist %{config_ranger}.dist
%define usr_lib_ranger /usr/lib/%{ranger_name}
%define var_log_ranger /var/log/%{ranger_name}
@@ -91,7 +88,7 @@
Name: %{ranger_name}
Version: %{ranger_base_version}
Release: %{ranger_release}
-Summary: Ranger is a security framework for securing Hadoop data
+Summary: Ranger is a framework for securing Hadoop data
License: Apache License v2.0
URL: http://ranger.apache.org/
Group: Development/Libraries
@@ -110,14 +107,14 @@ AutoReq: no
%if %{?suse_version:1}0
# Required for init scripts
-Requires: sh-utils, insserv
+Requires: coreutils, insserv
%endif
# CentOS 5 does not have any dist macro
# So I will suppose anything that is not Mageia or a SUSE will be a
RHEL/CentOS/Fedora
%if %{!?suse_version:1}0 && %{!?mgaversion:1}0
# Required for init scripts
-Requires: sh-utils, redhat-lsb
+Requires: coreutils, redhat-lsb
%endif
%if 0%{?mgaversion}
@@ -140,14 +137,14 @@ AutoReq: no
%if %{?suse_version:1}0
# Required for init scripts
-Requires: sh-utils, insserv
+Requires: coreutils, insserv
%endif
# CentOS 5 does not have any dist macro
# So I will suppose anything that is not Mageia or a SUSE will be a
RHEL/CentOS/Fedora
%if %{!?suse_version:1}0 && %{!?mgaversion:1}0
# Required for init scripts
-Requires: sh-utils, redhat-lsb
+Requires: coreutils, redhat-lsb
%endif
%if 0%{?mgaversion}
@@ -170,14 +167,14 @@ AutoReq: no
%if %{?suse_version:1}0
# Required for init scripts
-Requires: sh-utils, insserv
+Requires: coreutils, insserv
%endif
# CentOS 5 does not have any dist macro
# So I will suppose anything that is not Mageia or a SUSE will be a
RHEL/CentOS/Fedora
%if %{!?suse_version:1}0 && %{!?mgaversion:1}0
# Required for init scripts
-Requires: sh-utils, redhat-lsb
+Requires: coreutils, redhat-lsb
%endif
%if 0%{?mgaversion}
@@ -200,14 +197,14 @@ AutoReq: no
%if %{?suse_version:1}0
# Required for init scripts
-Requires: sh-utils, insserv
+Requires: coreutils, insserv
%endif
# CentOS 5 does not have any dist macro
# So I will suppose anything that is not Mageia or a SUSE will be a
RHEL/CentOS/Fedora
%if %{!?suse_version:1}0 && %{!?mgaversion:1}0
# Required for init scripts
-Requires: sh-utils, redhat-lsb
+Requires: coreutils, redhat-lsb
%endif
%if 0%{?mgaversion}
@@ -229,13 +226,13 @@ Requires: psmisc
AutoReq: no
%if %{?suse_version:1}0
# Required for init scripts
-Requires: sh-utils, insserv
+Requires: coreutils, insserv
%endif
# CentOS 5 does not have any dist macro
# So I will suppose anything that is not Mageia or a SUSE will be a
RHEL/CentOS/Fedora
%if %{!?suse_version:1}0 && %{!?mgaversion:1}0
# Required for init scripts
-Requires: sh-utils, redhat-lsb
+Requires: coreutils, redhat-lsb
%endif
%if 0%{?mgaversion}
Requires: chkconfig, xinetd-simple-services, zlib, initscripts
@@ -246,58 +243,98 @@ Ranger-tagsync is tag synchronizer component associated
with the Ranger framewor
%package hdfs-plugin
Summary: ranger plugin for hdfs
Group: System/Daemons
+# On Rocky 8, find-requires picks up /usr/bin/python, but it's not provided by
any package.
+# So installing ranger-*-plugin fails with a "nothing provides
/usr/bin/python" message,
+# even when python3 is installed and /usr/bin/python is created as a symlink
to python3.
+# Therefore we disable find-requires for each plugins with the following
option.
+AutoReq: no
%description hdfs-plugin
-Ranger HDFS plugnin component runs within namenode to provoide enterprise
security using ranger framework
+Ranger HDFS plugin component runs within namenode to provide enterprise
security using ranger framework
%package yarn-plugin
Summary: ranger plugin for yarn
Group: System/Daemons
+# On Rocky 8, find-requires picks up /usr/bin/python, but it's not provided by
any package.
+# So installing ranger-*-plugin fails with a "nothing provides
/usr/bin/python" message,
+# even when python3 is installed and /usr/bin/python is created as a symlink
to python3.
+# Therefore we disable find-requires for each plugins with the following
option.
+AutoReq: no
%description yarn-plugin
-Ranger YARN plugnin component runs within namenode to provoide enterprise
security using ranger framework
+Ranger YARN plugin component runs within resourcemanager to provide enterprise
security using ranger framework
%package hive-plugin
Summary: ranger plugin for hive
Group: System/Daemons
+# On Rocky 8, find-requires picks up /usr/bin/python, but it's not provided by
any package.
+# So installing ranger-*-plugin fails with a "nothing provides
/usr/bin/python" message,
+# even when python3 is installed and /usr/bin/python is created as a symlink
to python3.
+# Therefore we disable find-requires for each plugins with the following
option.
+AutoReq: no
%description hive-plugin
-Ranger Hive plugnin component runs within hiveserver2 to provoide enterprise
security using ranger framework
+Ranger Hive plugin component runs within hiveserver2 to provide enterprise
security using ranger framework
%package hbase-plugin
Summary: ranger plugin for hbase
Group: System/Daemons
+# On Rocky 8, find-requires picks up /usr/bin/python, but it's not provided by
any package.
+# So installing ranger-*-plugin fails with a "nothing provides
/usr/bin/python" message,
+# even when python3 is installed and /usr/bin/python is created as a symlink
to python3.
+# Therefore we disable find-requires for each plugins with the following
option.
+AutoReq: no
%description hbase-plugin
-Ranger HBASE plugnin component runs within master and regional servers as
co-processor to provoide enterprise security using ranger framework
+Ranger HBASE plugin component runs within master and region servers as
co-processor to provide enterprise security using ranger framework
%package knox-plugin
Summary: ranger plugin for knox
Group: System/Daemons
+# On Rocky 8, find-requires picks up /usr/bin/python, but it's not provided by
any package.
+# So installing ranger-*-plugin fails with a "nothing provides
/usr/bin/python" message,
+# even when python3 is installed and /usr/bin/python is created as a symlink
to python3.
+# Therefore we disable find-requires for each plugins with the following
option.
+AutoReq: no
%description knox-plugin
-Ranger KNOX plugnin component runs within knox proxy server to provoide
enterprise security using ranger framework
+Ranger KNOX plugin component runs within knox proxy server to provide
enterprise security using ranger framework
%package storm-plugin
Summary: ranger plugin for storm
Group: System/Daemons
+# On Rocky 8, find-requires picks up /usr/bin/python, but it's not provided by
any package.
+# So installing ranger-*-plugin fails with a "nothing provides
/usr/bin/python" message,
+# even when python3 is installed and /usr/bin/python is created as a symlink
to python3.
+# Therefore we disable find-requires for each plugins with the following
option.
+AutoReq: no
%description storm-plugin
-Ranger STORM plugnin component runs within storm to provoide enterprise
security using ranger framework
+Ranger STORM plugin component runs within storm to provide enterprise security
using ranger framework
%package kafka-plugin
Summary: ranger plugin for kafka
Group: System/Daemons
+# On Rocky 8, find-requires picks up /usr/bin/python, but it's not provided by
any package.
+# So installing ranger-*-plugin fails with a "nothing provides
/usr/bin/python" message,
+# even when python3 is installed and /usr/bin/python is created as a symlink
to python3.
+# Therefore we disable find-requires for each plugins with the following
option.
+AutoReq: no
%description kafka-plugin
-Ranger KAFKA plugnin component runs within namenode to provoide enterprise
security using ranger framework
+Ranger KAFKA plugin component runs within kafka to provide enterprise security
using ranger framework
%package atlas-plugin
Summary: ranger plugin for atlas
Group: System/Daemons
+# On Rocky 8, find-requires picks up /usr/bin/python, but it's not provided by
any package.
+# So installing ranger-*-plugin fails with a "nothing provides
/usr/bin/python" message,
+# even when python3 is installed and /usr/bin/python is created as a symlink
to python3.
+# Therefore we disable find-requires for each plugins with the following
option.
+AutoReq: no
%description atlas-plugin
-Ranger ATLAS plugnin component runs within namenode to provoide enterprise
security using ranger framework
+Ranger ATLAS plugin component runs within atlas to provide enterprise security
using ranger framework
%prep
%setup -q -n %{ranger_name}-release-%{ranger_name}-%{ranger_base_version}
@@ -358,32 +395,22 @@ fi
#######################
%files admin
%defattr(-,root,root,755)
-%attr(0775,ranger,ranger) %{var_run_ranger}/admin
-%attr(0775,ranger,ranger) %{var_log_ranger}/admin
+%attr(0775,ranger,ranger) %{ranger_user_home}
+%attr(0775,ranger,ranger) %{var_run_ranger}
%{usr_lib_ranger}-admin
-%config(noreplace) /etc/ranger/admin/conf.dist
%files usersync
%defattr(-,root,root,755)
-%attr(0775,ranger,ranger) %{var_run_ranger}/usersync
-%attr(0775,ranger,ranger) %{var_log_ranger}/usersync
%{usr_lib_ranger}-usersync
%attr(750,root,ranger) %{usr_lib_ranger}-usersync/native/credValidator.uexe
-%config(noreplace) /etc/ranger/usersync/conf.dist
%files kms
%defattr(-,root,root,755)
-%attr(0775,ranger,ranger) %{var_run_ranger}/kms
-%attr(0775,ranger,ranger) %{var_log_ranger}/kms
%{usr_lib_ranger}-kms
-%config(noreplace) /etc/ranger/kms/conf.dist
%files tagsync
%defattr(-,root,root,755)
-%attr(0775,ranger,ranger) %{var_run_ranger}/tagsync
-%attr(0775,ranger,ranger) %{var_log_ranger}/tagsync
%{usr_lib_ranger}-tagsync
-%config(noreplace) /etc/ranger/tagsync/conf.dist
%files hdfs-plugin
%defattr(-,root,root,755)
diff --git a/bigtop.bom b/bigtop.bom
index 89da0ad0..2c416009 100644
--- a/bigtop.bom
+++ b/bigtop.bom
@@ -355,7 +355,7 @@ bigtop {
'ranger' {
name = 'ranger'
relNotes = 'Apache Ranger'
- version { base = '2.2.0'; pkg = base; release = 1 }
+ version { base = '2.3.0'; pkg = base; release = 1 }
tarball { destination = "release-$name-${version.base}.tar.gz"
source = destination }
url { site = "https://github.com/apache/ranger/archive/refs/tags"