Skip to content

Commit

Permalink
[SPARK-21168] KafkaRDD should always set kafka clientId.
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-zhaokun committed Dec 5, 2017
1 parent 3887b7e commit 5071789
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ class KafkaRDD[

private def fetchBatch: Iterator[MessageAndOffset] = {
val req = new FetchRequestBuilder()
.clientId(consumer.clientId)
.addFetch(part.topic, part.partition, requestOffset, kc.config.fetchMessageMaxBytes)
.build()
val resp = consumer.fetch(req)
Expand Down

0 comments on commit 5071789

Please sign in to comment.