Commit eb81be6
Cherry-pick two commits for Spark-672 (apache#661)
* Update package.scala (apache#650)
* Update package.scala
- We need to change the API access point to use `InputDStream` instead of `DirectKafkaInputDStream` since this is private, but it extends `InputDStream`
- The same functionality is there and the same principles apply: We can commit offsets directly without the boilerplate code but as always, it can only be done on the original Stream and NOT in the transformations
* Update package.scala
* Branch 2.4.4 mapr offsets fix (apache#654)
* Update package.scala
- We need to change the API access point to use `InputDStream` instead of `DirectKafkaInputDStream` since this is private, but it extends `InputDStream`
- The same functionality is there and the same principles apply: We can commit offsets directly without the boilerplate code but as always, it can only be done on the original Stream and NOT in the transformations
* Update package.scala
* Using InputDStream of ConsumerRecord
Co-authored-by: Mikhail Gorbov <[email protected]>
Co-authored-by: Nicolas A Perez <[email protected]>
Co-authored-by: Mikhail Gorbov <[email protected]>1 parent 320f4e2 commit eb81be6
File tree
1 file changed
+5
-3
lines changed- external/kafka-0-10/src/main/scala/org/apache/spark/streaming/kafka010
1 file changed
+5
-3
lines changedLines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
89 | | - | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | | - | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
0 commit comments