I have run a MapReduce java program and run in Hadoop. I have not set some configuration right and I don't get my error. I tried with various workarounds but I get similar errors repeatedly.
1 Answer
You must make your mapper and reducer public:
public static class AnnualTaxCalculaterMapper
public static class AnnualTaxCalculaterReducer
The Hadoop API cannot access package-private class.
2 Comments
Thomas Jungblut
@user2391084 static AND public. Without the static keyword these classes are not instantiable without the outer classes instance.
Jean Logeart
@user2391084 No. The reason is that the API cannot find a constructor for AnnualTaxCalculaterMapper. Making the class
public static should solve your problem.