forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-30901][DOCS] Fix doc exemple with deprecated codes
### What changes were proposed in this pull request? Previous exemple given for spark-streaming-kinesis was true for Apache Spark < 2.3.0. After that the method used in exemple became deprecated: deprecated("use initialPosition(initialPosition: KinesisInitialPosition)", "2.3.0") def initialPositionInStream(initialPosition: InitialPositionInStream) This PR updates the doc on rewriting exemple in Scala/Java (remain unchanged in Python) to adapt Apache Spark 2.4.0 + releases. ### Why are the changes needed? It introduces some confusion for developers to test their spark-streaming-kinesis exemple. ### Does this PR introduce any user-facing change? No ### How was this patch tested? In my opinion, the change is only about the documentation level, so I did not add any special test. Closes apache#27652 from supaggregator/SPARK-30901. Authored-by: XU Duo <Duo.XU@canal-plus.com> Signed-off-by: Sean Owen <srowen@gmail.com>
- Loading branch information
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters