This is an automated email from the ASF dual-hosted git repository.
guyuqi pushed a commit to branch openEuler-support
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/openEuler-support by this push:
new 9b3e54b1b add support for oozie (#1152)
9b3e54b1b is described below
commit 9b3e54b1b0281008ee5826bb3da2625da00ce98f
Author: MacChen01 <[email protected]>
AuthorDate: Wed Aug 2 13:48:41 2023 +0800
add support for oozie (#1152)
---
.../puppet/modules/hadoop_oozie/manifests/init.pp | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/bigtop-deploy/puppet/modules/hadoop_oozie/manifests/init.pp
b/bigtop-deploy/puppet/modules/hadoop_oozie/manifests/init.pp
index f7ee01d0b..0775fb416 100644
--- a/bigtop-deploy/puppet/modules/hadoop_oozie/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/hadoop_oozie/manifests/init.pp
@@ -54,12 +54,22 @@ class hadoop_oozie {
require => Package["oozie"],
}
- exec { "Oozie DB init":
- command => "/etc/init.d/oozie init",
- cwd => "/var/lib/oozie",
- creates => "/var/lib/oozie/derby.log",
- require => Package["oozie"],
- unless => "/etc/init.d/oozie status",
+ if ($operatingsystem == "openEuler") {
+ exec { "Oozie DB init":
+ command => "/usr/sbin/usermod -G hadoop oozie && /etc/init.d/oozie
init",
+ cwd => "/var/lib/oozie",
+ creates => "/var/lib/oozie/derby.log",
+ require => Package["oozie"],
+ unless => "/etc/init.d/oozie status",
+ }
+ } else {
+ exec { "Oozie DB init":
+ command => "/etc/init.d/oozie init",
+ cwd => "/var/lib/oozie",
+ creates => "/var/lib/oozie/derby.log",
+ require => Package["oozie"],
+ unless => "/etc/init.d/oozie status",
+ }
}
service { "oozie":