RE: kafka offset commit in spark streaming 1.2

2015-07-06 Thread Shao, Saisai
Please see the inline comments. From: Shushant Arora [mailto:shushantaror...@gmail.com] Sent: Monday, July 6, 2015 8:51 PM To: Shao, Saisai Cc: user Subject: Re: kafka offset commit in spark streaming 1.2 So If WAL is disabled, how developer can commit offset explicitly in spark streaming app

Re: kafka offset commit in spark streaming 1.2

2015-07-06 Thread Shushant Arora
.com] > *Sent:* Monday, July 6, 2015 8:30 PM > *To:* Shao, Saisai > *Cc:* user > *Subject:* Re: kafka offset commit in spark streaming 1.2 > > > > And what if I disable WAL and use replication of receiver data using > StorageLevel.MEMORY_ONLY2(). > Will it commit offset

RE: kafka offset commit in spark streaming 1.2

2015-07-06 Thread Shao, Saisai
commitment mechanism is actually a timer way, so it is asynchronized with replication. From: Shushant Arora [mailto:shushantaror...@gmail.com] Sent: Monday, July 6, 2015 8:30 PM To: Shao, Saisai Cc: user Subject: Re: kafka offset commit in spark streaming 1.2 And what if I disable WAL and use

Re: kafka offset commit in spark streaming 1.2

2015-07-06 Thread Shushant Arora
t you’re setting with autocommit.enable, internally Spark > Streaming will set it to false to turn off autocommit mechanism. > > > > Thanks > > Jerry > > > > *From:* Shushant Arora [mailto:shushantaror...@gmail.com] > *Sent:* Monday, July 6, 2015 8:11 PM > *To:* user > *

RE: kafka offset commit in spark streaming 1.2

2015-07-06 Thread Shao, Saisai
autocommit mechanism. Thanks Jerry From: Shushant Arora [mailto:shushantaror...@gmail.com] Sent: Monday, July 6, 2015 8:11 PM To: user Subject: kafka offset commit in spark streaming 1.2 In spark streaming 1.2 , Is offset of kafka message consumed are updated in zookeeper only after writing in WAL

kafka offset commit in spark streaming 1.2

2015-07-06 Thread Shushant Arora
In spark streaming 1.2 , Is offset of kafka message consumed are updated in zookeeper only after writing in WAL if WAL and checkpointig are enabled or is it depends upon kafkaparams while initialing the kafkaDstream. Map kafkaParams = new HashMap(); kafkaParams.put("zookeeper.connect","ip:2181");