Ver código fonte

HADOOP-3319. Fix some HOD error messages to go stderr instead of
stdout. (Vinod Kumar Vavilapalli via omalley)


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@683652 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 17 anos atrás
pai
commit
c245f7c968
2 arquivos alterados com 5 adições e 2 exclusões
  1. 3 0
      CHANGES.txt
  2. 2 2
      src/contrib/hod/bin/checknodes

+ 3 - 0
CHANGES.txt

@@ -238,6 +238,9 @@ Trunk (unreleased changes)
     HADOOP-3904. Fix unit tests using the old dfs package name.
     HADOOP-3904. Fix unit tests using the old dfs package name.
     (TszWo (Nicholas), SZE via johan)
     (TszWo (Nicholas), SZE via johan)
 
 
+    HADOOP-3319. Fix some HOD error messages to go stderr instead of
+    stdout. (Vinod Kumar Vavilapalli via omalley)
+
 Release 0.18.0 - Unreleased
 Release 0.18.0 - Unreleased
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 2 - 2
src/contrib/hod/bin/checknodes

@@ -19,12 +19,12 @@
 PBS_NODES_PATH=`which pbsnodes 2>/dev/null`
 PBS_NODES_PATH=`which pbsnodes 2>/dev/null`
 if [ -z $PBS_NODES_PATH ]
 if [ -z $PBS_NODES_PATH ]
 then
 then
-  echo Could not find pbsnodes in path. Cannot check available number of nodes.
+  echo Could not find pbsnodes in path. Cannot check available number of nodes. >&2
   exit 1
   exit 1
 fi
 fi
 if [ -z $1 ]
 if [ -z $1 ]
 then
 then
-  echo Usage: checknodes queue-name
+  echo Usage: checknodes queue-name >&2
   exit 2
   exit 2
 fi
 fi
 # the number of nodes marked 'free', and which do not contain a jobs attribute from the server or from the moms.
 # the number of nodes marked 'free', and which do not contain a jobs attribute from the server or from the moms.