Open sijie opened 3 years ago
I wondered if I needed to manually upload the schema. Appears to not be able to though:
$ apache-pulsar-2.7.0/bin/pulsar-admin schemas upload --filename /path/to/MyMessageSchema persistent://public/default/schema-publisher23
Picked up JAVA_TOOL_OPTIONS: -Xmx1879m
Warning: Nashorn engine is planned to be removed from a future JDK release
18:54:29.816 [AsyncHttpClient-7-1] WARN org.apache.pulsar.client.admin.internal.BaseResource - [http://localhost:8080/admin/v2/schemas/public/default/schema-publisher23/schema] Failed to perform http post request: javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
HTTP 500 Internal Server Error
Reason: HTTP 500 Internal Server Error
$ apache-pulsar-2.7.0/bin/pulsar-admin clusters get standalone
Picked up JAVA_TOOL_OPTIONS: -Xmx1879m
Warning: Nashorn engine is planned to be removed from a future JDK release
{
"serviceUrl" : "http://localhost:8080",
"brokerServiceUrl" : "pulsar://localhost:6650"
}
$ apache-pulsar-2.7.0/bin/pulsar-admin clusters list
Picked up JAVA_TOOL_OPTIONS: -Xmx1879m
Warning: Nashorn engine is planned to be removed from a future JDK release
"standalone"
Contents of MyMessageSchema file:
{
"type": "Protobuf",
"schema": "{\"a\":\"1\", \"b\":\"2\"}",
"properties": {}
}
Proto:
message MyMessage
{
int32 a = 1;
double b = 2;
}
Original Issue: apache/pulsar#9922
Expected behavior
I would like to use the schema registry for my c++ consumers/producers with protobuf schemas. There are examples/test for AVRO and Json but not for protobuf and I'm seeing failures creating the producer/consumer.
Actual behavior
c++ test app output:
pulsar-standalone container output:
Steps to reproduce
Code snippet:
System configuration
Using pulsar-standalone docker image