Browse Source

AMBARI-1836. Remove hard-coded ports from agent scripts. (swagle)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1465685 13f79535-47bb-0310-9956-ffa450edef68
Siddharth Wagle 12 years ago
parent
commit
3329c44045

+ 2 - 0
CHANGES.txt

@@ -656,6 +656,8 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-1836. Remove hard-coded ports from agent scripts. (swagle)
+
  AMBARI-1834. Reduce the number of states that a host component can be in.
  (smohanty)
 

+ 2 - 2
ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/params.pp

@@ -45,8 +45,8 @@ class hdp-hadoop::params(
     $enable_security_authorization = false
     $security_type = "simple"
     $task_controller = "org.apache.hadoop.mapred.DefaultTaskController"
-    $dfs_datanode_address = 50075
-    $dfs_datanode_http_address = 50075
+    $dfs_datanode_address = hdp_default("dfs_datanode_address","50010")
+    $dfs_datanode_http_address = hdp_default("dfs_datanode_http_address","50075")
   }
 
   ### hadoop-env