This is an automated email from the ASF dual-hosted git repository.
ramackri pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new abe67188f RANGER-5660: Fix YARN plugin packaging and enable script lib
path (#1039)
abe67188f is described below
commit abe67188ff73b39cb977cf2838d6e0b1ab8b765c
Author: Ramachandran Krishnan <[email protected]>
AuthorDate: Fri Jul 3 21:19:10 2026 +0530
RANGER-5660: Fix YARN plugin packaging and enable script lib path (#1039)
Add missing plugin-yarn template for assembly, install YARN plugin jars
under share/hadoop/yarn/lib, and include slf4j-api in
ranger-yarn-plugin-impl
to match hdfs-agent packaging.
Co-authored-by: ramk <[email protected]>
Co-authored-by: Cursor <[email protected]>
---
agents-common/scripts/enable-agent.sh | 5 +++--
distro/src/main/assembly/plugin-yarn.xml | 1 +
plugin-yarn/template/configuration.xml | 20 ++++++++++++++++++++
3 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/agents-common/scripts/enable-agent.sh
b/agents-common/scripts/enable-agent.sh
index d4c7816b5..6899bb1be 100755
--- a/agents-common/scripts/enable-agent.sh
+++ b/agents-common/scripts/enable-agent.sh
@@ -205,9 +205,10 @@ elif [ "${HCOMPONENT_NAME}" = "storm" ]; then
HCOMPONENT_LIB_DIR=${HCOMPONENT_INSTALL_DIR}/extlib-daemon
elif [ "${HCOMPONENT_NAME}" = "atlas" ]; then
HCOMPONENT_LIB_DIR=${HCOMPONENT_INSTALL_DIR}/libext
-elif [ "${HCOMPONENT_NAME}" = "hadoop" ] ||
- [ "${HCOMPONENT_NAME}" = "yarn" ]; then
+elif [ "${HCOMPONENT_NAME}" = "hadoop" ]; then
HCOMPONENT_LIB_DIR=${HCOMPONENT_INSTALL_DIR}/share/hadoop/hdfs/lib
+elif [ "${HCOMPONENT_NAME}" = "yarn" ]; then
+ HCOMPONENT_LIB_DIR=${HCOMPONENT_INSTALL_DIR}/share/hadoop/yarn/lib
elif [ "${HCOMPONENT_NAME}" = "sqoop" ]; then
HCOMPONENT_LIB_DIR=${HCOMPONENT_INSTALL_DIR}/server/lib
elif [ "${HCOMPONENT_NAME}" = "kylin" ]; then
diff --git a/distro/src/main/assembly/plugin-yarn.xml
b/distro/src/main/assembly/plugin-yarn.xml
index a4fc902e5..e91295b92 100644
--- a/distro/src/main/assembly/plugin-yarn.xml
+++ b/distro/src/main/assembly/plugin-yarn.xml
@@ -64,6 +64,7 @@
<include>com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:${fasterxml.jackson.version}</include>
<include>com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:${fasterxml.jackson.version}</include>
<include>com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:${fasterxml.jackson.version}</include>
+ <include>org.slf4j:slf4j-api:jar:${slf4j-api.version}</include>
<include>commons-collections:commons-collections</include>
<include>io.airlift:aircompressor:jar:${aircompressor.version}</include>
<include>jakarta.ws.rs:jakarta.ws.rs-api</include>
diff --git a/plugin-yarn/template/configuration.xml
b/plugin-yarn/template/configuration.xml
new file mode 100644
index 000000000..bdb012589
--- /dev/null
+++ b/plugin-yarn/template/configuration.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+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.
+-->
+<configuration>
+</configuration>