Java – hadoop jar ignores the specified main class

hadoop jar ignores the specified main class… here is a solution to the problem.

hadoop jar ignores the specified main class

My Hadoop version is 0.20.2.
Although I type

hadoop jar JarWithSeveralMainClasses.jar NonDefaultMainClass args...

It attempts to execute the main method of the MainClassSpecifiedInJarManifest.
Why?

Related Problems and Solutions