Created on 11-03-2018 12:32 AM - edited 08-17-2019 04:53 PM
Hi @Andrew Lim @Matt Burgess @Timothy Spann
I am trying to load a simple CSV file (without header) having few rows to Teradata. Further, I am trying to create the table in Teradata by providing the CREATE query in the PutDatabaseRecord processor. My workflow is:
GetFile -> UpdateAttribute -> PutDatabaseRecord
This is how data looks like:
1,18
2,19
3,20
4,21
5,22
This is how the workflow looks like:
This is how the UpdateAttribute processor looks like:
This is how the PutDatabaseRecord processor looks like:
This is how CSVReader looks like:
This is how AvroSchemaRegistry looks like:
But, I am getting the below error:
org.apache.nifi.schema.access.SchemaNotFoundException:Unable to find schema with name 'BIGDATA_DL.STUDENT'
Please advise.
Created 11-03-2018 02:58 AM
In your UpdateAttribute processor change
schema.name property value to
STUDENT
instead of BIGDATA_DL.STUDENT.
Created on 11-05-2018 05:01 PM - edited 08-17-2019 04:53 PM
Created 11-06-2018 03:36 AM
Make sure you are having same field names in target table with your mentioned in avro schema.
Even you can also make use of Unmatched Field/Column Behaviour to ignore incase you are having any unmatched fields in your data.
Refer to this thread regards to similar kind of issue..
Created 12-08-2018 09:18 PM
Thanks for your help, I got it working.