spark-hive-streaming-sink | save Spark Structured Streaming DataFrame
kandi X-RAY | spark-hive-streaming-sink Summary
kandi X-RAY | spark-hive-streaming-sink Summary
Spark Hive Streaming Sink ===. A sink to save Spark Structured Streaming DataFrame into Hive table. The details of Hive Streaming could be referred [here] Please be aware a valid hive-site.xml and keytab should be accessible from executor side, which means user should pass it via --files.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of spark-hive-streaming-sink
spark-hive-streaming-sink Key Features
spark-hive-streaming-sink Examples and Code Snippets
Community Discussions
Trending Discussions on spark-hive-streaming-sink
QUESTION
I am using sink to save Spark(2.3) Structured Streaming DataFrame into Hive table with a custom sink implementation.
The code is as follows.
...ANSWER
Answered 2018-Aug-14 at 09:51There are two ways to solve your problem:
Delete/clear your checkpoint:
/checkpoints/employee/checkpoint
on your machineUsing the other source that maintains offset, like Kafka
The reason you meet this issue is that the socket doesn't maintain offset information.
When you restart your job which receives input data from socket 9999
, the first thing that your job does is trying to recover the state from /checkpoints/employee/checkpoint
, and it finds that your current offset that has been recorded is 1
. Then you input other messages to socket 9999
, your job finds that the offset from socket 9999
is 0
. So it throws this exception.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spark-hive-streaming-sink
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page