You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by yh...@apache.org on 2008/06/19 16:40:51 UTC

svn commit: r669498 - in /hadoop/core/trunk/src/contrib/hod: CHANGES.txt hodlib/Common/setup.py

Author: yhemanth
Date: Thu Jun 19 07:40:50 2008
New Revision: 669498

URL: http://svn.apache.org/viewvc?rev=669498&view=rev
Log:
HADOOP-3076. Fixes a bug related to a spurious message about the script.exitcode file when a cluster directory is specified as a relative path. Contributed by Vinod Kumar Vavilapalli.

Modified:
    hadoop/core/trunk/src/contrib/hod/CHANGES.txt
    hadoop/core/trunk/src/contrib/hod/hodlib/Common/setup.py

Modified: hadoop/core/trunk/src/contrib/hod/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hod/CHANGES.txt?rev=669498&r1=669497&r2=669498&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hod/CHANGES.txt (original)
+++ hadoop/core/trunk/src/contrib/hod/CHANGES.txt Thu Jun 19 07:40:50 2008
@@ -53,6 +53,10 @@
     in the hadoop-site.xml created on datanodes. 
     (Vinod Kumar Vavilapalli via ddas)
 
+    HADOOP-3076. Fixes a bug related to a spurious message about the 
+    script.exitcode file when a cluster directory is specified as a relative
+    path. (Vinod Kumar Vavilapalli via yhemanth)
+
 Release 0.17.0 - 2008-05-18
 
   INCOMPATIBLE CHANGES

Modified: hadoop/core/trunk/src/contrib/hod/hodlib/Common/setup.py
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hod/hodlib/Common/setup.py?rev=669498&r1=669497&r2=669498&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hod/hodlib/Common/setup.py (original)
+++ hadoop/core/trunk/src/contrib/hod/hodlib/Common/setup.py Thu Jun 19 07:40:50 2008
@@ -748,8 +748,9 @@
             elif cmdstr == "script":
               clusterDir = getattr(self.__parsedOptions, 'hod.clusterdir')
               numNodes = getattr(self.__parsedOptions, 'hod.nodecount')
+              originalDir = getattr(self.__parsedOptions, 'hod.original-dir')
 
-              if clusterDir:
+              if originalDir and clusterDir:
                 self.remove_exit_code_file(originalDir, clusterDir)
 
               if not _script or not clusterDir or not numNodes:
@@ -801,7 +802,6 @@
 
         return directory
 
-
     def remove_exit_code_file(self, orig_dir, dir):
         try:
             dir = self.norm_cluster_dir(orig_dir, dir)