bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From evan...@apache.org
Subject [bigtop] branch branch-1.4 updated: BIGTOP-3212. Deploy QFS client failed due to no such directory error (#526)
Date Fri, 03 May 2019 08:38:14 GMT
This is an automated email from the ASF dual-hosted git repository.

evansye pushed a commit to branch branch-1.4
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/branch-1.4 by this push:
     new f1e6de0  BIGTOP-3212. Deploy QFS client failed due to no such directory error (#526)
f1e6de0 is described below

commit f1e6de0be55ab9baf40ac782a9c7671d63a6edeb
Author: Evans Ye <evansye@apache.org>
AuthorDate: Fri May 3 16:38:09 2019 +0800

    BIGTOP-3212. Deploy QFS client failed due to no such directory error (#526)
---
 bigtop-deploy/puppet/modules/qfs/manifests/init.pp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/bigtop-deploy/puppet/modules/qfs/manifests/init.pp b/bigtop-deploy/puppet/modules/qfs/manifests/init.pp
index c2f3a56..e1d6542 100644
--- a/bigtop-deploy/puppet/modules/qfs/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/qfs/manifests/init.pp
@@ -40,6 +40,11 @@ class qfs {
       group => root,
       mode => '0755',
     }
+
+    file { "/etc/qfs":
+      ensure => directory,
+      mode => '0755',
+    }
   }
 
   class metaserver {
@@ -109,7 +114,7 @@ class qfs {
     $chunkserver_conf = "/etc/qfs/ChunkServer.prp"
     file { $chunkserver_conf:
       content => template("qfs/ChunkServer.prp"),
-      require => Package["qfs-chunkserver"],
+      require => [Package["qfs-chunkserver"], File["/etc/qfs"]],
     }
 
     $cs_dirs = suffix($hadoop::hadoop_storage_dirs, "/qfs/chunkserver")
@@ -152,7 +157,7 @@ class qfs {
 
     file { "/etc/qfs/QfsClient.prp":
       content => template("qfs/QfsClient.prp"),
-      require => Package["qfs-client"],
+      require => [Package["qfs-client"], File["/etc/qfs"]],
     }
 
     file { "/usr/bin/hadoop-qfs":


Mime
View raw message