Open devinbost opened 1 year ago
Hi @devinbost , I notice that this line is reporting a .avro
file:
[INFO] Generating Scala files for /Users/devin.bost/proj/repos/pulsar_workshop/scenarios/native-pulsar/np-common/src/main/avro/DeviceTSNew.avro
However, if the copy-pasted text is the entire file (and not just the schema portion), then that would appear to be a .avsc
file. That would be consistent with the reported error.
Please try renaming the file from DeviceTSNew.avro
to DeviceTSNew.avsc
. Took me a bit to realize the issue, and maybe you already beat me to the solution.
When I run
mvn avrohugger:generate-scala-sources
, I get the error:Not an Avro data file. -> [Help 1]
Here is the context in the output:
This can be reproduced from this repo branch:
To reproduce:
git clone https://github.com/devinbost/pulsar_workshop.git
git checkout spark-scala
cd pulsar_workshop
cd scenarios
cd spark-scala
mvn avrohugger:generate-scala-sources
For reference, here is the Avro file:
Here is the POM file:
pom.xml.txt