Jorge Lopez-Mall
Quiz by , created more than 1 year ago

Examen con respuestas tipo de Spark

236
0
0
Jorge Lopez-Mall
Created by Jorge Lopez-Mall over 8 years ago
Close

Examen Spark-1

Question 1 of 2

1

Dadas las siguientes líneas de código:

1- val sc = new SparkContext(master="local[*]", appName="test", conf = new SparkConf())
2- val text = sc.textFile("test")
3- val hashTags = text.flatMap(_.split(" ")).fliter(_.startsWith("#")).map(word => (word, 1))
4- val count = hashTags.countByKey

¿Qué línea crea un base RDD?

Select one or more of the following:

  • 1

  • 2

  • 3

  • 4

Explanation

Question 2 of 2

1

Dadas las siguientes líneas de código:

1- val sc = new SparkContext(master="local[*]", appName="test", conf = new SparkConf())
2- val text = sc.textFile("test")
3- val hashTags = text.flatMap(_.split(" ")).fliter(_.startsWith("#")).map(word => (word, 1))
4- val count = hashTags.countByKey

¿Qué línea es una transformación?

Select one or more of the following:

  • 1

  • 2

  • 3

  • 4

Explanation