Author: ncole
Date: Tue Jun 11 20:04:40 2013
New Revision: 1491931

URL: http://svn.apache.org/r1491931
Log:
AMBARI-2355. Fix to write dfs.hosts when NameNode is installed on its own 
(ncole)

Modified:
    
incubator/ambari/branches/branch-1.4.0/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp

Modified: 
incubator/ambari/branches/branch-1.4.0/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp
URL: 
http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.4.0/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp?rev=1491931&r1=1491930&r2=1491931&view=diff
==============================================================================
--- 
incubator/ambari/branches/branch-1.4.0/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp
 (original)
+++ 
incubator/ambari/branches/branch-1.4.0/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp
 Tue Jun 11 20:04:40 2013
@@ -200,9 +200,9 @@ debug('##Configs generation for hdp-hado
         group => $hdp::params::user_group
         }
       }
-      if (hdp_is_empty($slave_hosts) == false and 
hdp_is_empty($configuration['hdfs-site']['dfs.hosts']) == false) {
+      if (hdp_is_empty($hdp::params::slave_hosts) == false and 
hdp_is_empty($configuration['hdfs-site']['dfs.hosts']) == false) {
         $include_file_path = $configuration['hdfs-site']['dfs.hosts']
-        $include_hosts_list = $slave_hosts
+        $include_hosts_list = $hdp::params::slave_hosts
         file { $include_file_path :
         ensure => present,
         owner => $hdp-hadoop::params::hdfs_user,


Reply via email to