Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I load a avro schema in IntelliJ?

I cloned a project from github and now have it open as a project in IntelliJ. The project is written in Scala.

The project depends on some objects defined in an avro schema that is in another project on github. The avro schema is a single *.avdl file.

How do I load the avro *.advl schema / file in my project in IntelliJ?

So that the object types defined in the avro schema are known in the rest of the project.

Does IntelliJ recognize avro *.advl files? Do I need to generate Scala/Java classes somehow from the avro advl file? And then load these classes?

like image 380
WillamS Avatar asked Dec 10 '15 18:12

WillamS


1 Answers

I recently started an Avro project and was annoyed at having to use avro-tools.jar, so I made an IntelliJ plugin - https://plugins.jetbrains.com/plugin/12281-avro-and-parquet-viewer/. Drag-and-drop Avro and Parquet files to view them in plain text, JSON and tabular views, alongside their schemas.

For Visual Studio Code users, my colleagues use https://marketplace.visualstudio.com/items?itemName=dvirtz.parquet-viewer.

like image 188
Ben Watson Avatar answered Oct 17 '22 05:10

Ben Watson