修复Hadoop流

0x6upsns  于 2023-08-03  发布在  Hadoop
关注(0)|答案(1)|浏览(161)

我有个关于指挥的问题

C:\hadoop-3.3.0\Lab2>hadoop jar "C:/hadoop-3.3.0/share/hadoop/tools/lib/hadoop-streaming-3.3.0.jar" ^ 
-file mapper.py -mapper mapper.py ^ 
-file reducer.py -reducer reducer.py ^ 
-input /user/Win10/data/Cau1.txt ^ 
-output /user/Win10/data/Cau1-output.txt

字符串
这是命令回复

2023-07-02 20:43:22,867 WARN streaming.StreamJob: -file option is deprecated, please use generic option -files instead.
File: file:/C:/hadoop-3.3.0/Lab2/mapper.py is not readable.
Try -help for more information
Streaming Command Failed!


希望大家能帮我修!我使用Windows

5f0d552i

5f0d552i1#

应该使用-files参数,而不是- file
您可以查看this链接

相关问题