Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 39783 invoked from network); 8 Dec 2009 18:17:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 18:17:43 -0000 Received: (qmail 17998 invoked by uid 500); 8 Dec 2009 18:17:43 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 17835 invoked by uid 500); 8 Dec 2009 18:17:42 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 17817 invoked by uid 99); 8 Dec 2009 18:17:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 18:17:41 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 18:17:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 48C6029A001C for ; Tue, 8 Dec 2009 10:17:18 -0800 (PST) Message-ID: <1797125139.1260296238296.JavaMail.jira@brutus> Date: Tue, 8 Dec 2009 18:17:18 +0000 (UTC) From: "Owen O'Malley (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-606) Implement a binary input/output format for Streaming MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787620#action_12787620 ] Owen O'Malley commented on MAPREDUCE-606: ----------------------------------------- I'd propose that we implement this in terms of the org.apache.hadoop.streaming.io.InputWriter and OutputReader. A reader/writer that left the bytes alone, but that quoted the other characters would be great: {noformat} newline -> \n return -> \r backslash -> \\ tab -> \t {noformat} Then it would be easy to get quoted binary into streaming applications. > Implement a binary input/output format for Streaming > ---------------------------------------------------- > > Key: MAPREDUCE-606 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-606 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: contrib/streaming > Reporter: Arun C Murthy > Attachments: hadoop-3227.patch > > > Lots of streaming applications process textual data with 1 record per line and fields separated by a delimiter. It turns out that there is no point in using any of Hadoop's input/output formats since the streaming script/binary itself will parse the input and break into records and fields. In such cases we should provide users with a binary input/output format which just sends 64k (or so) blocks of data directly from HDFS to the streaming application. > I did something very similar for Pig-Streaming (PIG-94 - BinaryStorage) which resulted in 300%+ speedup for scanning (identity mapper & map-only jobs) data... the parsing done by input/output formats in these cases were pure-overhead. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.