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

    https://github.com/apache/spark/pull/14340#discussion_r72248712
  
    --- Diff: 
external/kafka-0-10/src/main/scala/org/apache/spark/streaming/kafka010/KafkaUtils.scala
 ---
    @@ -221,22 +222,20 @@ private[kafka010] class KafkaUtilsPythonHelper 
extends Logging {
         new JavaRDD(rdd)
       }
     
    -  private def fixKafkaParams(kafkaParams: ju.Map[String, Object]): Unit = {
    +  private def validateKafkaParams(kafkaParams: ju.Map[String, Object]): 
Unit = {
         val decoder = classOf[ByteArrayDeserializer].getCanonicalName
     
         val keyDecoder = 
kafkaParams.get(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG)
    -    if (keyDecoder != null && keyDecoder != decoder) {
    -      logWarning(s"${ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG} 
$keyDecoder is not supported " +
    -        s"for python Kafka API, overriding with $decoder")
    +    if (keyDecoder == null || keyDecoder != decoder) {
    +      throw new 
SparkException(s"${ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG} $keyDecoder " +
    +        s"is not supported for python Kafka API, please configured with 
$decoder")
    --- End diff --
    
    "configured" should be "configure"


---
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