Locate file path using find command in the hdfs.bash-4.1$ hdfs dfs -find / -name test.txt/user/hdfs/test.txt -find (Look for the file based on the name switch)-name (File name that you are searching for) You can also use recursive command to find the files. bash-4.1$ hdfs dfs -ls -R | grep test-rw-r--r-- 1 hdfs supergroup 0 2022-08-14 06:24 test.txt -R (That will search entire file system including sub-folder) bash-4.1$ hdfs dfs -ls /user/hdfsFound 2 itemsdrwx------ - hdfs supergroup 0 2022-08-13 14:00 /user/hdfs/.Trash-rw-r--r-- 1 hdfs supergroup 0 2022-08-14 06:24 /user/hdfs/test.txt