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

Switch to Threaded View
Hadoop >> mail # dev >> Contributing to hadoop

Copy link to this message
Re: Contributing to hadoop

Another easy way to test your code is to write a testcase. You could follow any of the already existing test HDFS test cases.
For example src/test/org/apache/hadoop/hdfs/server/namenode/TestFsck.java will tell you how to create a cluster using MiniDFS with multiple DataNodes, creating files and also running fsck programatically. If you would want to test something, you make the changes and run the test. You could also run just one test alone by executing
'ant -Dtestcase=TestFsck test'


----- Original Message ----
From: Ajit Ratnaparkhi <[EMAIL PROTECTED]>
Sent: Wednesday, February 25, 2009 11:23:56 PM
Subject: Re: Contributing to hadoop


Can you please tell me how to run multiple datanodes on one machine.


On Thu, Feb 26, 2009 at 9:23 AM, Pradeep Fernando <[EMAIL PROTECTED]>wrote:

> Raghu,
> I guess you are asking if it would be more convenient if one had access to
> a
> > larger cluster for development.
> exactly.....
>  I have access to many machines and clusters.. but about 99% of my
> > development happens using single machine for testing. I would guess that
> is
> > true for most of the Hadoop developers.
> well this is the answer I was looking for....  :D
> seems to be I have enough resources to contribute to this project.
> Thanks a lot raghu.
> regards,
> Pradeep Fernando.