Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How to load schema file for NiFi ConvertCSVtoAvro?

avatar
New Member

I want to configure the ConvertCSVtoAvro processor to read an Avro schema from a local text file. When I set the "Record schema" parameter to the file's path, C:\Avro\schema1.avsc, I receive an error that reads "Failed to parse schema: C:\Avro\schema1.avsc".

How can I get the Record schema parameter to point to the contents of my schema file?

1 ACCEPTED SOLUTION

avatar
Master Guru

I think the schema needs to be a valid URI which would require the file protocol like this:

file:///C:/Avro/schema1.avsc

Additionally, the schema field also allows a schema to be pasted directly into the value of the field if you want to avoid pointing at a file.

View solution in original post

2 REPLIES 2

avatar
Master Guru

I think the schema needs to be a valid URI which would require the file protocol like this:

file:///C:/Avro/schema1.avsc

Additionally, the schema field also allows a schema to be pasted directly into the value of the field if you want to avoid pointing at a file.

avatar
New Member

Can you provide the schema you are loadings? I'm just starting nifi and ConvertCSVtoAvro seems to be the easiet one bot I have no idea how the schema should look like...