Kafka Streams does create objects of TimestampExtractor class internally and thus you should not provide an instance of MyTimestampExtractor but the class object or name.
Is there any problem for you with this approach?
-Matthias
On 12/26/16 2:49 PM, Ofir Sharony wrote:
> Hi guys,
>
> I have an issue initializing a TimestampExtractor in KafkaStreams.
>
> The following (static) initialization works great:
> *config.put("timestamp.extractor", MyTimestampExtractor.class.getName());*
>
> But when trying to initialize with an instance of the class as follows:
> *config.put("timestamp.extractor", new MyTimestampExtractor());*
>
> I get the following error:
>
> Invalid value
> com.myheritage.data.kafkastreamproc.CdcProcessor$MyTimestampExtractor@50c87b21
> for configuration timestamp.extractor: Expected a Class instance or class
> name.
>
> Is this a bug or am I missing something here?
> Thanks.
>
> *Ofir Sharony*
> BackEnd Tech Lead
>
> Mobile: +972-54-7560277 | [email protected] | www.myheritage.com
> MyHeritage Ltd., 3 Ariel Sharon St., Or Yehuda 60250, Israel
>
> <http://www.myheritage.com/>
>
> <https://www.facebook.com/myheritage>
> <https://twitter.com/myheritage> <http://blog.myheritage.com/>
> <https://www.youtube.com/user/MyHeritageLtd>
>
signature.asc
Description: OpenPGP digital signature
