You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/streaming-kinesis-integration.md
+69-39Lines changed: 69 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,41 +24,58 @@ A Kinesis stream can be set up at one of the valid Kinesis endpoints with 1 or m
24
24
For Python applications, you will have to add this above library and its dependencies when deploying your application. See the *Deploying* subsection below.
25
25
**Note that by linking to this library, you will include [ASL](https://aws.amazon.com/asl/)-licensed code in your application.**
26
26
27
-
2.**Programming:** In the streaming application code, import `KinesisUtils` and create the input DStream of byte array as follows:
27
+
2.**Programming:** In the streaming application code, import `KinesisInputDStream` and create the input DStream of byte array as follows:
See the [API docs](api/scala/index.html#org.apache.spark.streaming.kinesis.KinesisInputDStream)
40
48
and the [example]({{site.SPARK_GITHUB_URL}}/tree/master/external/kinesis-asl/src/main/scala/org/apache/spark/examples/streaming/KinesisWordCountASL.scala). Refer to the [Running the Example](#running-the-example) subsection for instructions on how to run the example.
See the [API docs](api/java/index.html?org/apache/spark/streaming/kinesis/KinesisUtils.html)
53
70
and the [example]({{site.SPARK_GITHUB_URL}}/tree/master/external/kinesis-asl/src/main/java/org/apache/spark/examples/streaming/JavaKinesisWordCountASL.java). Refer to the [Running the Example](#running-the-example) subsection for instructions to run the example.
54
71
55
72
</div>
56
73
<div data-lang="python" markdown="1">
57
-
from pyspark.streaming.kinesis import KinesisUtils, InitialPositionInStream
74
+
from pyspark.streaming.kinesis import KinesisUtils, InitialPositionInStream
See the [API docs](api/python/pyspark.streaming.html#pyspark.streaming.kinesis.KinesisUtils)
64
81
and the [example]({{site.SPARK_GITHUB_URL}}/tree/master/external/kinesis-asl/src/main/python/examples/streaming/kinesis_wordcount_asl.py). Refer to the [Running the Example](#running-the-example) subsection for instructions to run the example.
@@ -70,27 +87,40 @@ A Kinesis stream can be set up at one of the valid Kinesis endpoints with 1 or m
0 commit comments