Integration / Apache NiFi Interview Questions
What is the ConvertRecord processor and how is it used for format conversion?
ConvertRecord is a NiFi processor that converts FlowFile content from one data format to another using the NiFi record model. Its sole job is to read records using one format and write them out in another. The conversion logic lives entirely in the RecordReader and RecordWriter Controller Services — not in ConvertRecord itself.
Configuration is minimal: just a Record Reader and a Record Writer. Examples:
- CSV → JSON: CSVReader + JsonRecordSetWriter
- JSON → Avro: JsonTreeReader + AvroRecordSetWriter
- Avro → Parquet: AvroReader + ParquetRecordSetWriter
- JSON → CSV: JsonTreeReader + CSVRecordSetWriter
The schema used for conversion can be inferred from the data (for self-describing formats like Avro and Parquet), declared inline in the reader/writer configuration, or fetched from a Schema Registry. Using a Schema Registry ensures output always conforms to a validated, versioned schema.
ConvertRecord performs streaming conversion — records are read and written one at a time without loading the entire FlowFile into memory, making it suitable for very large files. The output FlowFile's mime.type attribute is automatically updated by the writer to reflect the new format.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
