Spark 1.6.4
▶ Scala 2.10.x
JavaDStream<String> B = A.flatMap(new FlatMapFunction<String, String>() { public Iterable<String> call(String line) { B.foreachRDD(new Function<JavaRDD<String>, Void>() { |
Spark 2.1.0
▶ Scala 2.11.x
JavaDStream<String> B = A.flatMap(new FlatMapFunction<String, String>() { A.foreachRDD(new VoidFunction<JavaRDD<String>>() { }); |
'spark - python - R' 카테고리의 다른 글
[SPARK] flatMap - JavaReceiverInputDStream (0) | 2017.05.30 |
---|---|
[SPARK] window operation- spark streaming (0) | 2017.05.29 |
[SPARK] Mongo Mysql foreachRDD (0) | 2017.04.20 |
[R] R Studio Server 설치 (0) | 2017.04.20 |
[SPARK]개별 평균 & Spark Streaming (0) | 2017.04.20 |