Hi,

use json parsing in the bolt code.get the string  json value of 0; use
following link for clear understanding  !

https://azure.microsoft.com/en-in/documentation/articles/hdinsight-storm-develop-csharp-event-hub-topology/



*Best regards,*

*K.Sai Dilip Reddy.*

On Mon, May 16, 2016 at 1:37 AM, Henry Hottelet <[email protected]> wrote:

> Daniella,
>
> I am curious about your architecture with Kafka and storm.  Can you send
> the github link you used for that project?
>
> I would like to be able to see your example. I use IntelliJ.
>
> Henry
>
> Sent from my iPad
>
> On May 15, 2016, at 2:14 PM, Daniela S <[email protected]> wrote:
>
> Hi,
>
> thank you very much for your answers. But unfortunately I do not have a
> JSON object yet, I only have a String, containing a JSON object. I receive
> the Strings from Kafka but I do not know how to get the information out of
> the String.
>
> example: {"timestamp": 1463335828342, "ID":570,"command":"START"}
>
> I would like to extract the three fields out of the String. Then I would
> like to store it into Redis.
> Afterwards I would like to pull all the stored (active) devices out of
> Redis and to build a sum over all the devices every minute. For building
> the sum I have to add another value for every device. I would like to use
> Redis as a kind of cache.
>
> Regards,
> Daniela
>
> *Gesendet:* Sonntag, 15. Mai 2016 um 20:06 Uhr
> *Von:* "Henry Hottelet" <[email protected]>
> *An:* [email protected]
> *Betreff:* Re: Split Kafka JSON String
>
> Try using intellij plug in that converts json to pojo classes
> On May 15, 2016 2:04 PM, "Nathan Leung" <[email protected]> wrote:
>>
>> Easiest way is to map your job to a pojo and use Jackson or gson to
>> convert the json.
>> On May 15, 2016 1:48 PM, "Daniela S" <[email protected]> wrote:
>>>
>>> Hi
>>>
>>> I am receiving Strings of JSON from Kafka. I would like to split the
>>> string to get each field from the JSON object to store it into Redis.
>>> How can I split the string and assign the parts to variables?
>>>
>>> Thank you in advance.
>>>
>>> Regards,
>>> Daniela
>>>
>>

Reply via email to