chi_chen

6. RDD综合练习:更丰富的操作

集合运算练习

union(), intersection(),subtract(), cartesian()

内连接与外连接

join(), leftOuterJoin(), rightOuterJoin(), fullOuterJoin()

多个考勤文件,签到日期汇总,出勤次数统计

网盘下载sc.txt文件,通过RDD操作实现以下数据分析:

持久化 stu.cache()

总共有多少学生?map(), distinct(), count()

开设了多少门课程?

 

每个学生选修了多少门课?map(), countByKey()

每门课程有多少个学生选?map(), countByValue()

多少个100分?

 

Tom选修了几门课?每门课多少分?filter(), map() RDD

Tom选修了几门课?每门课多少分?map(),lookup()  list

posted on 2022-04-18 23:31  chi_chen  阅读(21)  评论(0编辑  收藏  举报