Im trying to getting data from a kafka, but that data is in thrift.
If I want to transform it to json in order to change some values, how can I do it?
Is there any processor that transforms from thift to json?
Thanks
Im trying to getting data from a kafka, but that data is in thrift.
If I want to transform it to json in order to change some values, how can I do it?
Is there any processor that transforms from thift to json?
Thanks
As Jacek pointed out, it would be ideal to consume JSON directly from Kafka, but in the event this is not possible, here are a few options:
ExecuteStreamCommand
processor. This has the benefit of not bringing any Thrift dependencies into NiFi's JVM. ExecuteScript
-- write the Thrift transform directly in a Groovy script (you can use pure Java here as well) and either reference the file or paste the script body into the processor. This will require the Thrift libraries to be available in the processor's module directory. Good luck.