Skip to Content
Spark를 사용한 데이터 알고리즘
book

Spark를 사용한 데이터 알고리즘

by Mahmoud Parsian
May 2025
Beginner to intermediate
438 pages
6h 57m
Korean
O'Reilly Media, Inc.
Content preview from Spark를 사용한 데이터 알고리즘

1장. Spark 및 PySpark 소개

이 작품은 AI를 사용하여 번역되었습니다. 여러분의 피드백과 의견을 환영합니다: translation-feedback@oreilly.com

Spark는 빅데이터 애플리케이션을 위한 속도, 사용 편의성, 확장성을 목표로 하는 대규모 데이터 처리를 위한 강력한 분석 엔진입니다. 빅데이터를 매일 처리하는 많은 회사에서 널리 채택하고 있는 검증된 기술입니다. Spark의 "기본" 언어는 Scala이지만(대부분의 Spark는 Scala로 개발됨), Java, Python 및 R로 된 고급 API도 제공합니다.

이 책에서는 Spark 프로그래밍 모델을 Python에 노출하는 API인 PySpark를 통해 Python을 사용할 것입니다. Python은 가장 접근하기 쉬운 프로그래밍 언어이고 Spark는 강력하고 표현력이 풍부한 API이기 때문에 PySpark의 단순성은 우리에게 최고의 선택입니다. PySpark는 다음과 같은 두 가지 중요한 기능을 제공하는 Python 프로그래밍 언어의 Spark용 인터페이스입니다:

  • 이를 통해 Python API를 사용하여 Spark 애플리케이션을 작성할 수 있습니다.

  • 분산환경에서 데이터를 대화형으로 분석할 수 있는 PySpark 셸을 제공합니다.

이 장의 목적은 Spark 생태계의 주요 구성 요소인 PySpark를 소개하고 ETL 작업, 수십억 개의 문서 색인, 수백만 개의 게놈 수집, 머신 러닝, 그래프 데이터 분석, DNA 데이터 분석 등과 같은 빅데이터 작업에 효과적으로 사용할 수 있음을 보여드리기 위한 것입니다. 먼저 Spark와 PySpark 아키텍처를 살펴보고, PySpark의 표현력을 보여줄 수 있는 예제를 제공하겠습니다. Spark의 핵심 기능(변환 및 동작)과 개념에 대한 개요를 제시하여 Spark와 PySpark를 바로 사용할 수 있는 역량을 갖추도록 하겠습니다. Spark의 주요 데이터 추상화는 탄력적 분산 데이터세트(RDD), 데이터프레임, 데이터세트입니다. 보시다시피, 데이터(Hadoop 파일, Amazon S3 개체, Linux 파일, 컬렉션 데이터 구조, 관계형 데이터베이스 테이블 등으로 저장된 데이터)를 RDD와DataFrames의 모든 조합으로 표현할 수 있습니다.

데이터가 Spark 데이터 추상화로 표현되면, 원하는 최종 형태가 될 때까지 데이터에 변환을 적용하고 새로운 데이터 추상화를 만들 수 있습니다. Spark의 변환(예: map() 및 reduceByKey())을 사용하여 원하는 결과를 얻을 때까지 데이터를 한 형태에서 다른 형태로 변환할 수 있습니다. 이러한 데이터 추상화에 대해서는 곧 설명해 드리겠지만, 먼저 데이터 분석에 Spark가 가장 적합한 이유에 대해 좀 더 자세히 살펴보겠습니다.

데이터 분석을 위해 Spark를 사용해야 하는 이유

Spark는 대규모 데이터 처리에 사용할 수 있는 강력한 분석 엔진입니다. Spark를 ...

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

데이터 엔지니어를 위한 97가지 조언

데이터 엔지니어를 위한 97가지 조언

Tobias Macey, 임혜연(Lim Hye Yeon)
실무자를 위한 그래프 데이터 활용법

실무자를 위한 그래프 데이터 활용법

마티아스 브뢰헬러, 데니즈 고즈넬

Publisher Resources

ISBN: 9798341655317