Error:java.io.FileNotFoundException: Path is not a file [How to Solve]

Hadoop (daily error) counts words. Error: java.io.filenotfoundexception: path is not a file:

My solution:

Generally, the jar package source code is not written well. You can check your source code. The problem I have is that the data path is not set well, so HDFS cannot find the file. Before modification:

after modification: must be the absolute path of the data file in Hadoop!! After modification, I run successfully! Hope to help you!

Read More: