Home:ALL Converter>No such file or directory when using cat command with hadoop

No such file or directory when using cat command with hadoop

Ask Time:2021-02-13T03:22:25         Author:dkhayutin

Json Formatter

I have two files within a directory, one called word_mapper.py and another called README.md. I am trying to use these files with hadoop, but when I run the command hadoop fs -cat README.md | python3 word_mapper.py i get the following response from my terminal:

2021-02-12 14:13:55,862 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
cat: `README.md': No such file or directory

Hadoop is up and running so not exactly sure how to get about fixing this. Any suggestions?

Author:dkhayutin,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/66177858/no-such-file-or-directory-when-using-cat-command-with-hadoop
yy