This topic provides an example to describe how to connect Apache Nifi to Hologres.
Background information
Apache NiFi is an easy-to-use and reliable data processing and distribution platform. It is designed to facilitate the automatic management of data streams across systems. Apache Nifi has a web-based user interface (UI) that is highly interactive and user-friendly. You can use Apache Nifi to manage and process data streams in a system or across systems.
Prerequisites
- A Hologres instance is created. For more information, see Purchase a Hologres instance.
- Apache Nifi is installed. For more information, see How to install and start NiFi.
Import a local JSON file to Hologres
The following figure shows how to import a local JSON file to Hologres. 

- GetFile processor: reads a JSON file.
- ConvertJSONToSQL processor: generates an INSERT statement based on the data in the JSON file.
- PutSQL processor: executes the generated INSERT statement to import the data in the JSON file to a database in Hologres.