-
- Downloads
[SPARK-2103][Streaming] Change to ClassTag for KafkaInputDStream and fix reflection issue
This PR updates previous Manifest for KafkaInputDStream's Decoder to ClassTag, also fix the problem addressed in [SPARK-2103](https://issues.apache.org/jira/browse/SPARK-2103). Previous Java interface cannot actually get the type of Decoder, so when using this Manifest to reconstruct the decode object will meet reflection exception. Also for other two Java interfaces, ClassTag[String] is useless because calling Scala API will get the right implicit ClassTag. Current Kafka unit test cannot actually verify the interface. I've tested these interfaces in my local and distribute settings. Author: jerryshao <saisai.shao@intel.com> Closes #1508 from jerryshao/SPARK-2103 and squashes the following commits: e90c37b [jerryshao] Add Mima excludes 7529810 [jerryshao] Change Manifest to ClassTag for KafkaInputDStream's Decoder and fix Decoder construct issue when using Java API
Showing
- external/kafka/src/main/scala/org/apache/spark/streaming/kafka/KafkaInputDStream.scala 7 additions, 7 deletions.../org/apache/spark/streaming/kafka/KafkaInputDStream.scala
- external/kafka/src/main/scala/org/apache/spark/streaming/kafka/KafkaUtils.scala 5 additions, 11 deletions...n/scala/org/apache/spark/streaming/kafka/KafkaUtils.scala
- project/MimaExcludes.scala 6 additions, 1 deletionproject/MimaExcludes.scala
Loading
Please register or sign in to comment