how to run a class from java jar file on Hadoop?
问题 I have a jar file exported from Eclipse (Runnable JAR>>Copy required libraries into a sub folder). In java if you set the main class in the manifest.xml you can run: java -jar MyTest.jar arguments if you want to run another main class in the jar file or if you didn't set a main class in the manifest.xml you can run: java -cp MyTest.jar MyOtherMainClass arguments In Hadoop if main class is set in manifest.xml you can run: hadoop jar MyTest.jar arguments If you type: hadoop jar MyTest.jar