Database Properties
These properties define the settings for the Registry database, which keeps track of metadata about buckets and all items stored in buckets.
The 0.1.0 release leveraged an embedded H2 database that was configured via the following properties:
Property |
Description |
|
The location of the Registry database directory. The default value is |
|
This property specifies additional arguments to add to the connection string for the Registry database. The default value should be used and should not be changed. It is: |
The 0.2.0 release introduced a more flexible approach which allows leveraging an external database. This new approach is configured via the following properties:
Property |
Description |
|
The full JDBC connection string. The default value will specify a new H2 database in the same location as the previous one. For example, |
|
The class name of the JDBC driver. The default value is |
|
An optional directory containing one or more JARs to add to the classpath. If not specified, it is assumed that the driver JAR is already on the classpath by copying it to the |
|
The username for the database. The default value is |
|
The password for the database. The default value is |
|
The max number of connections for the connection pool. The default value is |
|
Whether or not enable debug logging for SQL statements. The default value is |
Note | |
---|---|
When upgrading from 0.1.0 to a future version, if nifi.registry.db.directory remains populated, the application will attempt to migrate the data from the original database to the new database specified with the new properties. This will only happen the first time the application starts with the new database properties. |