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 73dc2c865 using bigtop/puppet for hadoop (#1168)
73dc2c865 is described below
commit 73dc2c8658a2077f9d1be8b45de9387560dde773
Author: MacChen01 <[email protected]>
AuthorDate: Wed Sep 13 14:16:54 2023 +0800
using bigtop/puppet for hadoop (#1168)
---
bigtop-deploy/puppet/modules/hadoop/manifests/init.pp | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
index 587803403..0f8763d0e 100644
--- a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
@@ -833,7 +833,7 @@ class hadoop ($hadoop_security_authentication = "simple",
# otherwise, the namemode of hdfs has not the permission to create
directories during smoke test.
if ($operatingsystem == 'openEuler'){
exec { "mkdir $name":
- command => "/usr/sbin/usermod -G root yarn && /usr/sbin/usermod -G
root hdfs && /bin/mkdir -p $name",
+ command => "/usr/sbin/usermod -G root hdfs && /bin/mkdir -p $name",
creates => $name,
user =>"root",
}
@@ -988,6 +988,13 @@ class hadoop ($hadoop_security_authentication = "simple",
mode => '755',
require => [Package["hadoop-yarn"]],
}
+
+ if ($operatingsystem == 'openEuler') {
+ exec { "usermod yarn":
+ command => "/usr/sbin/usermod -G root yarn",
+ require => Package["hadoop-yarn-nodemanager"],
+ }
+ }
}
class mapred_app {