spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Takeshi Yamamuro (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-18942) Support output operations for kinesis
Date Fri, 30 Dec 2016 00:41:58 GMT

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

Takeshi Yamamuro commented on SPARK-18942:
------------------------------------------

okay, I'll put 'won't fix' in this ticket and thanks!
Since I make some kinds of kinesis integration in my repo (https://github.com/maropu/spark-kinesis-sql-asl#output-operation-for-spark-streaming),
I'll put this in SparkPackage in future.

> Support output operations for kinesis
> -------------------------------------
>
>                 Key: SPARK-18942
>                 URL: https://issues.apache.org/jira/browse/SPARK-18942
>             Project: Spark
>          Issue Type: New Feature
>          Components: DStreams
>    Affects Versions: 2.0.2
>            Reporter: Takeshi Yamamuro
>            Priority: Trivial
>
> Spark does not support output operations (e.g. DStream#saveAsTextFile) for Kinesis. So,
officially supporting this is useful for some AWS users, I think. An usage of the output operations
is assumed as follows;
> {code}
> // Import a class that includes an output function
> scala> import org.apache.spark.streaming.kinesis.KinesisDStreamFunctions._
> // Create a DStream
> scala> val stream: DStream[String] = ...
> // Define a handler to convert the DStream type for output
> scala> val msgHandler = (s: String) => s.getBytes("UTF-8")
> // Define the output operation
> scala> kinesisStream.count().saveAsKinesisStream(streamName, endpointUrl, msgHandler)
> {code}
> A prototype I made is here: https://github.com/apache/spark/compare/master...maropu:OutputOpForKinesis



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


Mime
View raw message