Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
스파크를 활용한 실시간 처리: 실시간 데이터 처리를 위한 고수준 스트리밍 API 마스터하기
by
김인범
,
제러드 마스
,
프랑수아 가릴로
April 2021
Beginner to intermediate
472 pages
9h 23m
Korean
Hanbit Media, Inc.
Content preview from
스파크를 활용한 실시간 처리: 실시간 데이터 처리를 위한 고수준 스트리밍 API 마스터하기
294
3
부
스파크 스트리밍
19.5
소켓 소스
소켓 소스는
TCP
클라이언트 역할을 하고 리시버 기반 소스로 구현되며, 리시버 프로세스가
TCP
클라이언트 연결을 인스턴스화하고 관리한다. 네트워크 위치에서 실행 중인
TCP
서버에
연결되며,
host
:
port
조합으로 식별된다.
소켓 소스는
sparkContext
의 메서드로 사용할 수 있다. 일반적인 형태는 다음과 같다.
//
ssc
는
SparkContext
의
인스턴스다
.
val
stream
:
DStream
[
Type
]
=
ssc
.
socketStream
[
Type
](
hostname
,
port
,
converter
,
storageLevel
)
소켓 소스의 파라미터는 다음과 같다.
hostname
:
String
연결할 서버의 네트워크 호스트
port
:
Int
연결할 네트워크 포트
converter
:
(
InputStream
)
=
>
Iterator
[
Type
]
입력 스트림을 지정된 대상 타입으로 디코딩할 수 있는 함수
storageLevel
:
StorageLevel
이 소스에 의해 수신된 데이터에 사용할
StorageLevel
. 권장되는 시작점은
StorageLevel
.
MEMORY
_
AND
_
DISK
_
SER
_
2
이며 이는 다른 소스들의 공통적인 기본값이다.
UTF
-
8
문자셋을 사용하는 텍스트 스트림 인코딩을 위한 단순화된 버전도 있다. 이 ...
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.
Start your free trial
You might also like
한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것
한선용, 이선 브라운
자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
조너선 슈나이더
머신러닝 디자인 패턴: 효율적인 머신러닝 파이프라인과 MLOps를 구축하는 30가지 디자인 패턴
맹윤호, 임지순, 발리아파 락슈마난, 세라 로빈슨, 마이클 먼
자바로 배우는 핵심 자료구조와 알고리즘: 기술 면접에 필요한 실용주의 자료구조와 알고리즘
유동환, 앨런 B. 다우니
Publisher Resources
ISBN: 9791162243961