Prechádzať zdrojové kódy

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.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.18@669689 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 17 rokov pred
rodič
commit
1ddbd1f639

+ 4 - 0
src/contrib/hod/CHANGES.txt

@@ -41,6 +41,10 @@ Release 0.18.0 - Unreleased
     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 mahadev)
+
 Release 0.17.0 - 2008-05-18
 
   INCOMPATIBLE CHANGES

+ 2 - 2
src/contrib/hod/hodlib/Common/setup.py

@@ -748,8 +748,9 @@ class options(OptionParser, baseConfig):
             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 @@ class options(OptionParser, baseConfig):
 
         return directory
 
-
     def remove_exit_code_file(self, orig_dir, dir):
         try:
             dir = self.norm_cluster_dir(orig_dir, dir)