Hi Tom,

I recall that I used the NiFi 1.14.0 binary to set the key and then copied
that over to the MiNiFi properties file to get it to work.

Linux only:
https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#updating-the-sensitive-properties-key
./bin/nifi.sh set-sensitive-properties-key <sensitivePropertiesKey>

Jeremy

On Mon, Sep 20, 2021 at 9:14 PM Tomislav Novosel <
[email protected]> wrote:

> According to migration guidance for NiFi property 'Sensitive Properties
> Key' should be generated at startup, I believe this is the same behaviour
> in case of MiNiFi since they merged the codebase. Why is this happening?
>
>
>
> BR,
>
> Tom
>
> *From:* Tomislav Novosel <[email protected]>
> *Sent:* 20 September 2021 11:05
> *To:* [email protected]
> *Subject:* Minifi 1.14.0 exception - sensitive props key
>
>
>
> Hi to all,
>
>
>
> I was using MiNiFi 0.5.0 running on ubuntu, installed as a service.
>
> I switched now to MiNiFi 1.14.0 – I disabled minifi service, deleted
>
> installation folder and unpacked MiNiFi 1.14.0 folder at the same place
>
> where was 0.5.0 installed.
>
>
>
> I started new MiNiFi 1.14.0 and the service don't want to start properly
>
> with this exception:
>
>
>
> java.lang.Exception: Unable to load flow due to:
> java.lang.IllegalArgumentException: NiFi Sensitive Properties Key
> [nifi.sensitive.props.key] is required
>
>   at
> org.apache.nifi.headless.HeadlessNiFiServer.start(HeadlessNiFiServer.java:166)
>
>   at org.apache.nifi.minifi.MiNiFi.<init>(MiNiFi.java:163)
>
>   at org.apache.nifi.minifi.MiNiFi.<init>(MiNiFi.java:64)
>
>   at org.apache.nifi.minifi.MiNiFi.main(MiNiFi.java:265)
>
> Caused by: java.lang.IllegalArgumentException: NiFi Sensitive Properties
> Key [nifi.sensitive.props.key] is required
>
>   at
> org.apache.nifi.encrypt.PropertyEncryptorFactory.getPropertyEncryptor(PropertyEncryptorFactory.java:42)
>
>   at
> org.apache.nifi.headless.HeadlessNiFiServer.start(HeadlessNiFiServer.java:125)
>
>   ... 3 common frames omitted
>
>
>
> I tried to set the key manually, but the property in nifi.properties gets
> overwritten
>
> every time I am starting the service.
>
>
>
> Could not find anything about this exception, can someone help, why is
> this happening?
>
>
>
> Thanks, regards,
>
> Tom
>

Reply via email to