What I can offer here, you should manually go to the Hadoop installation directory and find a banner name similar to hasoop-examples.jar. Different distributions may have different names for the flag.
If you are in Cygwin and in the Hadoop installation directory you can also do ls *examples*.jar
to find the same, narrowing the list of files to any jar file containing examples as a string.
Then you can directly use the jar file name, for example -
hadoop jar <exampleJarYourFound.jar>
Hope this leads you to a solution.
source share