A demo to apply nsq consumer as spark consumer. Consumer receives messages from NSQd and store with spark streaming API.
Reference to dev.properties files for configuration of nsq receiver. Try playing with demo
NSQExample Usage: NSQExample <checkpoint-directory> <parallism>
The difference of the two is whether “spark.streaming.receiver.writeAheadLog.enable” is set to true.
unreliable version is set to false and let the client ack messages automatically, and reliable one write messages
via WALog, and ack messages once messages are stored to disk.
One parameter needs mention is nsq.rdy, it works as throttle strategy.
spark nsq consumer
A demo to apply nsq consumer as spark consumer. Consumer receives messages from NSQd and store with spark streaming API. Reference to dev.properties files for configuration of nsq receiver. Try playing with demo NSQExample
Usage:
NSQExample <checkpoint-directory> <parallism>Maven dependency
CAUTION for nsq-client before 2.4.2
after 2.4.2
Instrument
This connector consists of two version
The difference of the two is whether “spark.streaming.receiver.writeAheadLog.enable” is set to true.
unreliable version is set to false and let the client ack messages automatically, and reliable one write messages via WALog, and ack messages once messages are stored to disk.
One parameter needs mention is nsq.rdy, it works as throttle strategy.