fix oozie command not found jar path
(cherry picked from commit 8efedf6a3ba5735adf9c798d3deda27a7a9f8a98)
This commit is contained in:
parent
66f7fe440c
commit
9716e577bb
26
fix-oozie-command-not-found-jar-path.patch
Normal file
26
fix-oozie-command-not-found-jar-path.patch
Normal 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
|
||||||
|
|
||||||
@ -1,12 +1,13 @@
|
|||||||
Name: oozie
|
Name: oozie
|
||||||
Version: 5.2.1
|
Version: 5.2.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A work-flow scheduling system for Apache Hadoop
|
Summary: A work-flow scheduling system for Apache Hadoop
|
||||||
License: Apache 2.0
|
License: Apache 2.0
|
||||||
URL: http://oozie.apache.org
|
URL: http://oozie.apache.org
|
||||||
Source0: https://github.com/apache/%{name}/archive/refs/tags/release-%{version}.tar.gz
|
Source0: https://github.com/apache/%{name}/archive/refs/tags/release-%{version}.tar.gz
|
||||||
Source1: fluent-job-api-target.tar.gz
|
Source1: fluent-job-api-target.tar.gz
|
||||||
Source2: %{name}.logrotate
|
Source2: %{name}.logrotate
|
||||||
|
Patch0000: fix-oozie-command-not-found-jar-path.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: java-1.8.0-openjdk-devel maven xmvn xmvn-install gradle-local maven-local
|
BuildRequires: java-1.8.0-openjdk-devel maven xmvn xmvn-install gradle-local maven-local
|
||||||
Requires: java-1.8.0-openjdk-devel hostname tomcat
|
Requires: java-1.8.0-openjdk-devel hostname tomcat
|
||||||
@ -20,6 +21,7 @@ web services
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn %{name}-release-%{version}
|
%setup -qn %{name}-release-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
tar xf %{SOURCE1}
|
tar xf %{SOURCE1}
|
||||||
cp -arf target fluent-job/fluent-job-api/
|
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
|
%attr(0775,root,tomcat) %dir %{_sysconfdir}/%{name}/tomcat/Catalina/localhost
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jul 12 2021 liyanan <liyanan32@huawei.com> - 5.2.1-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user