JAR does not exist or is not a normal file… here is a solution to the problem.
JAR does not exist or is not a normal file
When running the wordcount example in Hadoop
, I encountered the following error.
saying "JAR does not exist or is not a normal file:
/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduceexamples-2.2.0.jar"
My input command is:
hadoop jar $HADOOP_HOME/share/hadoop/mapreduce/hadoop-mapreduceexamples-2.2.0.jar wordcount input output
Solution
Just go to that path and check if the name is correct, conventions may vary from distro to release.
For example, Hadoop 3.1.0 is under the following path:
$HADOOP_HOME/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.1.0.jar