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 ABEDAC78D for ; Tue, 11 Jun 2013 15:07:03 +0000 (UTC) Received: (qmail 58728 invoked by uid 500); 11 Jun 2013 15:07:00 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 57866 invoked by uid 500); 11 Jun 2013 15:06:59 -0000 Mailing-List: contact mapreduce-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-user@hadoop.apache.org Delivered-To: mailing list mapreduce-user@hadoop.apache.org Received: (qmail 57036 invoked by uid 99); 11 Jun 2013 15:06:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 15:06:58 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of timrobertson100@gmail.com designates 209.85.160.48 as permitted sender) Received: from [209.85.160.48] (HELO mail-pb0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 15:06:54 +0000 Received: by mail-pb0-f48.google.com with SMTP id ma3so3120733pbc.21 for ; Tue, 11 Jun 2013 08:06:33 -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=5DXqk3XEiYVWJ/E4Jb6KrIGRBqeNWWI6q8u/M9rR/dI=; b=iT7HdRYMbZ+GAX36h5EUh/V9+O5D0zhug63h5oRsoVf4CutHq9Wx9SVECRvuh5LFfa MnfPcllaceepYw8rUPXjVOMrKbgytAfRokBRT//nnHp/9OhVgJsH1YlGohjFpzVMt/RM j08i7Sl/WaZh4ZFoh41LuH8cXUSuD+88R7eodGZleXDvvrS7UX2R5QmwGTBJepwHggjN qYPY4bAggB+tniq7lZ1TSOCbRWyH5PIcMRjmB6xdut7JmnVXzdEJJGDGu4noMcgDVIno Yr2P6oQ//y0ePfSJURk17bOW5BfOQsmzYa1tbN4PUX5IULqySLkUHjhPrheyh5RC1B96 I0sw== MIME-Version: 1.0 X-Received: by 10.66.27.196 with SMTP id v4mr19123444pag.97.1370963193723; Tue, 11 Jun 2013 08:06:33 -0700 (PDT) Received: by 10.68.211.66 with HTTP; Tue, 11 Jun 2013 08:06:33 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Jun 2013 17:06:33 +0200 Message-ID: Subject: Re: replace separator in output.collect? From: Tim Robertson To: mapreduce-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=bcaec5299d192980bc04dee23eb6 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec5299d192980bc04dee23eb6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Assuming you are using a textfileoutputformat: http://stackoverflow.com/questions/11031785/hadoop-key-and-value-are-tab-se= parated-in-the-output-file-how-to-do-it-semicol So something like: conf.set("mapred.textoutputformat.separator", ":"); conf.set("mapreduce.textoutputformat.separator", ":"); Depending on the version being run. I hope this helps, Tim On Tue, Jun 11, 2013 at 4:48 PM, Pedro S=E1 da Costa wr= ote: > the "output.collect(key, value)" puts the key and the value separated by > \t. Is there a way to replace it by ':'? > > -- > Best regards, > --bcaec5299d192980bc04dee23eb6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Assuming you are using a textfileoutputformat:


So something like:
=A0 conf.set(&= quot;mapred.textoutputformat.separator", ":");
=A0 conf.set("mapreduce.textoutputformat.separator", "= ;:");
=A0
Depending on the version being run.=A0
=
=A0=A0
I hope this helps,
Tim


On T= ue, Jun 11, 2013 at 4:48 PM, Pedro S=E1 da Costa <psdc1978@gmail.com&= gt; wrote:
the "output.collect(ke= y, value)" puts the key and the value separated by \t. Is there a way = to replace it by ':'?

--
Best regards,

--bcaec5299d192980bc04dee23eb6--