Jorge Lopez-Mall
Quiz von , erstellt am more than 1 year ago

Examen con respuestas tipo de Spark

242
0
0
Jorge Lopez-Mall
Erstellt von Jorge Lopez-Mall vor fast 9 Jahre
Schließen

Examen Spark-1

Frage 1 von 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?

Wähle eine oder mehr der folgenden:

  • 1

  • 2

  • 3

  • 4

Erklärung

Frage 2 von 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?

Wähle eine oder mehr der folgenden:

  • 1

  • 2

  • 3

  • 4

Erklärung