diff options
author | Jagadeesan <as2@us.ibm.com> | 2016-08-13 11:25:03 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-08-13 11:25:03 +0100 |
commit | e46cb78b3b9fd04a50b5ae50f360db612d656a48 (patch) | |
tree | 484f9602ab6038fd876a7fb1499a6bb7e2e47b47 /docs/streaming-custom-receivers.md | |
parent | 91f2735a180f0af1f15303fd0a32633dfd1c1fe0 (diff) | |
download | spark-e46cb78b3b9fd04a50b5ae50f360db612d656a48.tar.gz spark-e46cb78b3b9fd04a50b5ae50f360db612d656a48.tar.bz2 spark-e46cb78b3b9fd04a50b5ae50f360db612d656a48.zip |
[SPARK-12370][DOCUMENTATION] Documentation should link to examples …
## What changes were proposed in this pull request?
When documentation is built is should reference examples from the same build. There are times when the docs have links that point to files in the GitHub head which may not be valid on the current release. Changed that in URLs to make them point to the right tag in git using ```SPARK_VERSION_SHORT```
…from its own release version] [Streaming programming guide]
Author: Jagadeesan <as2@us.ibm.com>
Closes #14596 from jagadeesanas2/SPARK-12370.
Diffstat (limited to 'docs/streaming-custom-receivers.md')
-rw-r--r-- | docs/streaming-custom-receivers.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/streaming-custom-receivers.md b/docs/streaming-custom-receivers.md index fae5901e8d..117996db9d 100644 --- a/docs/streaming-custom-receivers.md +++ b/docs/streaming-custom-receivers.md @@ -181,7 +181,7 @@ val words = lines.flatMap(_.split(" ")) ... {% endhighlight %} -The full source code is in the example [CustomReceiver.scala](https://github.com/apache/spark/blob/master/examples/src/main/scala/org/apache/spark/examples/streaming/CustomReceiver.scala). +The full source code is in the example [CustomReceiver.scala]({{site.SPARK_GITHUB_URL}}/blob/v{{site.SPARK_VERSION_SHORT}}/examples/src/main/scala/org/apache/spark/examples/streaming/CustomReceiver.scala). </div> <div data-lang="java" markdown="1"> @@ -193,7 +193,7 @@ JavaDStream<String> words = lines.flatMap(new FlatMapFunction<String, String>() ... {% endhighlight %} -The full source code is in the example [JavaCustomReceiver.java](https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/streaming/JavaCustomReceiver.java). +The full source code is in the example [JavaCustomReceiver.java]({{site.SPARK_GITHUB_URL}}/blob/v{{site.SPARK_VERSION_SHORT}}/examples/src/main/java/org/apache/spark/examples/streaming/JavaCustomReceiver.java). </div> </div> |