瀏覽代碼

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 年之前
父節點
當前提交
c245f7c968
共有 2 個文件被更改,包括 5 次插入2 次删除
  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.
     (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
 
   INCOMPATIBLE CHANGES

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

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