摘要:
本次主要对综合案例进行了学习 案例1:求TOP值 任务描述:orderid,userid,payment,productid file1.txt 1,1768,50,155 2,1218,600,211 3,2239,788,242 4,3101,28,599 5,4899,290,129 6,31
阅读全文
摘要:
本次学习学习了共享变量的相关知识内容以及文件系统的读写 本地文件系统的数据读写 读 scala> val textFile = sc.textFile("file:///usr/local/spark/mycode/wordcount/word.txt") 因为Spark采用了惰性机制,在执行转换操
阅读全文