Spark 3化解性能差距 95%数据工程职位倒向Python

Scala is dead? @EcZachly_ — 课代表立正

课代表立正

由于行业大量投资完善Python转换层,Spark 3已抹平与Scala的性能差距,导致除少数科技巨头外的高达95%的市场职位全面转向Python。

AI-assisted summary of Scala is dead? @EcZachly_ — original source. Check the original for full context.

Source published:

Detailed notes

## Background 该视频由“课代表立正”于2026年5月13日发布在YouTube平台上。视频的描述部分非常简短,主要提供了该频道的会员加入链接。

## TL;DR 演讲者分享了自己为了Apache Spark而学习Scala的经历,指出早期版本的Spark因为原生支持而更倾向于Scala。然而,随着业界对Python转换层的大量投入,Spark 3中的Python性能已与Scala基本持平。尽管Netflix和Airbnb等科技巨头仍坚持使用Scala编写数据管道,但整个行业市场中Python的份额已高达95%左右。因此,演讲者建议初学者优先选择Python和PySpark,以便获得更多的就业机会和更平缓的职业晋升路径。

## Atmosphere & style 视频整体呈现出一种务实、真诚且带有行业洞察力的语调。演讲者以个人经历切入,语气坦诚而接地气,没有高高在上的说教,而是像一位资深同行在分享行业大实话。整个叙述充满理性和职场战略感,让听众在面对技术选型时感到脚踏实地,并在职业规划上产生共鸣与启发。

## Key takeaways - The speaker originally learned Scala specifically for Apache Spark to use the framework's native language. - Older versions of Apache Spark heavily favored Scala because it is the native language of the framework. - A massive amount of industry investment has been poured into perfecting the translation layer for Python. - The technology adapted because there is a widespread industry preference to avoid using Scala. - With Spark 3, the performance gap between Python and Scala has largely closed, making them functionally identical for most use cases. - Big tech giants like Netflix and Airbnb still stubbornly stick to writing their data pipelines almost exclusively in Scala. - The reliance on Scala by major tech companies is not a true reflection of the broader industry. - In the wider job market, the language split for data engineering is closer to 95% Python. - Prioritizing Python over Scala is the strategic move for anyone trying to break into the field to maximize job opportunities. - Learning PySpark provides a friendlier, gradual career increase and serves as an accessible gateway to other tools.

## Detailed walkthrough ### The Reality of Scala vs. Python in Apache Spark

The speaker shares that they originally learned Scala specifically for Apache Spark, driven by a personal preference to use the "native ways of doing things." Historically, while data engineers could choose between Python and Scala, older versions of Spark heavily favored Scala because it was the native language of the framework. However, a massive amount of industry investment has since been poured into perfecting the translation layer for Python. The reality is that "people don't want to use Scala," which forced the technology to adapt. With the release of Spark 3, the performance gap has largely closed, making Python functionally the same as Scala for the vast majority of use cases.

While big tech giants like Netflix and Airbnb still stubbornly stick to writing their data pipelines almost exclusively in Scala, the speaker emphasizes that this is "not a reflection of Industry." In the broader job market, the split is closer to 95% Python. For anyone trying to break into the field and looking for an abundance of job opportunities, prioritizing Python over Scala is the strategic move. Learning PySpark provides a much friendlier, "gradual increase in your career" and serves as an accessible gateway; once you master PySpark, transitioning to other tools over time becomes incredibly easy.

- **The Native Advantage:** Older versions of Apache Spark performed significantly better in Scala because the framework is natively written in it. - **The Shift in Spark 3:** Massive investment in Python translation layers has made Python performance mostly identical to Scala in Spark 3. - **Market Share:** Big tech companies like Netflix and Airbnb rely heavily on Scala, but the broader industry is roughly 95% Python. - **Career Strategy:** Beginners should focus on Python and PySpark to maximize job prospects and build a scalable skill set.

## Notable quotes > native ways of doing things

> people don't want to use Scala

> not a reflection of Industry

> gradual increase in your career

## Mentioned Scala, Python, Apache Spark, Spark 3, Netflix, Airbnb, PySpark

