Return-Path: Delivered-To: apmail-pig-dev-archive@www.apache.org Received: (qmail 75709 invoked from network); 26 Oct 2010 03:57:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Oct 2010 03:57:44 -0000 Received: (qmail 42718 invoked by uid 500); 26 Oct 2010 03:57:44 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 42495 invoked by uid 500); 26 Oct 2010 03:57:41 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 42481 invoked by uid 500); 26 Oct 2010 03:57:40 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 42478 invoked by uid 99); 26 Oct 2010 03:57:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 03:57:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 03:57:39 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9Q3vJYg005013 for ; Tue, 26 Oct 2010 03:57:19 GMT Message-ID: <7434167.72041288065439254.JavaMail.jira@thor> Date: Mon, 25 Oct 2010 23:57:19 -0400 (EDT) From: "Ashutosh Chauhan (JIRA)" To: pig-dev@hadoop.apache.org Subject: [jira] Commented: (PIG-1702) Streaming debug output outputs null input-split information In-Reply-To: <9746844.71341288058779659.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PIG-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924830#action_12924830 ] Ashutosh Chauhan commented on PIG-1702: --------------------------------------- @Adam, Nice catch. Would you like to contribute a patch for it? > Streaming debug output outputs null input-split information > ----------------------------------------------------------- > > Key: PIG-1702 > URL: https://issues.apache.org/jira/browse/PIG-1702 > Project: Pig > Issue Type: Bug > Components: impl > Affects Versions: 0.7.0 > Reporter: Adam Warrington > Priority: Minor > > Within the Pig streaming command execution, debug information is printed out to stderr which specified the input file, as well as split information. The function is org.apache.pig.backend.hadoop.streaming.HadoopExecutableManager.writeDebugHeader(). Pig 0.7 outputs null for the split file, and -1 for the split start-offset and split length. Example output: > ===== Task Information Header ===== > Command: test.pl (stdin-org.apache.pig.builtin.PigStreaming/stdout-org.apache.pig.builtin.PigStreaming) > Start time: Mon Oct 25 21:24:45 EDT 2010 > Input-split file: null > Input-split start-offset: -1 > Input-split length: -1 > Within the writeDebugHeader() function, the input file information is obtained by querying for the "map.input.file" configuration variable. This configuration variable was set by the old hadoop m/r api, but not by the 0.20 api, which Pig 0.7 now uses. The new way to get this information is with something like: ((FileSplit) context.getInputSplit).getPath(). See HADOOP-5973. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.