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

    https://github.com/apache/spark/pull/15679#discussion_r85638966
  
    --- Diff: docs/streaming-kafka-0-10-integration.md ---
    @@ -44,6 +44,42 @@ For Scala/Java applications using SBT/Maven project 
definitions, link your strea
     Each item in the stream is a 
[ConsumerRecord](http://kafka.apache.org/0100/javadoc/org/apache/kafka/clients/consumer/ConsumerRecord.html)
     </div>
     <div data-lang="java" markdown="1">
    +   import java.util.*;
    +   import org.apache.spark.SparkConf;
    +   import org.apache.spark.TaskContext;
    +   import org.apache.spark.api.java.*;
    +   import org.apache.spark.api.java.function.*;
    +   import org.apache.spark.streaming.api.java.*;
    +   import org.apache.spark.streaming.kafka010.*;
    +   import org.apache.kafka.clients.consumer.ConsumerRecord;
    +   import org.apache.kafka.common.TopicPartition;
    +   import org.apache.kafka.common.serialization.StringDeserializer;
    +   import scala.Tuple2;
    +   
    +   Map<String, Object> kafkaParams = new HashMap<String, Object>();
    --- End diff --
    
    Q: is the map value type really Object for the Kafka API?


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