hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Kimball <aa...@cloudera.com>
Subject Re: Unable to read sequence file produced by MR job
Date Thu, 27 May 2010 18:38:57 GMT
Put your jar on Hadoop's classpath:

$ HADOOP_CLASSPATH=path/to/shortdocwritables.jar hadoop fs -text bla bla....

- Aaron

On Thu, May 27, 2010 at 11:07 AM, James Hammerton <
james.hammerton@mendeley.com> wrote:

> Hi,
>
> I tried using the "hadoop fs -text" command to read a sequence file
> generated by a map reduce job and got the following error:
>
> text: java.io.IOException: WritableName can't load class:
> com.mendeley.clusterer.title.ShortDocWritables
>
> The ShortDocWritables is a Writable I created myself and the sequencefile
> contains these objects. How do I tell this command where to find the class?
>
> There was no trouble at all running the map reduce job that produced the
> file.
>
> James
>
> --
> James Hammerton | Senior Data Mining Engineer
> www.mendeley.com/profiles/james-hammerton
>
> Mendeley Limited | London, UK | www.mendeley.com
> Registered in England and Wales | Company Number 6419015
>
>
>
>

Mime
View raw message