06

二、学生课程分数案例

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

     

  • 开设了多少门课程?
  • 每个学生选修了多少门课?map().countByValue()           //map(), countByKey()
  •  

     

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

     

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

     

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

posted @ 2021-04-12 19:15  201806120  阅读(31)  评论(0编辑  收藏  举报