且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

第一个hadoop项目错误:“输入路径不存在”

更新时间:2022-10-27 19:51:25

You need to upload your input files to the HDFS file system first:

bin/hadoop fs -mkdir In

will create a directory named /user/DEVUSER/In in HDFS.

bin/hadoop fs -put *.txt In

will copy all *.txt files from the current directory to the cluster (HDFS).

You seem to have skipped the chapter Upload data from the tutorial. Follow it and your problem should be solved.