I'm using hadoop-2.7.2
and I did a MapReduceJob with IntelliJ. In my job, I'm using apache.commons.cli-1.3.1
and I put the lib in the jar.
When I use the MapReduceJob on my Hadoop cluster I have a NoSuchMethodError
:
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.cli.Option.builder(Ljava/lang/String;)Lorg/apache/commons/cli/Option$Builder;
I don't understand because the method exist in the class Option
and the class Option
is extracted from the commons-cli.jar
to my application jar. Moreover, I don't have this issue with my others libraries.
Thank you for your time.