This is an automated email from the ASF dual-hosted git repository. evansye pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/bigtop.git
commit 471276e1b743f143d7ef714e7cbc1ea83c2bc287 Author: Evans Ye <[email protected]> AuthorDate: Sat Jan 5 02:30:54 2019 +0800 BIGTOP-3126. [Puppet] Failed to deploy QFS due to Permission denied error at initailization --- bigtop-deploy/puppet/modules/qfs/manifests/init.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bigtop-deploy/puppet/modules/qfs/manifests/init.pp b/bigtop-deploy/puppet/modules/qfs/manifests/init.pp index 82de818..e0fdf54 100644 --- a/bigtop-deploy/puppet/modules/qfs/manifests/init.pp +++ b/bigtop-deploy/puppet/modules/qfs/manifests/init.pp @@ -36,8 +36,8 @@ class qfs { hadoop::create_storage_dir { $qfs::common::storage_dirs: } -> file { $qfs::common::storage_dirs: ensure => directory, - owner => root, - group => root, + owner => qfs, + group => qfs, mode => '0755', } } @@ -74,6 +74,8 @@ class qfs { exec { "mkfs": command => "/usr/bin/metaserver -c $metaserver_conf", creates => "${qfs::common::storage_dirs[0]}/metaserver/checkpoint/latest", + # BIGTOP-3126: workaround that the qfs init script requires to run under a permitted directory + cwd => "${qfs::common::storage_dirs[0]}", user => qfs, group => qfs, require => [
