You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "rameeshm (via GitHub)" <gi...@apache.org> on 2025/09/06 05:02:18 UTC

[PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

rameeshm opened a new pull request, #660:
URL: https://github.com/apache/ranger/pull/660

   
   ## What changes were proposed in this pull request?
   
   Include Apache Tez as the process framework for ranger-hive docker 
   
   - This fixes issue with Insert command in beeline
   - Data processing is much faster with Tez's  DAG for processing.
   
   
   ## How was this patch tested?
   Testing in Docker running  HiveServer 2 beeline and execute "INSERT" statement for DAG.
   <img width="1541" height="611" alt="TezJob" src="https://github.com/user-attachments/assets/723fb01e-023f-4b4d-90b2-c0f7cdba85ec" />
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2415114557


##########
dev-support/ranger-docker/Dockerfile.ranger-hadoop:
##########
@@ -21,22 +21,29 @@ FROM ${RANGER_BASE_IMAGE}:${RANGER_BASE_VERSION}
 ARG HADOOP_VERSION
 ARG HDFS_PLUGIN_VERSION
 ARG YARN_PLUGIN_VERSION
+ARG TEZ_VERSION
 
 
 COPY ./dist/version                                          /home/ranger/dist/
 COPY ./dist/ranger-${HDFS_PLUGIN_VERSION}-hdfs-plugin.tar.gz /home/ranger/dist/
 COPY ./dist/ranger-${YARN_PLUGIN_VERSION}-yarn-plugin.tar.gz /home/ranger/dist/
 COPY ./downloads/hadoop-${HADOOP_VERSION}.tar.gz             /home/ranger/dist/
+COPY ./downloads/apache-tez-${TEZ_VERSION}-bin.tar.gz        /home/ranger/dist/
 
 COPY ./scripts/ranger-hadoop-setup.sh                   /home/ranger/scripts/
 COPY ./scripts/ranger-hadoop.sh                         /home/ranger/scripts/
 COPY ./scripts/ranger-hadoop-mkdir.sh                   /home/ranger/scripts/
 COPY ./scripts/ranger-hdfs-plugin-install.properties    /home/ranger/scripts/
 COPY ./scripts/ranger-yarn-plugin-install.properties    /home/ranger/scripts/
 
+# Switch to root to create system directories

Review Comment:
   User is already `root` here, please update.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2415121390


##########
dev-support/ranger-docker/Dockerfile.ranger-knox:
##########
@@ -32,6 +32,9 @@ COPY ./scripts/ranger-knox-plugin-install.properties    /home/ranger/scripts/
 COPY ./scripts/ranger-knox-expect.py                    /home/ranger/scripts/
 COPY ./scripts/ranger-knox-sandbox.xml                  /home/ranger/scripts/
 
+# Switch to root to create system directories
+USER root

Review Comment:
   User is already `root` here, please update.



##########
dev-support/ranger-docker/Dockerfile.ranger-hive:
##########
@@ -38,7 +40,10 @@ COPY ./scripts/ranger-hive.sh                           /home/ranger/scripts/
 COPY ./scripts/ranger-hive-plugin-install.properties    /home/ranger/scripts/
 COPY ./scripts/hive-site-${RANGER_DB_TYPE}.xml          /home/ranger/scripts/hive-site.xml
 
-RUN tar xvfz /home/ranger/dist/apache-hive-${HIVE_VERSION}-bin.tar.gz --directory=/opt/ && \
+# Switch to root to create system directories

Review Comment:
   User is already `root` here, please update.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2326519581


##########
dev-support/ranger-docker/scripts/hive-site-oracle.xml:
##########
@@ -49,4 +49,72 @@
         <name>hive.zookeeper.client.port</name>
         <value>2181</value>
     </property>
+
+    <!-- Tez Configuration -->
+    <property>
+        <name>hive.execution.engine</name>
+        <value>tez</value>
+        <description>Execution engine to use for Hive queries</description>
+    </property>
+
+    <property>
+        <name>hive.tez.container.size</name>
+        <value>1024</value>
+        <description>By default Tez will spawn containers of the size of a mapper</description>
+    </property>
+
+    <property>
+        <name>hive.tez.java.opts</name>
+        <value>-Xmx768m</value>
+        <description>Java command line options for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.tez.log.level</name>
+        <value>INFO</value>
+        <description>Log level for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.prewarm.enabled</name>
+        <value>false</value>
+        <description>Enables container prewarm for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.prewarm.numcontainers</name>
+        <value>3</value>
+        <description>Controls the number of containers to prewarm for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.tez.auto.reducer.parallelism</name>
+        <value>true</value>
+        <description>Turn on Tez' auto reducer parallelism feature</description>
+    </property>
+
+    <property>
+        <name>hive.tez.min.reducer.per.query</name>
+        <value>2</value>
+        <description>Controls the minimum number of reducers for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.tez.max.reducer.per.query</name>
+        <value>999</value>
+        <description>Controls the maximum number of reducers for Tez</description>
+    </property>
+
+    <!-- YARN Configuration for Tez -->
+    <property>
+        <name>hive.tez.exec.print.summary</name>
+        <value>true</value>
+        <description>Whether to print a summary of the plan execution</description>
+    </property>
+
+    <property>
+        <name>tez.queue.name</name>
+        <value>default</value>
+        <description>YARN configuration for Tez jobs</description>

Review Comment:
   The description should be 'YARN queue name for Tez jobs' to match the other hive-site XML files and accurately describe the tez.queue.name property.
   ```suggestion
           <description>YARN queue name for Tez jobs</description>
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2415115036


##########
dev-support/ranger-docker/Dockerfile.ranger-hbase:
##########
@@ -31,6 +31,9 @@ COPY ./scripts/ranger-hbase.sh                           /home/ranger/scripts/
 COPY ./scripts/ranger-hbase-plugin-install.properties    /home/ranger/scripts/
 COPY ./scripts/hbase-site.xml                            /home/ranger/scripts/
 
+# Switch to root to create system directories
+USER root

Review Comment:
   User is already `root` here, please update.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2415119912


##########
dev-support/ranger-docker/Dockerfile.ranger-kafka:
##########
@@ -30,6 +30,9 @@ COPY ./scripts/ranger-kafka-setup.sh                     /home/ranger/scripts/
 COPY ./scripts/ranger-kafka.sh                           /home/ranger/scripts/
 COPY ./scripts/ranger-kafka-plugin-install.properties    /home/ranger/scripts/
 
+# Switch to root to create system directories

Review Comment:
   User is already `root` here, please update.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2415111969


##########
dev-support/ranger-docker/Dockerfile.ranger:
##########
@@ -23,13 +23,20 @@ ARG RANGER_VERSION
 ARG RANGER_DB_TYPE
 ARG TARGETARCH
 
+# Set Ranger environment variables
+ENV RANGER_HOME=/opt/ranger
+ENV RANGER_SCRIPTS=/home/ranger/scripts
+
 COPY ./dist/version                               /home/ranger/dist/
 COPY ./dist/ranger-${RANGER_VERSION}-admin.tar.gz /home/ranger/dist/
 
 COPY ./scripts/ranger.sh                                         ${RANGER_SCRIPTS}/
 COPY ./scripts/ranger-admin-install-${RANGER_DB_TYPE}.properties ${RANGER_SCRIPTS}/ranger-admin-install.properties
 COPY ./scripts/create-ranger-services.py                         ${RANGER_SCRIPTS}/
 
+# Switch to root to create system directories
+USER root

Review Comment:
   User is already `root` at this point, so this line is redundant.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2415121008


##########
dev-support/ranger-docker/Dockerfile.ranger-kms:
##########
@@ -27,6 +28,9 @@ COPY ./dist/ranger-${KMS_VERSION}-kms.tar.gz                   /home/ranger/dist
 COPY ./scripts/ranger-kms.sh                                   ${RANGER_SCRIPTS}/
 COPY ./scripts/ranger-kms-install-${RANGER_DB_TYPE}.properties ${RANGER_SCRIPTS}/ranger-kms-install.properties
 
+# Switch to root to create system directories

Review Comment:
   User is already `root` here, please update.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2417600606


##########
dev-support/ranger-docker/Dockerfile.ranger-hadoop:
##########
@@ -37,6 +39,8 @@ COPY ./scripts/ranger-yarn-plugin-install.properties    /home/ranger/scripts/
 RUN tar xvfz /home/ranger/dist/hadoop-${HADOOP_VERSION}.tar.gz --directory=/opt/ && \
     ln -s /opt/hadoop-${HADOOP_VERSION} /opt/hadoop && \
     rm -f /home/ranger/dist/hadoop-${HADOOP_VERSION}.tar.gz && \
+    tar xvfz /home/ranger/dist/apache-tez-${TEZ_VERSION}-bin.tar.gz --directory=/opt/ && \
+    ln -s /opt/apache-tez-${TEZ_VERSION}-bin /opt/tez && \

Review Comment:
   Let's remove the `apache-tez-<version>-bin.tar.gz` after un-taring ? as it's done for other tarballs.



##########
dev-support/ranger-docker/scripts/hive-site-sqlserver.xml:
##########
@@ -47,4 +47,72 @@
         <name>hive.zookeeper.client.port</name>
         <value>2181</value>
     </property>
+

Review Comment:
   This file may be removed, as support for `SQL Server` is going to be deprecated soon.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2689205406


##########
dev-support/ranger-docker/.env:
##########
@@ -11,46 +11,66 @@ RANGER_BASE_IMAGE=apache/ranger-base
 RANGER_BASE_VERSION=20250707-1-8
 # Java version used to build Apache Ranger is present as suffix: -8, valid values for suffix: -8, -11, -17
 RANGER_BASE_BUILD_VERSION=20250707-1-8
+RANGER_VERSION=3.0.0-SNAPSHOT
 
-# third party image versions
-MARIADB_VERSION=10.7.3
-POSTGRES_VERSION=12
-ORACLE_VERSION=23.6
-SQLSERVER_VERSION=2019-latest
-ENABLE_DB_MOUNT=true
-ZK_VERSION=3.9.2
-SOLR_VERSION=8.11.3
-
-# service versions
+# Hadoop Configuration
 HADOOP_VERSION=3.3.6
-HBASE_VERSION=2.6.0
+HDFS_PLUGIN_VERSION=3.0.0-SNAPSHOT
+YARN_PLUGIN_VERSION=3.0.0-SNAPSHOT
+
+# Hive Configuration
+HIVE_HADOOP_VERSION=3.3.6
 HIVE_VERSION=4.0.1
-HIVE_HADOOP_VERSION=3.1.1
+HIVE_PLUGIN_VERSION=3.0.0-SNAPSHOT
+
+# Tez Configuration
+TEZ_VERSION=0.10.4
+
+# HBase Configuration
+HBASE_VERSION=2.6.0
+HBASE_PLUGIN_VERSION=3.0.0-SNAPSHOT
+
+# Kafka Configuration
 KAFKA_VERSION=2.8.2
+KAFKA_PLUGIN_VERSION=3.0.0-SNAPSHOT
+
+# Knox Configuration
 KNOX_VERSION=2.0.0
-TRINO_VERSION=377
-OZONE_VERSION=1.4.0
-OZONE_RUNNER_VERSION=20230615-1
-OZONE_RUNNER_IMAGE=apache/ozone-runner
-OZONE_OPTS=
+KNOX_PLUGIN_VERSION=3.0.0-SNAPSHOT
 
-# versions of ranger services
-RANGER_VERSION=3.0.0-SNAPSHOT
+# KMS Configuration
 KMS_VERSION=3.0.0-SNAPSHOT
+
+# Usersync Configuration
 USERSYNC_VERSION=3.0.0-SNAPSHOT
+
+# Tagsync Configuration
 TAGSYNC_VERSION=3.0.0-SNAPSHOT
 
-# plugin versions
-HDFS_PLUGIN_VERSION=3.0.0-SNAPSHOT
-YARN_PLUGIN_VERSION=3.0.0-SNAPSHOT
-HIVE_PLUGIN_VERSION=3.0.0-SNAPSHOT
-HBASE_PLUGIN_VERSION=3.0.0-SNAPSHOT
-KAFKA_PLUGIN_VERSION=3.0.0-SNAPSHOT
-KNOX_PLUGIN_VERSION=3.0.0-SNAPSHOT
-TRINO_PLUGIN_VERSION=3.0.0-SNAPSHOT
+# Solr Configuration
+SOLR_VERSION=8.11.2
+
+# Zookeeper Configuration
+ZK_VERSION=3.8.4
+
+# Database Versions

Review Comment:
   Sure, please check.
   
   While testing upgrades from 2.6 and 2.7 to 2.8.0-SNAPSHOT, the upgrade with Oracle failed: https://github.com/kumaab/ranger/actions/runs/20984849291 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2328992162


##########
dev-support/ranger-docker/scripts/ranger-hive.sh:
##########
@@ -50,14 +91,49 @@ fi
 cd "${HIVE_HOME}" || exit
 
 # Start Hive MetaStore
+echo "Starting Hive MetaStore..."
 su -c "nohup ${HIVE_HOME}/bin/hive --service metastore > metastore.log 2>&1 &" hive
 
 # Start HiveServer2
+echo "Starting HiveServer2..."
 su -c "nohup ${HIVE_HOME}/bin/hiveserver2 > hive-server2.log 2>&1 &" hive
 
+# Wait for services to initialize
+echo "Waiting for Hive services to initialize..."
 sleep 10
 
-HIVE_SERVER2_PID=`ps -ef  | grep -v grep | grep -i "org.apache.hive.service.server.HiveServer2" | awk '{print $2}'`
+# Verify Hive services are running and ready
+echo "Verifying Hive services are ready for beeline connections..."
+METASTORE_PID=`ps -ef | grep -v grep | grep -i "org.apache.hadoop.hive.metastore.HiveMetaStore" | awk '{print $2}'`
+HIVE_SERVER2_PID=`ps -ef | grep -v grep | grep -i "org.apache.hive.service.server.HiveServer2" | awk '{print $2}'`
+
+if [ -n "$METASTORE_PID" ]; then
+  echo "Hive MetaStore is running (PID: $METASTORE_PID)"
+else
+  echo "WARNING: Hive MetaStore process not found!"
+fi
+
+if [ -n "$HIVE_SERVER2_PID" ]; then
+  echo "HiveServer2 is running (PID: $HIVE_SERVER2_PID)"
+else
+  echo "WARNING: HiveServer2 process not found!"
+fi
+
+# Additional verification: Check if HiveServer2 is listening on port 10000
+echo "Checking if HiveServer2 is listening on port 10000..."

Review Comment:
   health checks for HiveServer2 can be added in `docker-compose.ranger-hive.yml` as well, this PR adds healthchecks for all containers: #604 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm commented on PR #660:
URL: https://github.com/apache/ranger/pull/660#issuecomment-3422965566

   @kumaab  Addressed the review comments. Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2393515206


##########
dev-support/ranger-docker/scripts/ranger-hive.sh:
##########
@@ -50,14 +91,49 @@ fi
 cd "${HIVE_HOME}" || exit
 
 # Start Hive MetaStore
+echo "Starting Hive MetaStore..."
 su -c "nohup ${HIVE_HOME}/bin/hive --service metastore > metastore.log 2>&1 &" hive
 
 # Start HiveServer2
+echo "Starting HiveServer2..."
 su -c "nohup ${HIVE_HOME}/bin/hiveserver2 > hive-server2.log 2>&1 &" hive
 
+# Wait for services to initialize
+echo "Waiting for Hive services to initialize..."
 sleep 10
 
-HIVE_SERVER2_PID=`ps -ef  | grep -v grep | grep -i "org.apache.hive.service.server.HiveServer2" | awk '{print $2}'`
+# Verify Hive services are running and ready
+echo "Verifying Hive services are ready for beeline connections..."
+METASTORE_PID=`ps -ef | grep -v grep | grep -i "org.apache.hadoop.hive.metastore.HiveMetaStore" | awk '{print $2}'`
+HIVE_SERVER2_PID=`ps -ef | grep -v grep | grep -i "org.apache.hive.service.server.HiveServer2" | awk '{print $2}'`
+
+if [ -n "$METASTORE_PID" ]; then
+  echo "Hive MetaStore is running (PID: $METASTORE_PID)"
+else
+  echo "WARNING: Hive MetaStore process not found!"
+fi
+
+if [ -n "$HIVE_SERVER2_PID" ]; then
+  echo "HiveServer2 is running (PID: $HIVE_SERVER2_PID)"
+else
+  echo "WARNING: HiveServer2 process not found!"
+fi
+
+# Additional verification: Check if HiveServer2 is listening on port 10000
+echo "Checking if HiveServer2 is listening on port 10000..."

Review Comment:
   @kumaab I shall address the health check changes in another JIRA as this is to enable TEZ in hivesever2.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm commented on PR #660:
URL: https://github.com/apache/ranger/pull/660#issuecomment-3354845413

   > Thank you @rameeshm for the patch, I believe this is tested with Ubuntu base image, please see if this can be tested with UBI base image as well, this change needs to made in `.env` file: RANGER_BASE_VERSION=[20250712-1-ubi-8](https://hub.docker.com/layers/apache/ranger-base/20250712-1-ubi-8/images/sha256-f2bd4fe9d5e3a4e5ca363c61fb2a46bdb718dd208c7356fb654fc640717a189f), thanks!
   
   @kumaab current patch with the review comments tested with RANGER_BASE_VERSION=[20250712-1-ubi-8]


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm merged PR #660:
URL: https://github.com/apache/ranger/pull/660


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "mneethiraj (via GitHub)" <gi...@apache.org>.
mneethiraj commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2328000703


##########
dev-support/ranger-docker/scripts/create-users.sh:
##########
@@ -0,0 +1,62 @@
+#!/bin/bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Script to create alice and abram users in ranger containers
+# This script is designed to be run during container initialization
+
+# Function to create a user for testing.
+create_user_if_not_exists() {
+    local username=$1
+    local uid=$2
+    local gid=$3
+    local home_dir=$4
+
+    if ! id "$username" &>/dev/null; then
+        echo "Creating user: $username (uid:$uid, gid:$gid)"
+        useradd -u "$uid" -g "$gid" -m -d "$home_dir" -s /bin/bash "$username"
+
+        # Set a default password (same as username for demo purposes)
+        echo "$username:$username" | chpasswd
+
+        # Add user to hadoop group for HDFS access
+        if getent group hadoop &>/dev/null; then
+            usermod -a -G hadoop "$username"
+        fi
+
+        # Create .ssh directory and set proper permissions
+        mkdir -p "$home_dir/.ssh"
+        chmod 700 "$home_dir/.ssh"
+        chown "$username:$gid" "$home_dir/.ssh"
+
+        echo "User $username created successfully"
+    else
+        echo "User $username already exists"
+    fi
+}
+
+# Ensure hadoop group exists (gid 1001 is used by hdfs, yarn, hive users)
+if ! getent group hadoop &>/dev/null; then
+    groupadd -g 1001 hadoop
+    echo "Created hadoop group"
+fi
+
+# Create alice user (uid: 2001, gid: 1001 - hadoop group)

Review Comment:
   Is it necessary for users `alice` and `abram` to be in `hadoop` group? This group is meant for service accounts (like `hive`, `hbase`, `impala`) to get certain privileges. User accounts shouldn't need to be part of this group.
   
   Also, it is mandatory that uid for the created users be 2001 and 2002? If not, I suggest creating the users without specifying uid.



##########
dev-support/ranger-docker/scripts/create-users.sh:
##########
@@ -0,0 +1,62 @@
+#!/bin/bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Script to create alice and abram users in ranger containers
+# This script is designed to be run during container initialization
+
+# Function to create a user for testing.
+create_user_if_not_exists() {
+    local username=$1
+    local uid=$2
+    local gid=$3
+    local home_dir=$4
+
+    if ! id "$username" &>/dev/null; then
+        echo "Creating user: $username (uid:$uid, gid:$gid)"
+        useradd -u "$uid" -g "$gid" -m -d "$home_dir" -s /bin/bash "$username"
+
+        # Set a default password (same as username for demo purposes)
+        echo "$username:$username" | chpasswd
+
+        # Add user to hadoop group for HDFS access
+        if getent group hadoop &>/dev/null; then
+            usermod -a -G hadoop "$username"
+        fi
+
+        # Create .ssh directory and set proper permissions
+        mkdir -p "$home_dir/.ssh"
+        chmod 700 "$home_dir/.ssh"
+        chown "$username:$gid" "$home_dir/.ssh"
+
+        echo "User $username created successfully"
+    else
+        echo "User $username already exists"
+    fi
+}
+
+# Ensure hadoop group exists (gid 1001 is used by hdfs, yarn, hive users)

Review Comment:
   Is it necessary that gid of `hadoop` is 1001? If not, I suggest creating the group without specifying gid.
   
   ```
   if ! getent group hadoop &>/dev/null; then
       groupadd hadoop
       echo "Created hadoop group"
   fi
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2328075299


##########
dev-support/ranger-docker/.env:
##########
@@ -25,8 +25,8 @@ SOLR_VERSION=8.11.3
 HADOOP_VERSION=3.3.6
 HBASE_VERSION=2.6.0
 HIVE_VERSION=4.0.1
-HIVE_HADOOP_VERSION=3.1.1
-KAFKA_VERSION=2.8.2

Review Comment:
   Looks like I accidently removed Kafka Version so need fix this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2415111969


##########
dev-support/ranger-docker/Dockerfile.ranger:
##########
@@ -23,13 +23,20 @@ ARG RANGER_VERSION
 ARG RANGER_DB_TYPE
 ARG TARGETARCH
 
+# Set Ranger environment variables
+ENV RANGER_HOME=/opt/ranger
+ENV RANGER_SCRIPTS=/home/ranger/scripts
+
 COPY ./dist/version                               /home/ranger/dist/
 COPY ./dist/ranger-${RANGER_VERSION}-admin.tar.gz /home/ranger/dist/
 
 COPY ./scripts/ranger.sh                                         ${RANGER_SCRIPTS}/
 COPY ./scripts/ranger-admin-install-${RANGER_DB_TYPE}.properties ${RANGER_SCRIPTS}/ranger-admin-install.properties
 COPY ./scripts/create-ranger-services.py                         ${RANGER_SCRIPTS}/
 
+# Switch to root to create system directories
+USER root

Review Comment:
   User is already root, so this line is redundant.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2415115841


##########
dev-support/ranger-docker/Dockerfile.ranger-tagsync:
##########
@@ -27,6 +27,9 @@ COPY ./scripts/ranger-tagsync.sh                     ${RANGER_SCRIPTS}/
 COPY ./scripts/ranger-tagsync-install.properties     ${RANGER_SCRIPTS}/
 COPY ./scripts/ranger-tagsync-tags.json              ${RANGER_SCRIPTS}/
 
+# Switch to root to create system directories
+USER root

Review Comment:
   User is already `root` here, please update.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2328930432


##########
dev-support/ranger-docker/scripts/create-users.sh:
##########
@@ -0,0 +1,62 @@
+#!/bin/bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Script to create alice and abram users in ranger containers
+# This script is designed to be run during container initialization
+
+# Function to create a user for testing.
+create_user_if_not_exists() {
+    local username=$1
+    local uid=$2
+    local gid=$3
+    local home_dir=$4
+
+    if ! id "$username" &>/dev/null; then
+        echo "Creating user: $username (uid:$uid, gid:$gid)"
+        useradd -u "$uid" -g "$gid" -m -d "$home_dir" -s /bin/bash "$username"
+
+        # Set a default password (same as username for demo purposes)
+        echo "$username:$username" | chpasswd
+
+        # Add user to hadoop group for HDFS access
+        if getent group hadoop &>/dev/null; then
+            usermod -a -G hadoop "$username"
+        fi
+
+        # Create .ssh directory and set proper permissions
+        mkdir -p "$home_dir/.ssh"
+        chmod 700 "$home_dir/.ssh"
+        chown "$username:$gid" "$home_dir/.ssh"
+
+        echo "User $username created successfully"
+    else
+        echo "User $username already exists"
+    fi
+}
+
+# Ensure hadoop group exists (gid 1001 is used by hdfs, yarn, hive users)

Review Comment:
   Addressed this issue as well



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2326521032


##########
dev-support/ranger-docker/scripts/hive-site-oracle.xml:
##########
@@ -49,4 +49,72 @@
         <name>hive.zookeeper.client.port</name>
         <value>2181</value>
     </property>
+
+    <!-- Tez Configuration -->
+    <property>
+        <name>hive.execution.engine</name>
+        <value>tez</value>
+        <description>Execution engine to use for Hive queries</description>
+    </property>
+
+    <property>
+        <name>hive.tez.container.size</name>
+        <value>1024</value>
+        <description>By default Tez will spawn containers of the size of a mapper</description>
+    </property>
+
+    <property>
+        <name>hive.tez.java.opts</name>
+        <value>-Xmx768m</value>
+        <description>Java command line options for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.tez.log.level</name>
+        <value>INFO</value>
+        <description>Log level for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.prewarm.enabled</name>
+        <value>false</value>
+        <description>Enables container prewarm for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.prewarm.numcontainers</name>
+        <value>3</value>
+        <description>Controls the number of containers to prewarm for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.tez.auto.reducer.parallelism</name>
+        <value>true</value>
+        <description>Turn on Tez' auto reducer parallelism feature</description>
+    </property>
+
+    <property>
+        <name>hive.tez.min.reducer.per.query</name>
+        <value>2</value>
+        <description>Controls the minimum number of reducers for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.tez.max.reducer.per.query</name>
+        <value>999</value>
+        <description>Controls the maximum number of reducers for Tez</description>
+    </property>
+
+    <!-- YARN Configuration for Tez -->
+    <property>
+        <name>hive.tez.exec.print.summary</name>
+        <value>true</value>
+        <description>Whether to print a summary of the plan execution</description>
+    </property>
+
+    <property>
+        <name>tez.queue.name</name>
+        <value>default</value>
+        <description>YARN configuration for Tez jobs</description>

Review Comment:
   This just a naming of the description which can be ignored.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "mneethiraj (via GitHub)" <gi...@apache.org>.
mneethiraj commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2328000703


##########
dev-support/ranger-docker/scripts/create-users.sh:
##########
@@ -0,0 +1,62 @@
+#!/bin/bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Script to create alice and abram users in ranger containers
+# This script is designed to be run during container initialization
+
+# Function to create a user for testing.
+create_user_if_not_exists() {
+    local username=$1
+    local uid=$2
+    local gid=$3
+    local home_dir=$4
+
+    if ! id "$username" &>/dev/null; then
+        echo "Creating user: $username (uid:$uid, gid:$gid)"
+        useradd -u "$uid" -g "$gid" -m -d "$home_dir" -s /bin/bash "$username"
+
+        # Set a default password (same as username for demo purposes)
+        echo "$username:$username" | chpasswd
+
+        # Add user to hadoop group for HDFS access
+        if getent group hadoop &>/dev/null; then
+            usermod -a -G hadoop "$username"
+        fi
+
+        # Create .ssh directory and set proper permissions
+        mkdir -p "$home_dir/.ssh"
+        chmod 700 "$home_dir/.ssh"
+        chown "$username:$gid" "$home_dir/.ssh"
+
+        echo "User $username created successfully"
+    else
+        echo "User $username already exists"
+    fi
+}
+
+# Ensure hadoop group exists (gid 1001 is used by hdfs, yarn, hive users)
+if ! getent group hadoop &>/dev/null; then
+    groupadd -g 1001 hadoop
+    echo "Created hadoop group"
+fi
+
+# Create alice user (uid: 2001, gid: 1001 - hadoop group)

Review Comment:
   Is it necessary for users `alice` and `abram` to be in `hadoop` group? This group is meant for service accounts (like `hive`, `hbase`, `impala`) to get certain privileges. User accounts shouldn't need to be part of this group.
   
   Also, is it mandatory that uid for the created users be 2001 and 2002? If not, I suggest creating the users without specifying uid.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2445587252


##########
dev-support/ranger-docker/scripts/hive-site-oracle.xml:
##########
@@ -49,4 +49,72 @@
         <name>hive.zookeeper.client.port</name>
         <value>2181</value>
     </property>
+
+    <!-- Tez Configuration -->
+    <property>
+        <name>hive.execution.engine</name>
+        <value>tez</value>
+        <description>Execution engine to use for Hive queries</description>
+    </property>
+
+    <property>
+        <name>hive.tez.container.size</name>
+        <value>1024</value>
+        <description>By default Tez will spawn containers of the size of a mapper</description>
+    </property>
+
+    <property>
+        <name>hive.tez.java.opts</name>
+        <value>-Xmx768m</value>
+        <description>Java command line options for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.tez.log.level</name>
+        <value>INFO</value>
+        <description>Log level for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.prewarm.enabled</name>
+        <value>false</value>
+        <description>Enables container prewarm for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.prewarm.numcontainers</name>
+        <value>3</value>
+        <description>Controls the number of containers to prewarm for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.tez.auto.reducer.parallelism</name>
+        <value>true</value>
+        <description>Turn on Tez' auto reducer parallelism feature</description>
+    </property>
+
+    <property>
+        <name>hive.tez.min.reducer.per.query</name>
+        <value>2</value>
+        <description>Controls the minimum number of reducers for Tez</description>
+    </property>
+
+    <property>
+        <name>hive.tez.max.reducer.per.query</name>
+        <value>999</value>
+        <description>Controls the maximum number of reducers for Tez</description>
+    </property>
+
+    <!-- YARN Configuration for Tez -->
+    <property>
+        <name>hive.tez.exec.print.summary</name>
+        <value>true</value>
+        <description>Whether to print a summary of the plan execution</description>
+    </property>
+
+    <property>
+        <name>tez.queue.name</name>
+        <value>default</value>
+        <description>YARN configuration for Tez jobs</description>

Review Comment:
   The description text is inconsistent with other database-specific Hive configuration files. This file uses 'YARN configuration' while hive-site-mysql.xml, hive-site-postgres.xml, and hive-site-sqlserver.xml use 'YARN queue name'. The description should be 'YARN queue name for Tez jobs' to match the property name 'tez.queue.name'.
   ```suggestion
           <description>YARN queue name for Tez jobs</description>
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2328930178


##########
dev-support/ranger-docker/scripts/create-users.sh:
##########
@@ -0,0 +1,62 @@
+#!/bin/bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Script to create alice and abram users in ranger containers
+# This script is designed to be run during container initialization
+
+# Function to create a user for testing.
+create_user_if_not_exists() {
+    local username=$1
+    local uid=$2
+    local gid=$3
+    local home_dir=$4
+
+    if ! id "$username" &>/dev/null; then
+        echo "Creating user: $username (uid:$uid, gid:$gid)"
+        useradd -u "$uid" -g "$gid" -m -d "$home_dir" -s /bin/bash "$username"
+
+        # Set a default password (same as username for demo purposes)
+        echo "$username:$username" | chpasswd
+
+        # Add user to hadoop group for HDFS access
+        if getent group hadoop &>/dev/null; then
+            usermod -a -G hadoop "$username"
+        fi
+
+        # Create .ssh directory and set proper permissions
+        mkdir -p "$home_dir/.ssh"
+        chmod 700 "$home_dir/.ssh"
+        chown "$username:$gid" "$home_dir/.ssh"
+
+        echo "User $username created successfully"
+    else
+        echo "User $username already exists"
+    fi
+}
+
+# Ensure hadoop group exists (gid 1001 is used by hdfs, yarn, hive users)
+if ! getent group hadoop &>/dev/null; then
+    groupadd -g 1001 hadoop
+    echo "Created hadoop group"
+fi
+
+# Create alice user (uid: 2001, gid: 1001 - hadoop group)

Review Comment:
   Thanks @mneethiraj  for the review. Addressed this



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "mneethiraj (via GitHub)" <gi...@apache.org>.
mneethiraj commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2328940890


##########
dev-support/ranger-docker/scripts/create-users.sh:
##########
@@ -0,0 +1,43 @@
+#!/bin/bash

Review Comment:
   @rameeshm  - following users and groups are created in ranger-base image, using https://github.com/apache/ranger-tools/blob/main/docker/Dockerfile#L50. It might be useful to add users `alice` and `abram` in ranger-base image itself, so that these users are available in all Ranger images.
   
   users: `ranger rangeradmin rangerusersync rangertagsync rangerkms hdfs yarn hive hbase kafka ozone knox`
   groups: `ranger hadoop knox`
   
   With this approach, updates to many Dockerfiles in this PR can be eliminated. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2415121876


##########
dev-support/ranger-docker/Dockerfile.ranger-usersync:
##########
@@ -27,14 +27,16 @@ COPY ./scripts/ranger-usersync.sh                 ${RANGER_SCRIPTS}/
 COPY ./scripts/ranger-usersync-install.properties ${RANGER_SCRIPTS}/
 COPY ./scripts/ugsync-file-source.csv             ${RANGER_SCRIPTS}/
 
+# Switch to root to create system directories
+USER root

Review Comment:
   User is already `root` here, please update.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2415077405


##########
dev-support/ranger-docker/scripts/create-users.sh:
##########
@@ -0,0 +1,43 @@
+#!/bin/bash

Review Comment:
   @mneethiraj  I have addressed the issue with base image. Image of the all the containers are now back to normal size. Regarding the test users. I shall raise another PR to address it as this has to be done in Ranger Docker repo which is maintained here https://github.com/apache/ranger-tools 
   ```
   REPOSITORY        TAG       IMAGE ID       CREATED          SIZE
   ranger-hive       latest    27e6859ca1e9   35 minutes ago   6.59GB
   ranger-hadoop     latest    6eb1a1692452   35 minutes ago   4.96GB
   ranger-kms        latest    1a76138b61ee   36 minutes ago   1.45GB
   ranger-usersync   latest    3f4329eabce6   36 minutes ago   858MB
   ranger-tagsync    latest    5aba63cd421f   36 minutes ago   891MB
   ranger            latest    81964f729357   36 minutes ago   2.5GB
   ranger-solr       latest    82d0fd46a06c   37 minutes ago   843MB
   ranger-mysql      latest    7624ea657395   37 minutes ago   409MB
   ranger-zk         latest    e77eca4715aa   19 months ago    426MB
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on PR #660:
URL: https://github.com/apache/ranger/pull/660#issuecomment-3423588612

   > @kumaab Addressed the review comments. Thanks
   
   The docker build seems to be failing, please retain `OZONE_RUNNER_VERSION=20230615-1` in `.env`. thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2688519263


##########
dev-support/ranger-docker/.env:
##########
@@ -11,46 +11,66 @@ RANGER_BASE_IMAGE=apache/ranger-base
 RANGER_BASE_VERSION=20250707-1-8
 # Java version used to build Apache Ranger is present as suffix: -8, valid values for suffix: -8, -11, -17
 RANGER_BASE_BUILD_VERSION=20250707-1-8
+RANGER_VERSION=3.0.0-SNAPSHOT
 
-# third party image versions
-MARIADB_VERSION=10.7.3
-POSTGRES_VERSION=12
-ORACLE_VERSION=23.6
-SQLSERVER_VERSION=2019-latest
-ENABLE_DB_MOUNT=true
-ZK_VERSION=3.9.2
-SOLR_VERSION=8.11.3
-
-# service versions
+# Hadoop Configuration
 HADOOP_VERSION=3.3.6
-HBASE_VERSION=2.6.0
+HDFS_PLUGIN_VERSION=3.0.0-SNAPSHOT
+YARN_PLUGIN_VERSION=3.0.0-SNAPSHOT
+
+# Hive Configuration
+HIVE_HADOOP_VERSION=3.3.6
 HIVE_VERSION=4.0.1
-HIVE_HADOOP_VERSION=3.1.1
+HIVE_PLUGIN_VERSION=3.0.0-SNAPSHOT
+
+# Tez Configuration
+TEZ_VERSION=0.10.4
+
+# HBase Configuration
+HBASE_VERSION=2.6.0
+HBASE_PLUGIN_VERSION=3.0.0-SNAPSHOT
+
+# Kafka Configuration
 KAFKA_VERSION=2.8.2
+KAFKA_PLUGIN_VERSION=3.0.0-SNAPSHOT
+
+# Knox Configuration
 KNOX_VERSION=2.0.0
-TRINO_VERSION=377
-OZONE_VERSION=1.4.0
-OZONE_RUNNER_VERSION=20230615-1
-OZONE_RUNNER_IMAGE=apache/ozone-runner
-OZONE_OPTS=
+KNOX_PLUGIN_VERSION=3.0.0-SNAPSHOT
 
-# versions of ranger services
-RANGER_VERSION=3.0.0-SNAPSHOT
+# KMS Configuration
 KMS_VERSION=3.0.0-SNAPSHOT
+
+# Usersync Configuration
 USERSYNC_VERSION=3.0.0-SNAPSHOT
+
+# Tagsync Configuration
 TAGSYNC_VERSION=3.0.0-SNAPSHOT
 
-# plugin versions
-HDFS_PLUGIN_VERSION=3.0.0-SNAPSHOT
-YARN_PLUGIN_VERSION=3.0.0-SNAPSHOT
-HIVE_PLUGIN_VERSION=3.0.0-SNAPSHOT
-HBASE_PLUGIN_VERSION=3.0.0-SNAPSHOT
-KAFKA_PLUGIN_VERSION=3.0.0-SNAPSHOT
-KNOX_PLUGIN_VERSION=3.0.0-SNAPSHOT
-TRINO_PLUGIN_VERSION=3.0.0-SNAPSHOT
+# Solr Configuration
+SOLR_VERSION=8.11.2
+
+# Zookeeper Configuration
+ZK_VERSION=3.8.4
+
+# Database Versions

Review Comment:
   Looks like the DB versions were altered in this PR for all DB flavors, with some versions going back:
   
   Earlier:
   ```
   MARIADB_VERSION=10.7.3
   ORACLE_VERSION=23.6
   ```
   Now: 
   ```
   MARIADB_VERSION=10.6
   ORACLE_VERSION=21.3.0-xe
   ```
   
   Is this intentional ? thanks. 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on PR #660:
URL: https://github.com/apache/ranger/pull/660#issuecomment-3264337701

   Thank you @rameeshm for the patch, I believe this is tested with Ubuntu base image, please see if this can be tested with UBI base image as well, this change needs to made in `.env` file: RANGER_BASE_VERSION=[20250712-1-ubi-8](https://hub.docker.com/layers/apache/ranger-base/20250712-1-ubi-8/images/sha256-f2bd4fe9d5e3a4e5ca363c61fb2a46bdb718dd208c7356fb654fc640717a189f), thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2445571420


##########
dev-support/ranger-docker/scripts/hive-site-sqlserver.xml:
##########
@@ -47,4 +47,72 @@
         <name>hive.zookeeper.client.port</name>
         <value>2181</value>
     </property>
+

Review Comment:
   @kumaab Lets address this in the JIRA which deprecates SQL Server



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm commented on PR #660:
URL: https://github.com/apache/ranger/pull/660#issuecomment-3424046372

   > > @kumaab Addressed the review comments. Thanks
   > 
   > The docker build seems to be failing, please retain `OZONE_RUNNER_VERSION=20230615-1` in `.env`. thanks.
   
   @kumaab addressed this issue. Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2689179872


##########
dev-support/ranger-docker/.env:
##########
@@ -11,46 +11,66 @@ RANGER_BASE_IMAGE=apache/ranger-base
 RANGER_BASE_VERSION=20250707-1-8
 # Java version used to build Apache Ranger is present as suffix: -8, valid values for suffix: -8, -11, -17
 RANGER_BASE_BUILD_VERSION=20250707-1-8
+RANGER_VERSION=3.0.0-SNAPSHOT
 
-# third party image versions
-MARIADB_VERSION=10.7.3
-POSTGRES_VERSION=12
-ORACLE_VERSION=23.6
-SQLSERVER_VERSION=2019-latest
-ENABLE_DB_MOUNT=true
-ZK_VERSION=3.9.2
-SOLR_VERSION=8.11.3
-
-# service versions
+# Hadoop Configuration
 HADOOP_VERSION=3.3.6
-HBASE_VERSION=2.6.0
+HDFS_PLUGIN_VERSION=3.0.0-SNAPSHOT
+YARN_PLUGIN_VERSION=3.0.0-SNAPSHOT
+
+# Hive Configuration
+HIVE_HADOOP_VERSION=3.3.6
 HIVE_VERSION=4.0.1
-HIVE_HADOOP_VERSION=3.1.1
+HIVE_PLUGIN_VERSION=3.0.0-SNAPSHOT
+
+# Tez Configuration
+TEZ_VERSION=0.10.4
+
+# HBase Configuration
+HBASE_VERSION=2.6.0
+HBASE_PLUGIN_VERSION=3.0.0-SNAPSHOT
+
+# Kafka Configuration
 KAFKA_VERSION=2.8.2
+KAFKA_PLUGIN_VERSION=3.0.0-SNAPSHOT
+
+# Knox Configuration
 KNOX_VERSION=2.0.0
-TRINO_VERSION=377
-OZONE_VERSION=1.4.0
-OZONE_RUNNER_VERSION=20230615-1
-OZONE_RUNNER_IMAGE=apache/ozone-runner
-OZONE_OPTS=
+KNOX_PLUGIN_VERSION=3.0.0-SNAPSHOT
 
-# versions of ranger services
-RANGER_VERSION=3.0.0-SNAPSHOT
+# KMS Configuration
 KMS_VERSION=3.0.0-SNAPSHOT
+
+# Usersync Configuration
 USERSYNC_VERSION=3.0.0-SNAPSHOT
+
+# Tagsync Configuration
 TAGSYNC_VERSION=3.0.0-SNAPSHOT
 
-# plugin versions
-HDFS_PLUGIN_VERSION=3.0.0-SNAPSHOT
-YARN_PLUGIN_VERSION=3.0.0-SNAPSHOT
-HIVE_PLUGIN_VERSION=3.0.0-SNAPSHOT
-HBASE_PLUGIN_VERSION=3.0.0-SNAPSHOT
-KAFKA_PLUGIN_VERSION=3.0.0-SNAPSHOT
-KNOX_PLUGIN_VERSION=3.0.0-SNAPSHOT
-TRINO_PLUGIN_VERSION=3.0.0-SNAPSHOT
+# Solr Configuration
+SOLR_VERSION=8.11.2
+
+# Zookeeper Configuration
+ZK_VERSION=3.8.4
+
+# Database Versions

Review Comment:
   @kumaab Those worked without issue. I shall check on with what was there, if needed I shall upgrade it, test it and send a new patch
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "mneethiraj (via GitHub)" <gi...@apache.org>.
mneethiraj commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2396055755


##########
dev-support/ranger-docker/Dockerfile.ranger-usersync:
##########
@@ -14,9 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-ARG RANGER_BASE_IMAGE
-ARG RANGER_BASE_VERSION
-FROM ${RANGER_BASE_IMAGE}:${RANGER_BASE_VERSION}
+FROM ranger

Review Comment:
   Why is it necessary to change the base image (`FROM @{RANGER_BASE_IMAGE}`) to `ranger`?
   
   `ranger` is the image containing Ranger admin server; usersync shouldn't use `ranger` as the base.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "rameeshm (via GitHub)" <gi...@apache.org>.
rameeshm commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2393516817


##########
dev-support/ranger-docker/scripts/create-users.sh:
##########
@@ -0,0 +1,43 @@
+#!/bin/bash

Review Comment:
   @mneethiraj  Addressed this review comment to use ranger-base image and create users. Thanks



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5310:Include Apache Tez as the process framework for ranger-hive docker [ranger]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #660:
URL: https://github.com/apache/ranger/pull/660#discussion_r2415111369


##########
dev-support/ranger-docker/Dockerfile.ranger:
##########
@@ -23,13 +23,20 @@ ARG RANGER_VERSION
 ARG RANGER_DB_TYPE
 ARG TARGETARCH
 
+# Set Ranger environment variables

Review Comment:
   These env variables are already set in the base image.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org