Configuring your Controller Services
You can add Controller Services that can provide shared services to be used by the processors in your data flow. Create them after you build the NiFi dataflow and before you configure the processors, so that they are available when you configure your NiFi processors.
You have built the data flow on the NiFi canvas.
For this data flow, create two controller services.
- DBCPConnectionPool
- CSVReader
See the Related Information section below, for links to full details about these Apache NiFi controller services.
DBCPConnectionPool
Reuse the same DBCPConnectionPool controller service that you created before to interact with the Snowflake database.
Property | Example value for Snowflake ingest data flow |
---|---|
Name | Rename to SnowflakeJDBCConnectionPool |
Database Connection URL |
Where:
|
Database Driver Class Name | net.snowflake.client.jdbc.SnowflakeDriver |
CSVReader
In this example, you are generating CSV data to ingest into the Snowflake remote database table. As a result, you must also configure a CSVReader Controller Service to parse the data. You require the CSV data to correctly construct the queries executed against the table to ingest the data.
You can accept the default configurations.
Once you have configured your controller services, proceed to the following tasks:
- Configure your source processor.
- Configure your target processor.
- Confirm your data flow success.