world hello, world hello
Deserializes configured Protobuf streams from task.inputs
and serializes them
as JSON to a topic name in the format <input_topic>_json
.
This project is the successor to grappler-proto-consumer.
Be aware: grappler-proto-consumer
generates JSON with snake_case
keys, but
this project generates JSON with camelCase
keys.
With a grappler-local stack running, mirror one or more of the configured input streams and then run:
mvn package && grp deploy protodeser_dev
(see .jobs.yml). Check that your local job is running in YARN.
In addition to the regular Samza metrics, this job will emit the following
metrics under net.skyscanner.loggingservices.protodeser.LSProtoDeserializer
:
deserialize-from-proto-ms
: time taken to parse Protobuf messagesserialize-to-json-ms
: time taken to convert to JSONfailed-parses
: counter (since job started) of how many messages failed to parse.