fix oozie command not found jar path

(cherry picked from commit 8efedf6a3ba5735adf9c798d3deda27a7a9f8a98)
This commit is contained in:
lyn1001 2021-09-30 14:25:50 +08:00 committed by openeuler-sync-bot
parent 66f7fe440c
commit 2008afe395
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 71ce2e135b97a50594cb36fa84f397e9f214b533 Mon Sep 17 00:00:00 2001
From: caodongxia <315816521@qq.com>
Date: Sat, 11 Sep 2021 11:41:23 +0800
Subject: [PATCH] fix oozie command not found jar path
---
client/src/main/bin/oozie | 3 +++
1 file changed, 3 insertions(+)
diff --git a/client/src/main/bin/oozie b/client/src/main/bin/oozie
index b8db5ee..6c3593a 100644
--- a/client/src/main/bin/oozie
+++ b/client/src/main/bin/oozie
@@ -51,6 +51,9 @@ if [ ! -d "${BASEDIR}/lib" ]; then
fi
OOZIECPPATH=""
+for i in "${BASEDIR}/libtools/"*.jar; do
+ OOZIECPPATH="${OOZIECPPATH}:$i"
+done
for i in "${BASEDIR}/lib/"*.jar; do
OOZIECPPATH="${OOZIECPPATH}:$i"
done
--
2.27.0

View File

@ -1,12 +1,13 @@
Name: oozie
Version: 5.2.1
Release: 1
Release: 2
Summary: A work-flow scheduling system for Apache Hadoop
License: Apache 2.0
URL: http://oozie.apache.org
Source0: https://github.com/apache/%{name}/archive/refs/tags/release-%{version}.tar.gz
Source1: fluent-job-api-target.tar.gz
Source2: %{name}.logrotate
Patch0000: fix-oozie-command-not-found-jar-path.patch
BuildArch: noarch
BuildRequires: java-1.8.0-openjdk-devel maven xmvn xmvn-install gradle-local maven-local
Requires: java-1.8.0-openjdk-devel hostname tomcat
@ -20,6 +21,7 @@ web services
%prep
%setup -qn %{name}-release-%{version}
%patch0 -p1
tar xf %{SOURCE1}
cp -arf target fluent-job/fluent-job-api/
@ -170,5 +172,8 @@ install -m 0644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}
%attr(0775,root,tomcat) %dir %{_sysconfdir}/%{name}/tomcat/Catalina/localhost
%changelog
* Thu Sep 30 2021 liyanan <liyanan32@huawei.com> - 5.2.1-2
- fix oozie command not found jar path
* Mon Jul 12 2021 liyanan <liyanan32@huawei.com> - 5.2.1-1
- package init