- 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.
- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發(fā)經(jīng)典名著)
- JavaScript從入門到精通(微視頻精編版)
- Python程序設(shè)計教程(第2版)
- Angular UI Development with PrimeNG
- 新一代通用視頻編碼H.266/VVC:原理、標(biāo)準(zhǔn)與實現(xiàn)
- Ext JS Data-driven Application Design
- Mastering Entity Framework
- 趣學(xué)Python算法100例
- 數(shù)據(jù)結(jié)構(gòu)習(xí)題精解(C語言實現(xiàn)+微課視頻)
- Reactive Android Programming
- Python編程:從入門到實踐
- Python Web數(shù)據(jù)分析可視化:基于Django框架的開發(fā)實戰(zhàn)
- Java Fundamentals
- Swift 4從零到精通iOS開發(fā)
- Qlik Sense? Cookbook