Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC27711D81 for ; Wed, 10 Sep 2014 18:48:14 +0000 (UTC) Received: (qmail 53510 invoked by uid 500); 10 Sep 2014 18:48:09 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 53395 invoked by uid 500); 10 Sep 2014 18:48:09 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 53380 invoked by uid 99); 10 Sep 2014 18:48:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2014 18:48:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shahab.yunus@gmail.com designates 209.85.215.46 as permitted sender) Received: from [209.85.215.46] (HELO mail-la0-f46.google.com) (209.85.215.46) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2014 18:47:42 +0000 Received: by mail-la0-f46.google.com with SMTP id el20so1523201lab.19 for ; Wed, 10 Sep 2014 11:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xWR+bb9b0MeAVLD/0eMO9P4oJxUMkLWH17u/A3lYM6c=; b=s4fBPOCohWbXtUTBqJQYJWILNmzOC3AhXXHa8QDTycFKsf8RymygaxBPhfCyh1o9hL 4XyV0jtrMzv8N4ezNl2aLHunapPOF+fuSA0A+TeQfzFC9xOFn7Tg1T2JuGMp8Nblitdm n5tZIKWCGMyw9zlJRA432x+btQxgdMnLTUgF522MKowUbdY5gvWPfMeMU7yHuZUm25I9 oE2ALB+/wre6t9KCrCIBiogAx1PTn/gUmL+YGUmEeWfRt1siMhcVzpmr/4H/wLQ/EK0+ nMdEfPhqblPTYgPtzfpAT/7izf1Osjg+3qsMmdGHv1wQXdgeZN3a4b8QUXVogOXFQ5c9 7tKA== MIME-Version: 1.0 X-Received: by 10.152.4.9 with SMTP id g9mr44631091lag.14.1410374861937; Wed, 10 Sep 2014 11:47:41 -0700 (PDT) Received: by 10.25.33.80 with HTTP; Wed, 10 Sep 2014 11:47:41 -0700 (PDT) In-Reply-To: <290DD281-B0E7-4AD2-84C3-A981907E2C7B@gmail.com> References: <290DD281-B0E7-4AD2-84C3-A981907E2C7B@gmail.com> Date: Wed, 10 Sep 2014 14:47:41 -0400 Message-ID: Subject: Re: Writing output from streaming task without dealing with key/value From: Shahab Yunus To: "user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=089e013d1708a561280502ba7c11 X-Virus-Checked: Checked by ClamAV on apache.org --089e013d1708a561280502ba7c11 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Examples (the top ones are related to streaming jobs): http://www.infoq.com/articles/HadoopOutputFormat http://research.neustar.biz/2011/08/30/custom-inputoutput-formats-in-hadoop= -streaming/ http://stackoverflow.com/questions/12759651/how-to-override-inputformat-and= -outputformat-in-hadoop-application Regards, Shahab On Wed, Sep 10, 2014 at 2:28 PM, Dmitry Sivachenko wrote: > > On 10 =D1=81=D0=B5=D0=BD=D1=82. 2014 =D0=B3., at 22:19, Rich Haase wrote: > > > You can write a custom output format > > > Any clues how can this can be done? > > > > > , or you can write your mapreduce job in Java and use a NullWritable as > Susheel recommended. > > > > grep (and every other *nix text processing command) I can think of woul= d > not be limited by a trailing tab character. It's even quite easy to stri= p > away that tab character if you don't want it during the post processing > steps you want to perform with *nix commands. > > > Problem is that the line itself contains a TAB in the middle, there will > not be extra trailing TAB at the end. > So it is not that simple. > You never know if it is a TAB from the original line or it is extra TAB > added by TextOutputFormat. > > Thanks! --089e013d1708a561280502ba7c11 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Examples (the top ones are related to streaming jobs):
=
Regards,
Shahab

On Wed, Sep 10, 2014 at 2:28 PM, Dmitry = Sivachenko <trtrmitya@gmail.com> wrote:

On 10 =D1=81=D0=B5=D0=BD=D1=82. 2014 =D0=B3., at 22:19, Rich Haase <rdhaase@gmail.com> wrote:

> You can write a custom output format


Any clues how can this can be done?



> , or you can write your mapreduce job in Java and use a NullWritable a= s Susheel recommended.
>
> grep (and every other *nix text processing command) I can think of wou= ld not be limited by a trailing tab character.=C2=A0 It's even quite ea= sy to strip away that tab character if you don't want it during the pos= t processing steps you want to perform with *nix commands.


Problem is that the line itself contains a TAB in the middle, there will no= t be extra trailing TAB at the end.
So it is not that simple.
You never know if it is a TAB from the original line or it is extra TAB add= ed by TextOutputFormat.

Thanks!

--089e013d1708a561280502ba7c11--