- Apache NiFi - Discussion
- Apache NiFi - Useful Resources
- Apache NiFi - Quick Guide
- Apache NiFi - Logging
- Apache NiFi - Custom Controllers Service
- Apache NiFi - Custom Processor
- Apache NiFi - Reporting Task
- Apache NiFi - Controller Settings
- Apache NiFi - Remote Process Group
- Apache NiFi - Upgrade
- Apache NiFi - Monitoring
- Apache NiFi - Data Provenance
- Apache NiFi - API
- Apache NiFi - Templates
- Apache NiFi - Creating Flows
- Apache NiFi - Administration
- Apache NiFi - Configuration
- Apache NiFi - Labels
- Apache NiFi - Process Groups
- Apache NiFi - Queues
- Apache NiFi - FlowFile
- Apache NiFi - Processors Relationship
- Apache NiFi - Processors Categorization
- Apache NiFi - Processors
- Apache NiFi - User Interface
- Apache NiFi - Environment Setup
- Apache NiFi - Basic Concepts
- Apache NiFi - Introduction
- Apache NiFi - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Apache NiFi - Controller Settings
Apache NiFi offers shared services, which can be shared by processors and reporting task is called controller settings. These are pke Database connection pool, which can be used by processors accessing same database.
To access the controller settings, use the drop down menu at the right top corner of NiFi UI as shown in the below image.
There are many controller settings offered by Apache NiFi, we will discuss a commonly used one and how we set it up in NiFi.
DBCPConnectionPool
Add the plus sign in the Nifi Settings page after cpcking the Controller settings option. Then select the DBCPConnectionPool from the pst of controller settings. DBCPConnectionPool will be added in the main NiFi settings page as shown in the below image.
It contains the following information about the controller setting:Name
Type
Bundle
State
Scope
Configure and delete icon
Cpck on the configure icon and fill the required fields. The fields are psted down in the table below −
S.No. | Field Name | Default value | description |
---|---|---|---|
1 | Database Connection URL | empty | To specify the connection URL to database. |
2 | Database Driver Class Name | empty | To specify the driver class name for database pke com.mysql.jdbc.Driver for mysql. |
3 | Max Wait Time | 500 milps | To specify time to wait for the data from a connection to database. |
4 | Max Total Connections | 8 | To specify the maximum number of allocated connection in database connection pool. |
To stop or configure a controller setting, first all the attached NiFi components should be stopped. NiFi also adds scope in controller settings to manage the configuration of it. Therefore, only the ones which shared the same settings will not get impacted and will use the same controller settings.
Advertisements