Skip to content

Commit ff56973

Browse files
committed
Fixing mis-numbered callouts in a few code examples
1 parent a6b561b commit ff56973

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/src/reference/asciidoc/core/spark.adoc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,6 @@ ssc.start() <5>
694694
<1> +EsSparkStreaming+ import
695695
<2> Define a case class named +Trip+
696696
<3> Create a +DStream+ around the +RDD+ of +Trip+ instances
697-
<4> Index the +RDD+ explicitly through +EsSpark+
698697
<4> Configure the +DStream+ to be indexed explicitly through +EsSparkStreaming+
699698
<5> Start the streaming process
700699

@@ -848,16 +847,16 @@ Queue<JavaRDD<String>> microbatches = new LinkedList<JavaRDD<String>>(); <2
848847
microbatches.add(stringRDD);
849848
JavaDStream<String><3> stringDStream = jssc.queueStream(microbatches);
850849
851-
JavaEsSparkStreaming.saveJsonToEs(stringRDD, "spark/json-trips"); <3>
850+
JavaEsSparkStreaming.saveJsonToEs(stringRDD, "spark/json-trips"); <4>
852851
853-
jssc.start() <4>
852+
jssc.start() <5>
854853
----
855854

856855
<1> example of an entry within the +DStream+ - the JSON is _written_ as is, without any transformation
857856
<2> creating an +RDD+, placing it into a queue, and creating a +DStream+ out of the queued ++RDD++s, treating each as a microbatch.
858-
<2> notice the +JavaDStream<String>+ signature
859-
<3> configure stream to index the JSON data through the dedicated +saveJsonToEs+ method
860-
<4> launch stream job
857+
<3> notice the +JavaDStream<String>+ signature
858+
<4> configure stream to index the JSON data through the dedicated +saveJsonToEs+ method
859+
<5> launch stream job
861860

862861
[float]
863862
[[spark-streaming-write-dyn]]
@@ -1085,7 +1084,7 @@ jssc.start();
10851084
<7> Tuple associating +sfo+ and its metadata
10861085
<8> Create a +JavaDStream+ out of the +JavaRDD+
10871086
<9> Repack the +JavaDStream+ into a +JavaPairDStream+ by mapping the +Tuple2+ identity function over it.
1088-
<8> +saveToEsWithMeta+ invoked over the +JavaPairDStream+ containing documents and their respective metadata
1087+
<10> +saveToEsWithMeta+ invoked over the +JavaPairDStream+ containing documents and their respective metadata
10891088

10901089
[float]
10911090
[[spark-streaming-type-conversion]]

0 commit comments

Comments
 (0)