This is an automated email from the ASF dual-hosted git repository. guyuqi pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/bigtop.git
commit 02e1eb3c912e7aa96107e433fa82efe752db3b03 Author: MacChen01 <[email protected]> AuthorDate: Wed Aug 2 13:48:41 2023 +0800 add support for oozie (#1152) (cherry picked from commit 9b3e54b1b0281008ee5826bb3da2625da00ce98f) --- .../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":
