Skip to Content
Spark快速大数据分析(第2版)
book

Spark快速大数据分析(第2版)

by Jules S. Damji, Brooke Wenig, Tathagata Das, Denny Lee
November 2021
Intermediate to advanced
340 pages
10h 46m
Chinese
Posts & Telecom Press
Content preview from Spark快速大数据分析(第2版)
238
9
配置交互式 shell
如果你使用的是
Spark 3.0
,那么可以用如下命令行参数启动带有
Delta
Lake
PySpark
Scala shell
--packages io.delta:delta-core_2.12:0.7.0
例如:
pyspark --packages io.delta:delta-core_2.12:0.7.0
如果使用
Spark 2.4
,那么应该选择
0.6.0
版本的
Delta Lake
Maven 坐标配置独立的 Scala 项目或 Java 项目
如果想用从
Maven
中央仓库获取的
Delta
Lake
二进制包来构建项目,那么可以将如下
Maven
坐标添加到项目依赖中。
<dependency>
<groupId>io.delta</groupId>
<artifactId>delta-core_2.12</artifactId>
<version>0.7.0</version>
</dependency>
同样,如果用的是
Spark 2.4
,那么应该选择
0.6.0
版本的
Delta Lake
要获取最新信息,可以查阅
Delta Lake
文档。
9.5.2
 把数据加载到
Delta Lake
表中
如果已经熟悉用
Spark
和任意一种结构化数据格式(如
Parquet
)构建数据湖的过程,那么
将现有作业改为使用
Delta
Lake
格式就很简单了。只需将所有
DataFrame
的读写操作中使
format("parquet")
的地方改为使用
format("delta") ...
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

Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉
数据压缩入门

数据压缩入门

Colt McAnlis, Aleks Haecky
解密金融数据

解密金融数据

Justin Pauley

Publisher Resources

ISBN: 9787115576019