Slackbot
02/05/2024, 8:18 PMDavid K
02/05/2024, 9:31 PMMatt Bayley
02/05/2024, 9:41 PM{
"type": "record",
"name": "enum_test_schema",
"namespace": "default",
"fields": [
{
"name": "color",
"type": {
"type": "enum",
"name": "Color",
"symbols": [
"unknown",
"green",
"red"
]
},
"default": "unknown"
}
]
}David K
02/05/2024, 9:53 PMMatt Bayley
02/05/2024, 9:54 PMDavid K
02/05/2024, 9:56 PM--value-schema flag on the produce command to specify JSON, AVRO, String, or bytes. Then pass in a compatible payload for the messageDavid K
02/05/2024, 9:57 PMclient produce <topic> --value-schema JSON --messages "{'color':'red'}"Matt Bayley
02/05/2024, 9:57 PMAVRO, avro, JSON, json, etcMatt Bayley
02/05/2024, 9:57 PM--help text suggesting those valuesMatt Bayley
02/05/2024, 9:58 PMERROR org.apache.pulsar.client.cli.PulsarClientTool - Invalid schema type: AVRODavid K
02/05/2024, 10:00 PMMatt Bayley
02/05/2024, 10:00 PMDavid K
02/05/2024, 10:00 PMMatt Bayley
02/05/2024, 10:03 PMMatt Bayley
02/05/2024, 10:03 PMMatt Bayley
02/05/2024, 10:04 PMMatt Bayley
02/05/2024, 10:04 PMDavid K
02/05/2024, 10:06 PMMatt Bayley
02/05/2024, 10:07 PM