Big Data Analytics by Unknown
Author:Unknown
Language: eng
Format: epub
Publisher: Packt Publishing
Let's check the lag between the offsets of Kafka and the Spark Streaming consumer using the following command:
bin/kafka-consumer-offset-checker.sh --zookeeper localhost:2181 --topic test --group spark-streaming-consumer Group Topic Pid Offset logSize Lag spark-streaming-consumer test 0 18 18 0 spark-streaming-consumer test 1 16 16 0
Note
Note that the lag is 0 for both partitions.
Direct approach (no receivers)
This was introduced in Spark 1.3 to ensure exactly once semantics of receiving data even in case of failures. The direct approach periodically queries Kafka for the latest offsets in each topic and partition, and accordingly defines the offset ranges to process in each batch as shown in Figure 5.6.
Figure 5.6: Spark Streaming with Kafka direct approach
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Adulting by Kelly Williams Brown(3670)
Figure Drawing for Artists by Steve Huston(2798)
Draw Your Day by Samantha Dion Baker(2707)
Drawing Cutting Edge Anatomy by Christopher Hart(2676)
Drawing Shortcuts: Developing Quick Drawing Skills Using Today's Technology by Leggitt Jim(2532)
Make Comics Like the Pros by Greg Pak(2423)
Draw to Win: A Crash Course on How to Lead, Sell, and Innovate With Your Visual Mind by Dan Roam(2277)
How Proust Can Change Your Life by Alain De Botton(2261)
Day by Elie Wiesel(2242)
0041152001443424520 .pdf by Unknown(2220)
How The Mind Works by Steven Pinker(2213)
Rapid Viz: A New Method for the Rapid Visualization of Ideas by Kurt Hanks & Larry Belliston(2195)
Modern Cartooning by Christopher Hart(2188)
Poses for Artists Volume 2 - Standing Poses: An essential reference for figure drawing and the human form. (Inspiring Art and Artists) by Justin Martin(2144)
Draw-A-Saurus by James Silvani(2105)
Learn Drawing Quickly by Sharon Finmark(2089)
Tattoo Art by Doralba Picerno(2083)
Poses for Artists - Dynamic & Sitting: An essential reference for figure drawing and the human form (Inspiring Art and Artists Book 1) by Justin R Martin(2063)
Drawing and Painting Birds by Tim Wootton(2001)