One blog post is here: http://grepalex.com/2012/10/20/hadoop-unit-testing-with-minimrcluster/
When I was playing with miniDFSCluster, and miniMRCluster, I was using them via HBaseTestingUtility (it can take a configuration object in a constructor http://people.apache.org/~psmith/hbase/sandbox/hbase/hbase-core/testapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html). Here is some example written around 1 year ago https://github.com/kawaa/HEEUT/blob/master/src/test/java/pl/edu/icm/coansys/heeut/TestHDFS.java 2013/12/5 Karim Awara <[email protected]> > Hi, > > Is there any source on how to use the miniDFSCluster (e.g. providing > configuration ..etc) ? > > -- > Best Regards, > Karim Ahmed Awara > > > On Tue, Dec 3, 2013 at 6:14 PM, Gaurav Sharma > <[email protected]>wrote: > >> You can use the minidfscluster for local testing and write more tests >> around whatever functionality it is that you are trying to change. >> >> On Dec 3, 2013, at 3:44, Karim Awara <[email protected]> wrote: >> >> Hi, >> >> Anyone modified HDFS code before or debug it can give me a hand on how to >> do it? I found multiple sources online but I am facing errors when building >> it from Eclipse. >> >> >> >> -- >> Best Regards, >> Karim Ahmed Awara >> >> ------------------------------ >> This message and its contents, including attachments are intended solely >> for the original recipient. If you are not the intended recipient or have >> received this message in error, please notify me immediately and delete >> this message from your computer system. Any unauthorized use or >> distribution is prohibited. Please consider the environment before printing >> this email. >> > > > ------------------------------ > This message and its contents, including attachments are intended solely > for the original recipient. If you are not the intended recipient or have > received this message in error, please notify me immediately and delete > this message from your computer system. Any unauthorized use or > distribution is prohibited. Please consider the environment before printing > this email. >
