mirror of https://github.com/apache/nifi.git
NIFI-2643 Changed null check to !isBlank() for key in RunNiFi.
NIFI-2643 Updated comment in bootstrap.conf template. This closes #932
This commit is contained in:
parent
487f05a2b1
commit
6331dda8d3
|
@ -1021,7 +1021,7 @@ public class RunNiFi {
|
||||||
cmd.add("-Dapp=NiFi");
|
cmd.add("-Dapp=NiFi");
|
||||||
cmd.add("-Dorg.apache.nifi.bootstrap.config.log.dir=" + nifiLogDir);
|
cmd.add("-Dorg.apache.nifi.bootstrap.config.log.dir=" + nifiLogDir);
|
||||||
cmd.add("org.apache.nifi.NiFi");
|
cmd.add("org.apache.nifi.NiFi");
|
||||||
if (props.containsKey(NIFI_BOOTSTRAP_SENSITIVE_KEY) && props.get(NIFI_BOOTSTRAP_SENSITIVE_KEY) != null) {
|
if (props.containsKey(NIFI_BOOTSTRAP_SENSITIVE_KEY) && !StringUtils.isBlank(props.get(NIFI_BOOTSTRAP_SENSITIVE_KEY))) {
|
||||||
cmd.add("-k " + props.get(NIFI_BOOTSTRAP_SENSITIVE_KEY));
|
cmd.add("-k " + props.get(NIFI_BOOTSTRAP_SENSITIVE_KEY));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ java.arg.13=-XX:+UseG1GC
|
||||||
#Set headless mode by default
|
#Set headless mode by default
|
||||||
java.arg.14=-Djava.awt.headless=true
|
java.arg.14=-Djava.awt.headless=true
|
||||||
|
|
||||||
#Set sensitive properties key
|
# Master key in hexadecimal format for encrypted sensitive configuration values
|
||||||
nifi.bootstrap.sensitive.key=
|
nifi.bootstrap.sensitive.key=
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
Loading…
Reference in New Issue