[Source](https://www.youtube.com/watch?v=v7ttBGoJSU4)

中文简报

Spark 3化解性能差距 95%数据工程职位倒向Python 由于行业大量投资完善Python转换层,Spark 3已抹平与Scala的性能差距,导致除少数科技巨头外的高达95%的市场职位全面转向Python。 演讲者分享了自己为了Apache Spark而学习Scala的经历,指出早期版本的Spark因为原生支持而更倾向于Scala。然而,随着业界对Python转换层的大量投入,Spark 3中的Python性能已与Scala基本持平。尽管Netflix和Airbnb等科技巨头仍坚持使用Scala编写数据管道,但整个行业市场中Python的份额已高达95%左右。因此,演讲者建议初学者优先选择Python和PySpark,以便获得更多的就业机会和更平缓的职业晋升路径。 演讲者最初专门为了 Apache Spark 学习 Scala,以便使用该框架的原生语言。 较早版本的 Apache Spark 极为倾向 Scala,因为它是该框架的原生语言。 业界投入了大量资源与资金来完善面向 Python 的转换层。 该技术之所以做出调整,是因为行业普遍倾向于避免使用 Scala。 到了 Spark 3,Python 与 Scala 之间的性能差距已基本弥合,在绝大多数应用场景下二者表现几乎相同。

Reading summary

According to the speaker, while Scala was once essential for optimal Apache Spark performance, substantial engineering investments and the release of Spark 3 have made Python functionally equivalent, establishing Python as the dominant choice across the data engineering job market. Spark 3 Closes the Scala Performance Gap Historically, Apache Spark heavily favored Scala because the framework was natively written in the language, giving it a distinct performance advantage over Python in earlier versions. However, widespread resistance to adopting Scala pushed the industry to invest heavily into refining Python translation layers. The speaker highlights that with Spark 3, this performance gap has largely disappeared, rendering Python functionally identical to Scala across most standard workloads. Big Tech Outliers vs. Wider Market Demand While major tech enterprises such as Netflix and Airbnb continue to rely almost exclusively on Scala for their data pipelines, the speaker contends that these organizations are not representative of the broader market. Across the general industry, Python accounts for approximately 95% of data engineering adoption. For professionals seeking job volume and flexibility, focusing on Python aligns far better with market reality than attempting to match the legacy setups of a few large tech firms. Strategic Career Entry Through PySpark For individuals entering the field, the speaker advises prioritizing Python and PySpark over Scala to maximize initial employment prospects. PySpark functions as an accessible gateway that supports a gradual, manageable career progression. Once an engineer builds proficiency in PySpark, pivoting toward other tools and frameworks becomes significantly easier over time. While specific tech giants maintain entrenched Scala codebases, the speaker concludes that Python's performance parity in Spark 3 and its 95% market share make PySpark the definitive, strategic choice for modern data engineering careers.

精炼阅读摘要

演讲者指出,尽管Scala是Apache Spark的原生语言,但随着Spark 3大幅缩小性能差距,Python已在更广泛的就业市场中占据压倒性优势,初学者应优先选择Python以获取更多职业机会。 技术演进抹平性能差异 演讲者表示,自己最初因为倾向使用框架原生语言而专门为Apache Spark学习了Scala。在Spark的早期版本中,由于底层完全由Scala编写,Scala相比Python确实具备明显的性能优势。然而,业界随后投入了大量资金与工程力量,持续完善针对Python的翻译转换层,其根本原因在于多数开发者更倾向于避免使用Scala。到了Spark 3发布后,两者的性能差距已被基本抹平,绝大多数实际应用场景下Python与Scala的表现已完全相当。 行业分化与职业路径选择 虽然Netflix和Airbnb等大型科技巨头目前依然固守主要基于Scala构建数据管道的做法,但演讲者强调这并不代表整个行业的真实全貌。在更广阔的就业市场上,Python与Scala的使用比例已接近95%比5%。针对试图进入该领域并寻求大量工作机会的新人,演讲者建议策略性地优先攻克Python和PySpark。这种选择不仅提供了更平缓、友好的职业发展路径,也作为通用敲门砖,使工程师在未来逐步拓展并过渡到其他技术工具时变得十分容易。 演讲者认为Scala在主流就业市场已被边缘化,优先掌握PySpark更符合当下的就业现实;但资料未涉及大型科技公司因何坚持使用Scala的技术与历史包袱等深层因素。

Detailed notes — zh

## Background 该视频由 YouTube 频道「课代表立正」于 2026 年 5 月 13 日发布,主要探讨了数据工程领域中 Scala 与 Python/PySpark 的地位变迁,并联动了技术博主 @EcZachly_ 的观点。视频简介内容较为简洁,主要提供了该频道的 YouTube 会员赞助与加入链接。 ## TL;DR 在早期 Apache Spark 生态中,用 Scala 编写确实能获得远优于 Python 的原生性能,但因广大开发者对 Scala 普遍存在排斥情绪,社区投入巨资研发跨语言转译层,到 Spark 3 时代 PySpark 的性能已基本追平 Scala。除 Netflix、Airbnb 等少数科技大厂仍在核心数据管道中坚守 Scala 之外,当下数据工程就业市场约 95% 的岗位需求都被 Python 占据。因此,新人入行的最优求职策略是优先掌握需求庞大的 Python 和 PySpark,待职业发展需要时再按需补足 Scala 技术栈。 ## Atmosphere & style 整体语调直率、务实且极富行业现实感,毫不避讳地撕下了技术选型中盲目崇拜“原生底层”的滤镜。主讲者的分析节奏明快、切中要害,用接地气的行业洞察击碎求职焦虑。整段内容给人一种清醒、通透的解惑感,为处于迷茫期的数据新手提供了笃定而务实的行动指引。 ## Bulletin - [00:00](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=0s) 随着开源社区在跨语言转译层上的大量投入,Spark 3+ 版本中 PySpark 的执行效率和能力已基本追平原生 Scala。 - [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 数据工程就业市场中 Python 占据了约 95% 的绝对主流份额,而 Scala 的需求高度集中在少数特定头部大厂。 - [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 尽管 Netflix 和 Airbnb 等硅谷顶尖公司仍坚持使用 Scala 编写大部分核心管道,但行业整体趋势依然向 Python 倾斜。 - [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 对于入行数据领域的新人,最务实的就业路径是优先精通 Python 和 PySpark,后续再根据进阶工程需求补足 Scala。 ## Key takeaways - [00:00](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=0s) 早期工程师学习 Scala 的主要动力在于 Apache Spark 底层由 Scala 编写,原生支持带来了更出色的性能与体验。 - [00:00](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=0s) 在早期旧版本 Spark 中,Scala 与 Python 之间的性能差距明显,Scala 原生运行免去了额外的通信与封装开销。 - [00:00](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=0s) 由于广大开发者和团队普遍排斥使用 Scala,社区与厂商向跨语言转译层投入了巨额研发资源来抹平语言鸿沟。 - [00:00](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=0s) 到了 Spark 3 及之后版本,PySpark 的底层性能与能力基本追平 Scala,两者在绝大多数场景下的差距微乎其微。 - [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) Netflix 和 Airbnb 是行业中的特例,它们内部的核心数据管道仍然普遍要求使用 Scala 编写。 - [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 放眼宏观就业市场,少数大厂的特例不能代表整体,约 95% 的数据工程岗位依然由 Python 绝对主导。 - [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 新人入局数据工程应以获得岗位入场券为核心目标,优先学习需求最旺盛的技能以实现渐进式职业发展。 - [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 求职性价比最高的策略是深度吃透 Python 和 PySpark,日后需要深入 JVM 或底层优化时再进阶学习 Scala。 ## Detailed walkthrough ### [00:00](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=0s) Spark 语言之争:从 Scala 原生优势到 PySpark 的追平 在数据工程领域,许多人最初学习 Scala 纯粹是因为 Apache Spark 是用 Scala 编写的。对很多资深工程师来说,使用系统底层原生支持的语言做事往往是最高效、最自然的选择。在过去的很长一段时间里,使用 Spark 可以在 Python 和 Scala 之间做抉择,而在老旧的 Spark 版本中,Scala 的运行表现和开发体验确实“好得多”("way better"),因为它是原生的运行方式,不需要额外的封装与通信开销。 然而,业界的走向却发生了戏剧性的转变——开源社区和各大技术团队在跨语言的转译层(translation layer)上倾注了极其庞大的研发资源与投资。之所以耗费如此大的力气去抹平鸿沟,其核心原因非常现实:“人们真的不想用 Scala,他们从心底里排斥 Scala”("people don't want to use Scala, they really don't want to use Scala")。经过持续的优化演进,尤其是到了 Spark 3 版本之后,Python(PySpark)的执行效率和底层能力基本上已经追平了 Scala,绝大多数场景下两者几乎没有差异。 ```mermaid flowchart TD accTitle: Spark 语言生态演进示意图 accDescr: 展示 Python 与 Scala 在 Spark 中的定位变化,从早期性能差距到如今 PySpark 的平视与普及。 subgraph EarlyStage["早期 Spark 时代"] A["Spark 核心 (Scala 编写)"] --> B["Scala 原生开发 (性能/体验绝对领先)"] A -. 较弱接口.-> C["Python/PySpark (性能与功能相对滞后)"] end subgraph ModernStage["Spark 3+ 时代"] D["大规模转译层研发投入"] --> E["PySpark (性能基本追平原生)"] D --> F["Scala (依然原生,但门槛高)"] end ``` ### [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 大厂例外与就业市场真相:新手应优先押注 PySpark 虽然在大厂体系内存在特例——例如 Netflix 和 Airbnb 等头部科技公司,内部绝大部分数据管道(pipelines)依然坚持严格使用 Scala 编写——但这绝不代表整体行业的真实面貌。放眼整个数据工程就业市场,现实情况是大约 95% 的份额都被 Python 所占据。 对于那些正在学习新技能、试图打破壁垒入行数据领域的新人来说,求职策略应当非常务实:优先学习招聘需求最庞大、岗位供应最充足的技能,以便先拿到入场券,让职业生涯实现平稳起步和循序渐进的增长。因此,最具性价比的切入点就是熟练掌握 Python 以及 Spark(尤其是 PySpark)。只要真正把 PySpark 吃透,随着职业发展和工程深度的增加,后续再去补充学习 Scala 和底层 JVM 生态也完全水到渠成。 - **行业占比悬殊**:除了 Netflix、Airbnb 等少数硅谷大厂坚持核心 pipeline 用 Scala 之外,普通行业场景中 Python 占据了约 95% 的绝对主流。 - **求职优先级**:新手不必一上来就死磕 Scala,优先掌握 Python 和 PySpark 是更容易拿到 Offer、让职业生涯平稳过渡的最优解。 ## Notable quotes > [00:00](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=0s) 许多人最初学习 Scala 纯粹是因为 Apache Spark 是用 Scala 编写的。 > [00:00](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=0s) 在老旧的 Spark 版本中,Scala 的运行表现和开发体验确实“好得多”("way better"),因为它是原生的运行方式,不需要额外的封装与通信开销。 > [00:00](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=0s) 开源社区和各大技术团队在跨语言的转译层(translation layer)上倾注了极其庞大的研发资源与投资。 > [00:00](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=0s) 人们真的不想用 Scala,他们从心底里排斥 Scala("people don't want to use Scala, they really don't want to use Scala")。 > [00:00](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=0s) 尤其是到了 Spark 3 版本之后,Python(PySpark)的执行效率和底层能力基本上已经追平了 Scala,绝大多数场景下两者几乎没有差异。 > [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 虽然在大厂体系内存在特例——例如 Netflix 和 Airbnb 等头部科技公司,内部绝大部分数据管道(pipelines)依然坚持严格使用 Scala 编写——但这绝不代表整体行业的真实面貌。 > [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 放眼整个数据工程就业市场,现实情况是大约 95% 的份额都被 Python 所占据。 > [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 优先学习招聘需求最庞大、岗位供应最充足的技能,以便先拿到入场券,让职业生涯实现平稳起步和循序渐进的增长。 > [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 最具性价比的切入点就是熟练掌握 Python 以及 Spark(尤其是 PySpark)。 > [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 只要真正把 PySpark 吃透,随着职业发展和工程深度的增加,后续再去补充学习 Scala 和底层 JVM 生态也完全水到渠成。 > [00:26](https://www.youtube.com/watch?v=v7ttBGoJSU4&t=26s) 新手不必一上来就死磕 Scala,优先掌握 Python 和 PySpark 是更容易拿到 Offer、让职业生涯平稳过渡的最优解。 ## Mentioned Apache Spark, Scala, Python, PySpark, Netflix, Airbnb, JVM, Spark 3, EcZachly, 课代表立正 ## Video description 这里是课代表的会员: https://www.youtube.com/channel/UC_5lJHgnMP_lb_VpIiXV0hQ/join [Source](https://www.youtube.com/watch?v=v7ttBGoJSU4)

Source quotes

[0:00] 许多人最初学习 Scala 纯粹是因为 Apache Spark 是用 Scala 编写的。 [0:00] 在老旧的 Spark 版本中,Scala 的运行表现和开发体验确实“好得多”("way better"),因为它是原生的运行方式,不需要额外的封装与通信开销。 [0:00] 开源社区和各大技术团队在跨语言的转译层(translation layer)上倾注了极其庞大的研发资源与投资。 [0:00] 人们真的不想用 Scala,他们从心底里排斥 Scala("people don't want to use Scala, they really don't want to use Scala")。 [0:00] 尤其是到了 Spark 3 版本之后,Python(PySpark)的执行效率和底层能力基本上已经追平了 Scala,绝大多数场景下两者几乎没有差异。 [0:26] 虽然在大厂体系内存在特例——例如 Netflix 和 Airbnb 等头部科技公司,内部绝大部分数据管道(pipelines)依然坚持严格使用 Scala 编写——但这绝不代表整体行业的真实面貌。 [0:26] 放眼整个数据工程就业市场,现实情况是大约 95% 的份额都被 Python 所占据。 [0:26] 优先学习招聘需求最庞大、岗位供应最充足的技能,以便先拿到入场券,让职业生涯实现平稳起步和循序渐进的增长。 [0:26] 最具性价比的切入点就是熟练掌握 Python 以及 Spark(尤其是 PySpark)。 [0:26] 只要真正把 PySpark 吃透,随着职业发展和工程深度的增加,后续再去补充学习 Scala 和底层 JVM 生态也完全水到渠成。 [0:26] 新手不必一上来就死磕 Scala,优先掌握 Python 和 PySpark 是更容易拿到 Offer、让职业生涯平稳过渡的最优解。

Source quotes

native ways of doing things people don't want to use Scala not a reflection of Industry gradual increase in your career

Original transcript

[0:00] so Scala I learn it for spark spark is [0:03] written in Scala and I like to use [0:04] native ways of doing things for a long [0:06] time with spark you could choose python [0:08] or Scala in older versions of spark [0:10] Scala was just way better way better [0:13] because it's the native version but [0:14] there's been so much investment in that [0:16] translation layer because people don't [0:18] want to use Scala they really don't want [0:19] to use Scala so now especially if you're [0:21] on spark 3 then python is the same it's [0:25] mostly the same with the exception of [0:27] like big Tech at Netflix and at Airbnb [0:30] they only write pipelines in Scola for [0:32] the most part but that is not a [0:33] reflection of Industry cuz in industry [0:35] it's like 95% python if you're learning [0:38] a skill and trying to break in you want [0:39] to learn the skill where there's the big [0:41] abundance of jobs just so you can get in [0:44] you want to have more of a gradual [0:46] increase in your career yeah to do the [0:48] gradual increase You Want To Learn [0:49] Python and you want to learn spark yeah [0:51] for sure and especially pie spark once [0:53] you learn P spark you can easily learn [0:55] the other stuff as well over time