Solution 1:

From the error, it seems that you forgot to mark the main class while creating jar. Make sure that you mention the main class while creating jar and then export and run it.






Solution 2:

If you are not able to add the main class then while submitting the jar give the below commands.

hadoop jar WC.jar className(for e.g. WordCount) /inputfile /output