下载此文档

《Spark编程基础及项目实践》课后习题及答案4.docx


文档分类:IT计算机 | 页数:约1页 举报非法文档有奖
1/1
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/1 下载此文档
文档列表 文档介绍
****题4

(1) 常用创立RDD的方法有哪些? (ABC )A. makeRDD B. parallelize C. textfile D. testfile
(2)下面哪个不是RDD的特点(C )


(1) 常用创立RDD的方法有哪些? (ABC )A. makeRDD B. parallelize C. textfile D. testfile
(2)下面哪个不是RDD的特点(C )




(3)下面哪一种全部是转化操作?( C )A. map、take> reduceByKeyB. map、filter> collect
C. map、zip> reduceByKeyD. map> join、take
(4)下面哪种按键操作的方法返回值可以与输入类型不同? ( B )A. reduceByKey
C. sortByKey
A. reduceByKey
C. sortByKey
B bineByKey
(5)使用saveAsTextFile存储数据到HDFS,要求数据类型为什么? ( D )A. . Seq
2 .操作题
-8所示,文件中包含了多行句子,现在要求对文 档中的单词计数,并把单词计数超过3的结果存储到HDFS上。
WHat is going on there?
I talked to John on email. We talked about some computer stuff that's it.
I went bike riding in the rain, it was not that cold.
We went to the museum in SF yesterday it was $3 to get in and they had free food. At the same time was a SF Giants game, when we got done we had to take the train with all the Giants fans, t

《Spark编程基础及项目实践》课后习题及答案4 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数1
  • 收藏数0 收藏
  • 顶次数0
  • 上传人1772186****
  • 文件大小12 KB
  • 时间2022-06-25