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 마스터하기
293
19
장
스파크 스트리밍 소스
이제
sensorDataGeneratorRDD
를 사용하여
ConstantInputDStream
을 생성할 수 있다.
import
org
.
apache
.
spark
.
streaming
.
dstream
.
ConstantInputDStream
//
ssc
는
활성
스트리밍
컨텍스트다
.
val
stream
:
DStream
[()
=
>
String
]
=
new
ConstantInputDStream
(
ssc
,
sensorDataGeneratorRDD
)
DStream
[()
=
>
String
]
의 타입 서명을 주목해서 살펴보자. 값을 구체화하기 위해서는 그 함수
를 평가할 필요가 있다. 이러한 변환이
DStream
계통의 일부임을 감안할 때 이는 각 배치 간격
에서 발생하며, 매번 새로운 값을 효과적으로 생성한다.
val
materializedValues
=
stream
.
map
(
generatorFunc
=
>
generatorFunc
())
스파크 셸을 사용하는 경우 출력 작업을 사용하고
streamingContext
를 시작하여 이러한 값을
관찰할 수 있다.
materializedValues
.
print
()
//
출력
연산
ssc
.
start
-------------------------------------------
Time
:
1550491831000
ms
------------------------------------------- ...
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