Return-Path: Delivered-To: apmail-lucene-hadoop-commits-archive@locus.apache.org Received: (qmail 89430 invoked from network); 26 Apr 2007 21:18:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Apr 2007 21:18:29 -0000 Received: (qmail 6581 invoked by uid 500); 26 Apr 2007 21:18:36 -0000 Delivered-To: apmail-lucene-hadoop-commits-archive@lucene.apache.org Received: (qmail 6568 invoked by uid 500); 26 Apr 2007 21:18:35 -0000 Mailing-List: contact hadoop-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-commits@lucene.apache.org Received: (qmail 6559 invoked by uid 99); 26 Apr 2007 21:18:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 14:18:35 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 14:18:28 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 78E231A9838; Thu, 26 Apr 2007 14:18:08 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r532871 - in /lucene/hadoop/trunk: CHANGES.txt src/contrib/streaming/src/java/org/apache/hadoop/streaming/PipeMapRed.java Date: Thu, 26 Apr 2007 21:18:08 -0000 To: hadoop-commits@lucene.apache.org From: cutting@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070426211808.78E231A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cutting Date: Thu Apr 26 14:18:07 2007 New Revision: 532871 URL: http://svn.apache.org/viewvc?view=rev&rev=532871 Log: HADOOP-1293. Fix contrib/streaming to print more than the first twenty lines of stderr. Contributed by Koji. Modified: lucene/hadoop/trunk/CHANGES.txt lucene/hadoop/trunk/src/contrib/streaming/src/java/org/apache/hadoop/streaming/PipeMapRed.java Modified: lucene/hadoop/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=532871&r1=532870&r2=532871 ============================================================================== --- lucene/hadoop/trunk/CHANGES.txt (original) +++ lucene/hadoop/trunk/CHANGES.txt Thu Apr 26 14:18:07 2007 @@ -267,8 +267,11 @@ of field delimiter and fields for partitioning and sorting. (Runping Qi via cutting) -80. HADOOP-1176. Fix a bug where reduce would hang when a task - created more than 2GB of output for it. (Arun C Murthy via cutting) +80. HADOOP-1176. Fix a bug where reduce would hang when a map had + more than 2GB of output for it. (Arun C Murthy via cutting) + +81. HADOOP-1293. Fix contrib/streaming to print more than the first + twenty lines of standard error. (Koji Noguchi via cutting) Release 0.12.3 - 2007-04-06 Modified: lucene/hadoop/trunk/src/contrib/streaming/src/java/org/apache/hadoop/streaming/PipeMapRed.java URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/streaming/src/java/org/apache/hadoop/streaming/PipeMapRed.java?view=diff&rev=532871&r1=532870&r2=532871 ============================================================================== --- lucene/hadoop/trunk/src/contrib/streaming/src/java/org/apache/hadoop/streaming/PipeMapRed.java (original) +++ lucene/hadoop/trunk/src/contrib/streaming/src/java/org/apache/hadoop/streaming/PipeMapRed.java Thu Apr 26 14:18:07 2007 @@ -553,17 +553,13 @@ public void run() { byte[] line; try { - long num = 0; while ((line = UTF8ByteArrayUtils.readLine((InputStream) clientErr_)) != null) { - num++; String lineStr = new String(line, "UTF-8"); - logprintln(lineStr); + System.err.println(lineStr); long now = System.currentTimeMillis(); - if (num < 20 || (now-lastStderrReport > reporterErrDelay_)) { + if (now-lastStderrReport > reporterErrDelay_) { lastStderrReport = now; - String hline = "MRErr: " + lineStr; - System.err.println(hline); - reporter.setStatus(hline); + reporter.progress(); } } } catch (IOException io) {