Bootstrap Properties
The bootstrap.conf file in the conf directory allows users to configure settings for how NiFi should be started. This includes parameters, such as the size of the Java Heap, what Java command to run, and Java System Properties.
Here, we will address the different properties that are made available in the file. Any changes to this file will take effect only after NiFi has been stopped and restarted.
Property | Description |
java | Specifies the fully qualified java command to run. By default, it is simply |
run.as | The username to run NiFi as. For instance, if NiFi should be run as the nifi user, setting this value to nifi will cause the NiFi Process to be run as the nifi user. This property is ignored on Windows. For Linux, the specified user may require sudo permissions. |
lib.dir | The lib directory to use for NiFi. By default, this is set to |
conf.dir | The conf directory to use for NiFi. By default, this is set to |
graceful.shutdown.seconds | When NiFi is instructed to shutdown, the Bootstrap will wait this number of seconds for the process to shutdown cleanly. At this amount of time, if the service is still running, the Bootstrap will "kill" the process, or terminate it abruptly. |
java.arg.N | Any number of JVM arguments can be passed to the NiFi JVM when the process is started. These arguments are defined by adding properties to bootstrap.conf that begin with |
notification.services.file | When NiFi is started, or stopped, or when the Bootstrap detects that NiFi has died, the Bootstrap is able to send notifications of these events to interested parties. This is configured by specifying an XML file that defines which notification services can be used. More about this file can be found in the Notification Services section. |
notification.max.attempts | If a notification service is configured but is unable to perform its function, it will try again up to a maximum number of attempts. This property configures what that maximum number of attempts is. The default is |
nifi.start.notification.services | This property is a comma-separated list of Notification Service identifiers that correspond to the Notification Services defined in the |
nifi.stop.notification.services | This property is a comma-separated list of Notification Service identifiers that correspond to the Notification Services defined in the |
nifi.died.notification.services | This property is a comma-separated list of Notification Service identifiers that correspond to the Notification Services defined in the |