修复Hadoop流

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

我有个关于指挥的问题

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

字符串
这是命令回复

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


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

5f0d552i

5f0d552i1#

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

相关问题