Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # user - Sorting text data


Copy link to this message
-
Re: Sorting text data
Owen O'Malley 2012-02-08, 17:05
On Wed, Feb 8, 2012 at 5:59 AM, sangroya <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I tried to run the sort example by specifying the input format. But I got
> the following error, while running it.

You actually need a different mapper to make the whole thing work. I
made a patch for Sort.java that should do the trick.

https://gist.github.com/1770850

Just run the sort with -text and it will set the input format, output
format, key type, value type, and also set the  mapper that I added so
that you move the line to the key instead of the value.

-- Owen