You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by gu...@apache.org on 2023/10/07 08:11:25 UTC
[bigtop] 08/16: add hadoop smoke test for openeuler (#1134)
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 07092bef71d9742d942a00aac4d58663182fcf13
Author: MacChen01 <ch...@163.com>
AuthorDate: Wed Aug 2 16:40:51 2023 +0800
add hadoop smoke test for openeuler (#1134)
(cherry picked from commit d220e82725b2329f390a0a6c08a9a3d0b576c6ad)
---
bigtop-deploy/puppet/modules/hadoop/manifests/init.pp | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
index da755ca69..227a6b76b 100644
--- a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
@@ -829,10 +829,20 @@ class hadoop ($hadoop_security_authentication = "simple",
}
define create_storage_dir {
- exec { "mkdir $name":
- command => "/bin/mkdir -p $name",
- creates => $name,
- user =>"root",
+ # change the cgroup of hdfs and yarn from hadoop to root in openeuler,
+ # 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",
+ creates => $name,
+ user =>"root",
+ }
+ } else {
+ exec { "mkdir $name":
+ command => "/bin/mkdir -p $name",
+ creates => $name,
+ user =>"root",
+ }
}
}