You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/04/23 22:02:00 UTC

[jira] [Commented] (SPARK-24056) Make consumer creation lazy in Kafka source for Structured streaming

    [ https://issues.apache.org/jira/browse/SPARK-24056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16448925#comment-16448925 ] 

Apache Spark commented on SPARK-24056:
--------------------------------------

User 'tdas' has created a pull request for this issue:
https://github.com/apache/spark/pull/21134

> Make consumer creation lazy in Kafka source for Structured streaming
> --------------------------------------------------------------------
>
>                 Key: SPARK-24056
>                 URL: https://issues.apache.org/jira/browse/SPARK-24056
>             Project: Spark
>          Issue Type: Bug
>          Components: Structured Streaming
>    Affects Versions: 2.4.0
>            Reporter: Tathagata Das
>            Assignee: Tathagata Das
>            Priority: Minor
>
> Currently, the driver side of the Kafka source (i.e. KafkaMicroBatchReader) eagerly creates a consumer as soon as the Kafk aMicroBatchReader is created. However, we create dummy KafkaMicroBatchReader to get the schema and immediately stop it. Its better to make the consumer creation lazy, it will be created on the first attempt to fetch offsets using the KafkaOffsetReader.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org