GitHub user zhangxinyu1 opened a pull request:
https://github.com/apache/spark/pull/15197
[SPARK-17631] [SQL] Add HttpStreamSink for structured streaming. Streaming
query results can be sinked to http server
## What changes were proposed in this pull request?
Add a class HttpStreamSink for structured streaming. This class extends
StreamSinkProvider and DataSourceRegister. Streaming query results can be
sinked to http server if we configure DataStreamWrite with
.format("http").option("url", yourHttpUrl).
e.g.
val query = counts.writeStream
.outputMode("append")
.format("http")
.option("url", "yourHttpUrl")
.start()
## How was this patch tested?
Use
[quick-example](http://spark.apache.org/docs/latest/structured-streaming-programming-guide.html#quick-example)
and configure DataStreamWriter with .format("http").option("url", yourHttpUrl)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zhangxinyu1/spark
feature-http-stream-sink-for-structured-streaming
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/15197.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #15197
----
commit 93371d8967916c8432198426ba281ec56c07c532
Author: zhangxinyu1 <[email protected]>
Date: 2016-09-22T09:41:32Z
Add HttpStreamSink. Streaming query results can be sinked to http server
----
---
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]