.InvalidInputException: Input path does not exist: hdfs://hadoop102:9000/user/atguigu/input

About org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs: // hadoop102: 9000 / user / atguigu / input The
problem of
entering an absolute path is to solve
scala> sc.textFile (“file: / // opt / module / spark / input "). flatMap ( .split (" ")). map (( , 1)). reduceByKey ( + ) .collect
res18: Array [(String, Int)] = Array (( scala, 1), (hello, 3), (spark, 1), (hadoop, 1))

Published 10 original articles · Likes0 · Visits 79

Guess you like

Origin blog.csdn.net/WangaWen1229/article/details/105516246