it only gets
.class from this package,as following:
String path = "org.apache.hadoop.chukwa.extraction.demux.processor.reducer." + reduceType;
So our custom reducer could only be placed in that package.
Thus, When we add our
.jar to Hadoop classpath, since the Hadoop framework will not be able to merge the class files from multiple jar files with the same package name, custom reduce class can not be found.
I get a way to overcome this defect.Put custom reducer into a package named with "org.apache.hadoop.chukwa.extraction.demux.processor.reducer."+
is a part of package name.Then in parser,we can write like this:
In this way, Hadoop framework could be able to find our reduce class in this partial user defined new package.
But I think it will be better to fix chukwa to remove the default package name and fully support custom package name for reducer.
Thanks for Eric Yang's help.