hnail edited a comment on pull request #8372:
URL: https://github.com/apache/pulsar/pull/8372#issuecomment-805769267
> I found the culprit here, I deleted important information from source
.proto file like **java_package** and **java_outer_classname**, and protoc was
generating different info which apache pulsar was not able to use.
I recommend you can use JAVA API to create Schema like this :
```
SchemaDefinition def = SchemaDefinition.<ProtoMsg>builder()
.withPojo(ProtoMsg.class)
.build();
Schema schema = Schema.PROTOBUF_NATIVE(def);
admin.schemas().createSchema(topic, schema.getSchemaInfo());
```
The **java_package** and **java_outer_classname** restrictions which you
mentioned may need check in other language client when create schema by POJO
API , be appreciate if your have time to help pull a issue to describe the
problem for future optimization .
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]