Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17752#discussion_r113074969
  
    --- Diff: 
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaSourceProvider.scala
 ---
    @@ -213,46 +203,6 @@ private[kafka010] class KafkaSourceProvider extends 
DataSourceRegister
             ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG -> 
classOf[ByteArraySerializer].getName)
       }
     
    -  private def kafkaParamsForDriver(specifiedKafkaParams: Map[String, 
String]) =
    -    ConfigUpdater("source", specifiedKafkaParams)
    -      .set(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, deserClassName)
    -      .set(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, deserClassName)
    -
    -      // Set to "earliest" to avoid exceptions. However, KafkaSource will 
fetch the initial
    -      // offsets by itself instead of counting on KafkaConsumer.
    -      .set(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "earliest")
    -
    -      // So that consumers in the driver does not commit offsets 
unnecessarily
    -      .set(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, "false")
    -
    -      // So that the driver does not pull too much data
    -      .set(ConsumerConfig.MAX_POLL_RECORDS_CONFIG, new 
java.lang.Integer(1))
    -
    -      // If buffer config is not set, set it to reasonable value to work 
around
    -      // buffer issues (see KAFKA-3135)
    -      .setIfUnset(ConsumerConfig.RECEIVE_BUFFER_CONFIG, 65536: 
java.lang.Integer)
    -      .build()
    -
    -  private def kafkaParamsForExecutors(
    --- End diff --
    
    move to `object KafkaSourceProvider`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to