Pinot Version | 1.0.0 |
---|---|
Code | startreedata/pinot-recipes/ingest-avro |
datagen.py
into the following script:
stdin
and writes Avro messages to Kafka.
We can combine the data generator script with this one by running the following code:
person-topic
using kcat:
person.id | person.interests | person.age | person.address.country |
---|---|---|---|
311b5e5e-060a-45f3-b050-e7b9e268dceb | [“Photography”,“Cooking”,“Fashion”,“Running”] | 45 | Zambia |
d29e52eb-41d8-4902-92fb-8ed6f51115b1 | [“Cycling”,“Dancing”,“Music”] | 60 | Qatar |
b1a0cf13-8daf-4120-865f-7ac3ae51c3c4 | [“Yoga”,“Painting”,“Swimming”] | 48 | Sierra Leone |
f774187e-ee0a-4a2f-abbb-e73ba86a1dfb | [“Music”,“Gardening”] | 67 | Belize |
c47cf80b-8104-480f-a9de-046f10f4c3f0 | [“Art”,“Meditation”] | 31 | Mayotte |
c62586ff-24d9-43cb-9bb5-50b7e9a4a297 | [“Painting”,“Yoga”] | 57 | Azerbaijan |
175a0032-af11-4e58-8ab5-9bfbed70eabf | [“Baking”,“Fashion”,“Cooking”,“Baking”,“Gardening”] | 73 | Wallis and Futuna |
82940700-00e1-4d3a-8333-d30165fec35a | [“Fashion”,“Fashion”,“Fishing”] | 35 | Saint Martin |
f27d06e9-686e-42f3-a6d8-742c046ea3d7 | [“Sports”,“Reading”,“Reading”,“Cycling”,“Traveling”] | 27 | Russian Federation |
0f1189ce-77ae-46cb-9f78-bf841b9f7e86 | [“Sports”,“Reading”,“Baking”,“Reading”] | 74 | Sri Lanka |