hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r639217 - in /hadoop/core/trunk: CHANGES.txt src/contrib/hod/hodlib/Hod/hadoop.py src/contrib/hod/hodlib/HodRing/hodRing.py
Date Thu, 20 Mar 2008 09:16:37 GMT
Author: ddas
Date: Thu Mar 20 02:16:36 2008
New Revision: 639217

URL: http://svn.apache.org/viewvc?rev=639217&view=rev
Log:
HADOOP-2936. Fixes HOD in a way that it generates hdfs://host:port on the client side configs.
Contributed by Vinod Kumar Vavilapalli.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/contrib/hod/hodlib/Hod/hadoop.py
    hadoop/core/trunk/src/contrib/hod/hodlib/HodRing/hodRing.py

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=639217&r1=639216&r2=639217&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu Mar 20 02:16:36 2008
@@ -304,6 +304,10 @@
     HADOOP-2783. Fixes a problem to do with import in 
     hod/hodlib/Common/xmlrpc.py. (Vinod Kumar Vavilapalli via ddas) 
 
+    HADOOP-2936. Fixes HOD in a way that it generates hdfs://host:port on the
+    client side configs. (Vinod Kumar Vavilapalli via ddas)
+
+
 Release 0.16.2 - Unreleased
 
   BUG FIXES

Modified: hadoop/core/trunk/src/contrib/hod/hodlib/Hod/hadoop.py
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hod/hodlib/Hod/hadoop.py?rev=639217&r1=639216&r2=639217&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hod/hodlib/Hod/hadoop.py (original)
+++ hadoop/core/trunk/src/contrib/hod/hodlib/Hod/hadoop.py Thu Mar 20 02:16:36 2008
@@ -72,7 +72,7 @@
 
     description = {}
     paramsDict = {  'mapred.job.tracker'    : mapredAddr , \
-                    'fs.default.name'       : hdfsAddr, \
+                    'fs.default.name'       : "hdfs://" + hdfsAddr, \
                     'hadoop.tmp.dir'        : confDir, \
                     'dfs.client.buffer.dir' : tempDir, }
 

Modified: hadoop/core/trunk/src/contrib/hod/hodlib/HodRing/hodRing.py
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hod/hodlib/HodRing/hodRing.py?rev=639217&r1=639216&r2=639217&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hod/hodlib/HodRing/hodRing.py (original)
+++ hadoop/core/trunk/src/contrib/hod/hodlib/HodRing/hodRing.py Thu Mar 20 02:16:36 2008
@@ -229,7 +229,10 @@
           prop = self._createXmlElement(doc, k, item, "No description", final)
           topElement.appendChild(prop)
       else:
-        prop = self._createXmlElement(doc, k, v, "No description", final)
+        if k == 'fs.default.name':
+          prop = self._createXmlElement(doc, k, "hdfs://" + v, "No description", final)
+        else:
+          prop = self._createXmlElement(doc, k, v, "No description", final)
         topElement.appendChild(prop)
 	
   def _createHadoopSiteXml(self):



Mime
View raw message