Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
1.3.1
-
None
-
None
-
Web
Description
https://spark.apache.org/docs/latest/streaming-programming-guide.html
Here word count example for java is incorrect. It should be mapToPair instead of map.
Incorrect:
JavaPairDStream<String, Integer> pairs = words.map( new PairFunction<String, String, Integer>() { @Override public Tuple2<String, Integer> call(String s) throws Exception { return new Tuple2<String, Integer>(s, 1); } });
Attachments
Issue Links
- duplicates
-
SPARK-4046 Incorrect Java example on site
- Resolved
- is a clone of
-
SPARK-4046 Incorrect Java example on site
- Resolved