- Mastering Apache Spark 2.x(Second Edition)
- Romeo Kienzler
- 254字
- 2021-07-02 18:55:32
Summary
This chapter started by explaining the SparkSession object and file I/O methods. It then showed that Spark- and HDFS-based data could be manipulated as both, DataFrames with SQL-like methods and Datasets as strongly typed version of Dataframes, and with Spark SQL by registering temporary tables. It has been shown that schema can be inferred using the DataSource API or explicitly defined using StructType on DataFrames or case classes on Datasets.
Next, user-defined functions were introduced to show that the functionality of Spark SQL could be extended by creating new functions to suit your needs, registering them as UDFs, and then calling them in SQL to process data. This lays the foundation for most of the subsequent chapters as the new DataFrame and Dataset API of Apache Spark is the way to go and RDDs are only used as fallback.
In the coming chapters, we'll discover why these new APIs are much faster than RDDs by taking a look at some internals of Apache SparkSQL in order to understand why Apache SparkSQL provides such dramatic performance improvements over the RDD API. This knowledge is important in order to write efficient SQL queries or data transformations on top of the DataFrame or Dataset relational API. So, it is of utmost importance that we take a look at the Apache Spark optimizer called Catalyst, which actually takes your high-level program and transforms it into efficient calls on top of the RDD API and, in later chapters, Tungsten, which is integral to the study of Apache Spark.
- JavaScript前端開發(fā)模塊化教程
- Facebook Application Development with Graph API Cookbook
- Java入門經(jīng)典(第6版)
- Python入門很簡單
- 新手學Visual C# 2008程序設(shè)計
- 64位匯編語言的編程藝術(shù)
- Processing互動編程藝術(shù)
- Web全棧工程師的自我修養(yǎng)
- MySQL數(shù)據(jù)庫基礎(chǔ)實例教程(微課版)
- Gradle for Android
- D3.js 4.x Data Visualization(Third Edition)
- R Data Analysis Cookbook(Second Edition)
- INSTANT Yii 1.1 Application Development Starter
- jQuery技術(shù)內(nèi)幕:深入解析jQuery架構(gòu)設(shè)計與實現(xiàn)原理
- JavaScript編程精解(原書第2版)