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 378776766971e19a7a96089e7bcb1ac9df28bf70
Author: MacChen01 <[email protected]>
AuthorDate: Wed Sep 13 14:16:54 2023 +0800

    using bigtop/puppet for hadoop (#1168)
    
    (cherry picked from commit 73dc2c8658a2077f9d1be8b45de9387560dde773)
---
 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 227a6b76b..a0aa149a7 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 {

Reply via email to