1

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 1

4

You must make your mapper and reducer public:

public static class AnnualTaxCalculaterMapper
public static class AnnualTaxCalculaterReducer

The Hadoop API cannot access package-private class.

Sign up to request clarification or add additional context in comments.

2 Comments

@user2391084 static AND public. Without the static keyword these classes are not instantiable without the outer classes instance.
@user2391084 No. The reason is that the API cannot find a constructor for AnnualTaxCalculaterMapper. Making the class public static should solve your problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.