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

Switch to Threaded View
Hadoop >> mail # user >> Custom Seq File Loader: ClassNotFoundException


Copy link to this message
-
Re: Custom Seq File Loader: ClassNotFoundException
Hi,
 Please make sure that your CustomWritable has a default constructor.

On Sat, Mar 3, 2012 at 4:56 AM, Mark question <[EMAIL PROTECTED]> wrote:

> Hello,
>
>   I'm trying to debug my code through eclipse, which worked fine with
> given Hadoop applications (eg. wordcount), but as soon as I run it on my
> application with my custom sequence input file/types, I get:
> Java.lang.runtimeException.java.ioException (Writable name can't load
> class)
> SequenceFile$Reader.getValeClass(Sequence File.class)
>
> because my valueClass is customed. In other words, how can I add/build my
> CustomWritable class to be with hadoop LongWritable,IntegerWritable ....
> etc.
>
> Did anyone used eclipse?
>
> Mark
>

--
Join me at http://hadoopworkshop.eventbrite.com/