-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
💡 maven schema-registry:register all #1914
Comments
Similar to #690 |
One problem with this is that AVDL record schemas cannot have hyphens, so using TopicNameStrategy registration isn't possible |
@OneCricketeer not sure if I got you right, but after downloading I got a bunch of |
IDL files generate AVSC and can more easily be used for cross-referenced schemas with import support and composition https://avro.apache.org/docs/current/idl.html I'm talking about compilation / resource processing via the Avro Maven plugin, not related to the Registry |
Using TopicRecordNameStrategy the list of subject-schema mapping is not just long but also unreadable.
It would also be nice to have a schemaType like Given these two limitations (long mapping list and lack of avdl support) I think this plugin is unusable in a production environment. Please tell me if I am missing something. |
The idl-protocol goal does create AVSC files. In the past, we used it with the exec plugin to define a class and maven goal that iterates over AVDL or AVSC and registers them to the registry |
Can you please tell me where are the AVSC files generated by the idl-protocol goal? I can only see classes under target/generated-sources/avro/classes Maybe the exec plugin was getting the schemas from the classes? The json string is present in a static variable of generated classes. |
Well within each class, there's a static But this is what I was referring to http://www.virtualroadside.com/blog/index.php/2014/06/08/automatically-generating-avro-schemata-avsc-files-using-maven/ |
I already read that blog post. They generate avsc files with maven-exec and Avro tools library, not using the idl-protocol goal of the avro-maven-plugin. |
Does that matter? I just couldn't remember which plugins we used. Based on what I have posted, I think we used the exec plugin followed by the avro plugin's |
In case if we do not want to have all 100+ schemas listed in the subjects section of the plugin configuration
Will be so nice if the plugin will just use everything it can find under outputDirectory if the subjects section missing
The text was updated successfully, but these errors were encountered: