Skip to Content
Aprender Spark, 2ª Edición
book

Aprender Spark, 2ª Edición

by Jules S. Damji, Brooke Wenig, Tathagata Das, Denny Lee
September 2024
Intermediate to advanced
400 pages
10h 47m
Spanish
O'Reilly Media, Inc.
Content preview from Aprender Spark, 2ª Edición

Capítulo 3. Las API estructuradas de Apache Spark

Este trabajo se ha traducido utilizando IA. Agradecemos tus opiniones y comentarios: translation-feedback@oreilly.com

En este capítulo, exploraremos las principales motivaciones para añadir estructura a Apache Spark, cómo esas motivaciones condujeron a la creación de API de alto nivel (DataFrames y Datasets), y su unificación en Spark 2.x en todos sus componentes. También examinaremos el motor Spark SQL que sustenta estas API estructuradas de alto nivel.

Cuando se introdujo Spark SQL en las primeras versiones de Spark 1.x, seguido de DataFrames como sucesor de SchemaRDDs en Spark 1.3, obtuvimos nuestro primer atisbo de estructura en Spark. Spark SQL introdujo funciones operativas expresivas de alto nivel, imitando una sintaxis similar a SQL, y DataFrames, que sentó las bases para una mayor estructura en versiones posteriores, allanó el camino hacia operaciones de alto rendimiento en las consultas computacionales de Spark.

Pero antes de hablar de las API estructuradas más recientes, echemos un breve vistazo a lo que supone no tener estructura en Spark echando un vistazo al sencillo modelo de API de programación RDD.

Spark: ¿Qué hay debajo de un RDD?

El RDD es la abstracción más básica de Spark. Hay tres características vitales asociadas a un RDD:

  • Dependencias

  • Particiones (con alguna información de localidad)

  • Función de cálculo: Partición => Iterator[T]

Los tres son parte integrante del sencillo modelo API de programación ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Spark: La Guía Definitiva

Spark: La Guía Definitiva

Bill Chambers, Matei Zaharia

Publisher Resources

ISBN: 9781098181857