You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Luis Alves (JIRA)" <ji...@apache.org> on 2016/01/31 22:17:39 UTC

[jira] [Created] (SPARK-13106) KafkaUtils.createDirectStream method with messageHandler and topics

Luis Alves created SPARK-13106:
----------------------------------

             Summary: KafkaUtils.createDirectStream method with messageHandler and topics
                 Key: SPARK-13106
                 URL: https://issues.apache.org/jira/browse/SPARK-13106
             Project: Spark
          Issue Type: Bug
          Components: Streaming
            Reporter: Luis Alves


Regarding the KafkaUtils.createDirectStream method here: https://github.com/apache/spark/blob/master/external/kafka/src/main/scala/org/apache/spark/streaming/kafka/KafkaUtils.scala#L473

I purpose to also allow to pass the a messageHandler as argument instead of using the one that is setted inside the method:

{code}
 val messageHandler = (mmd: MessageAndMetadata[K, V]) => (mmd.key, mmd.message)
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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