Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7060

Replace properties in nifi.properties by environment variables

    XMLWordPrintableJSON

Details

    Description

      start.sh replaces some properties defined in nifi.properties with a set of environment variables.

      This adds some flexibility as the users are able to modify properties without touching the nifi.properties file but it can lead to some frustration when users think they can replace any property by defining an environment variable with the same name. Also, when users want to provide their own nifi.properties file as some properties will be overwritten.

      I believe we should only replace a property when there is an environment variable defined with the same name (we should use the same names that appear in the nifi.properties file in uppercase and replacing any . with _). Defaults should be taken from the nifi.properties file.

      This way users can replace the properties file with a custom one, choose to define environment variables, or both.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adrianmartin Adrian Martin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.5h
                2.5h