Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 08-31-2018 04:14 AM - edited 08-18-2019 02:35 AM
Hi,
I am getting a plain json stream with '\n' delimiter through TCP.
I am listening to TCP using listenTCP, set batchsize to 10000.
My json is with variable values, ex:
{"a":"20180831","b":"b"}
{"a":"20180831","b":"b","c":"c"}
I want to add a partition_value attribute to every line in json stream at once, which should look like
The attribute a is always present in json, so I want to use partition_value in a
{"a":"20180831","b":"b","partition_value":"20180831"}
{"a":"20180831","b":"b","c":"c","partition_value":"20180831"}
I have used "UpdateRecord" processor
below are the configuration
UpdateRecord
JsonTreeReader
AvroSchemaRegistry
AvroRecordSetWriter
I used UpdateRecord -> jsontreereader ->avroschemaregistry
|_________ -> avrorecordsetwriter
Then I have used avrotojson
I am getting only one line as output, can you please suggest where it is happening wrong or let me know if there is a better way to do it
Thank you
{"a":"20180831","b":"b","c":null,"partition_value":"20180831"}
Created 09-05-2018 09:58 AM
Created 08-31-2018 04:18 AM
Looks like the jpgs are not aligned as expected, but the names of jpgs are listed below in order, Thank you
Created 09-05-2018 09:58 AM
I find an alternate way of doing
Thank you