WordCount程序 求下列文件中使用空格分割之后,单词出现的个数 input.txt java scala python hello world java pyfysf upuptop wintp top sfok sf sf sf java android sf pyfysf upuptop pyfysf upuptop java android spark hello world world hello top scala spark spark spark sql 创建maven项目…
1.启动 启动HDFS 启动spark的local模式./spark-shell 2.知识点 textFile: def textFile( path: String, minPartitions: Int = defaultMinPartitions): RDD[String] Filter: Return a new RDD containing only the elements that satisfy a predicate. def filter(f: T => Boolean):…