For this demo to work, some parameter providers need to be setup.
To do this the following steps need to be taken:
-
Log into the NiFi UI.
-
In the upper right corner, click the Sandwich menu, and select "Controller Settings".
-
On the "NiFi Settings" window, select the "PARAMETER PROVIDERS" tab, then click the "+" icon in the upper right.
-
On the "Add Parameter Provider" page, select the "FileParameterProvider", and then click the "ADD" button.
-
Once the parameter provider has been added, click the "Edit" (pencil) icon on the provider line to enter the configuration window.
-
In the "Configure Parameter Provider" menu, click the "PROPERTIES" tab.
- Set the "Parameter Group Directories" value to:
/opt/nifi/nifi-current/parameters
. - Change the "Parameter Value Encoding" from:
Base64
to:Plain text
. - Click the "APPLY" button.
- Set the "Parameter Group Directories" value to:
-
Click the "Fetch Parameters" (down arrow) icon, on the provider line to create the Parameter Context.
-
On the "Fetch Parameters" window:
- Check the "Create Parameter Context" box.
- Change the "Parameter Context Name" from:
parameters
to:file parameters
. - Under the "Select Parameters To Be Set As Sensitive", uncheck
the:
elasticsearch.url
,elasticsearch.username
, andjks.path
boxes. - Click "APPLY"
-
Done! The parameter providers can now be used.
Go to next step: Parameter Contexts