web123456

hadoop exception: : Input path does not exi

When installing the Hadoop development environment of idea, after the environment is installed, the following error occurs when the operation is run:


Exception in thread "main" : Input path does not exist:


This prompts that the file cannot be found, so the solution steps are as follows:

1) Confirm whether there is this file on the HDFS system on the cluster. If not, use the command hdfs dfs -mkdir -p XXXX to create the file

2) Use hdfs dfs -ls to confirm the existence of the file, and then compare it with the parameters you entered to see if there are any spelling errors

3) Confirm whether the path is really correct, because when creating a new folder on HDFS, you may unconsciously use the relative path, so you don’t

Confirm the correct path

For example, the path you think is: hdfs://localhost:9000/input

In fact, this path is wrong. Enter hdfs dfs -ls /

drwxr-xr-x   - root supergroup          0 2017-02-05 21:47 /user


It is found that the absolute path should actually be hdfs://localhost:9000/user/hadoop/input