A.打印十次2B.打印1到9两遍C.打印1到9D.打印1到10
单项选择题下列哪一个方法在保存文件时会将RDD序列化成对象? ()
A.saveAsTextFileB.saveAsSequenceFileC.saveAsObjectFileD.以上都不是
单项选择题在Spark中,下列哪一个方法有折叠的功能?()
A.foldB.takeOrderedC.takeSampleD.take
多项选择题下列选项中有哪些函数属于行动操作? ()
A.collectB.countC.firstD.take
单项选择题在Spark中,reduce方法有什么样的功能? ()
A.减少计算开销B.减少计算时间C.返回第一元素D.聚集所有元素
单项选择题在Spark中,sortByKey的作用是什么? ()
A.通过值排序返回原RDDB.通过值排序返回新RDDC.通过键排序返回原RDDD.通过键排序返回新RDD
多项选择题以下函数中不是行动操作的函数有哪些? ()
A.sortByB.unionC.subtractD.intersection
单项选择题flatMap函数与map函数的区别是? ()
A.前者参数较多B.后者参数较少C.前者可以将一个元素映射为多个D.后者可以将一个元素映射为多个
单项选择题map()函数的参数类型是什么? ()
A.RDDB.函数C.类D.对象
单项选择题如何区分转换操作和行动操作? ()
A.看参数类型B.看返回的数据类型C.看对RDD的影响D.以上都不是
单项选择题makeRDD的函数的作用是什么? ()
A.创建RDDB.转换RDDC.调用RDDD.固定RDD