Your custom implementation of any interface from hadoop-core should be
archived together with the application (i.e. in the same jar).
Andt he jar will be added to CLASSPATH of the task runner, then your
"customwritable.java" could be found.

On Thu, Sep 18, 2008 at 8:09 PM, Deepak Diwakar <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I am new to hadoop. For my map/reduce task I want to write my on custom
> writable class. Could anyone please let me know where exactly to place the
> customwritable.java file?
>
> I found that in {hadoop-home}
> /hadoop-{version}/src/java/org/apache/hadoop/io/ all  type of writable
> class
> files are there.
>
> Then  in the main task, we just include "import
> org.apache.hadoop.io.{X}Writable;" But this is not working for me.
> Basically
> at the time of compilation compiler doesn't find my customwritable class
> which i have placed in the mentioned folder.
>
> plz help me in this endevor.
>
> Thanks
> deepak
>



-- 

朱盛凯

Jash Zhu

复旦大学软件学院

Software School, Fudan University

Reply via email to