GitHub user jerryshao opened a pull request:

    https://github.com/apache/spark/pull/1508

    [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.
    
     

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jerryshao/apache-spark SPARK-2103

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/1508.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1508
    
----
commit 58f2a1ab4281290c3f214a672fa6d58d33925748
Author: jerryshao <[email protected]>
Date:   2014-07-21T06:15:41Z

    Change Manifest to ClassTag for KafkaInputDStream's Decoder and fix Decoder 
construct issue when using Java API

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to