This is an automated email from the ASF dual-hosted git repository. oflebbe pushed a commit to branch bigtop-alpha in repository https://gitbox.apache.org/repos/asf/bigtop.git
commit fc327b9999ad8c1b5b026c85efb44bb190b7641e Author: Olaf Flebbe <[email protected]> AuthorDate: Sat Jul 13 19:26:44 2019 +0200 use proper namenode format command line --- bigtop-deploy/puppet/modules/hadoop/manifests/init.pp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp index 9d83924..146b41f 100644 --- a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp +++ b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp @@ -82,8 +82,8 @@ class hadoop ($hadoop_security_authentication = "simple", class init_hdfs { exec { "init hdfs": path => ['/bin','/sbin','/usr/bin','/usr/sbin'], - command => 'bash -x /usr/lib/hadoop/libexec/init-hdfs.sh', - require => Package['hadoop-hdfs'] + command => '/etc/init.d/hadoop-hdfs-namenode init', + require => Package['hadoop-hdfs-namenode'] } } @@ -648,8 +648,7 @@ class hadoop ($hadoop_security_authentication = "simple", $first_namenode = $namenode_array[0] if ($::fqdn == $first_namenode) { exec { "namenode format": - user => "hdfs", - command => "/bin/bash -c 'hdfs namenode -format -nonInteractive >> /var/lib/hadoop-hdfs/nn.format.log 2>&1'", + command => "/etc/init.d/hadoop-hdfs-namenode init", returns => [ 0, 1], creates => "${hadoop::common_hdfs::namenode_data_dirs[0]}/current/VERSION", require => [ Package["hadoop-hdfs-namenode"], File[$hadoop::common_hdfs::namenode_data_dirs], File["/etc/hadoop/conf/hdfs-site.xml"] ],
