You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Anshuman Ghosh <an...@gmail.com> on 2017/03/16 09:12:04 UTC

Need help in JSON genarate automation

Hello all,

Trust you are doing great great!
One quick question, I need some help for simulating a testing pipeline -

I want to create an automatic pipeline where there should be continuous
flow of JSON messages/ records that I would publish onto Kafka topic and
later consume the same for further processing.
I have found some JSON generator site "http://www.json-generator.com/" but
that is like some static process.
Can someone please guide me here.


Thank you!
​
______________________

*Kind Regards,*
*Anshuman Ghosh*
*Contact - +49 179 9090964*

Re: Need help in JSON genarate automation

Posted by Anshuman Ghosh <an...@gmail.com>.
Hello Andy,

Thank you very much for the suggestion.
I will surely try that out.


Thank you!
​
______________________

*Kind Regards,*
*Anshuman Ghosh*
*Contact - +49 179 9090964*


On Thu, Mar 16, 2017 at 8:10 PM, Andy LoPresto <al...@apache.org> wrote:

> Anshuman,
>
> You can use the GenerateFlowFile processor to generate arbitrary amounts
> of binary or text data at any interval you want. You can copy some static
> JSON template into the processor properties as default content (Lorem
> ipsum, if you will), and then use a follow-on ReplaceText to perform token
> replacement with dynamic values (times, randoms, etc.).
>
>
> Andy LoPresto
> alopresto@apache.org
> *alopresto.apache@gmail.com <al...@gmail.com>*
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>
> On Mar 16, 2017, at 2:12 AM, Anshuman Ghosh <an...@gmail.com>
> wrote:
>
> Hello all,
>
> Trust you are doing great great!
> One quick question, I need some help for simulating a testing pipeline -
>
> I want to create an automatic pipeline where there should be continuous
> flow of JSON messages/ records that I would publish onto Kafka topic and
> later consume the same for further processing.
> I have found some JSON generator site "http://www.json-generator.com/" but
> that is like some static process.
> Can someone please guide me here.
>
>
> Thank you!
> ​
> ______________________
>
> *Kind Regards,*
> *Anshuman Ghosh*
> *Contact - +49 179 9090964 <+49%20179%209090964>*
>
>
>

Re: Need help in JSON genarate automation

Posted by Andy LoPresto <al...@apache.org>.
Anshuman,

You can use the GenerateFlowFile processor to generate arbitrary amounts of binary or text data at any interval you want. You can copy some static JSON template into the processor properties as default content (Lorem ipsum, if you will), and then use a follow-on ReplaceText to perform token replacement with dynamic values (times, randoms, etc.).


Andy LoPresto
alopresto@apache.org
alopresto.apache@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Mar 16, 2017, at 2:12 AM, Anshuman Ghosh <an...@gmail.com> wrote:
> 
> Hello all,
> 
> Trust you are doing great great!
> One quick question, I need some help for simulating a testing pipeline -
> 
> I want to create an automatic pipeline where there should be continuous
> flow of JSON messages/ records that I would publish onto Kafka topic and
> later consume the same for further processing.
> I have found some JSON generator site "http://www.json-generator.com/" but
> that is like some static process.
> Can someone please guide me here.
> 
> 
> Thank you!
> ​
> ______________________
> 
> *Kind Regards,*
> *Anshuman Ghosh*
> *Contact - +49 179 9090964*