Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions nifi-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ language governing permissions and limitations under the License. -->
<nifi.cluster.manager.flow.retrieval.delay>5 sec</nifi.cluster.manager.flow.retrieval.delay>
<nifi.cluster.manager.protocol.threads>10</nifi.cluster.manager.protocol.threads>
<nifi.cluster.manager.safemode.duration>0 sec</nifi.cluster.manager.safemode.duration>

<!-- nifi.properties: kerberos properties -->
<nifi.kerberos.krb5.file> </nifi.kerberos.krb5.file>
</properties>
<profiles>
<profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ public class NiFiProperties extends Properties {
public static final String CLUSTER_MANAGER_PROTOCOL_THREADS = "nifi.cluster.manager.protocol.threads";
public static final String CLUSTER_MANAGER_SAFEMODE_DURATION = "nifi.cluster.manager.safemode.duration";

// kerberos properties
public static final String KERBEROS_KRB5_FILE = "nifi.kerberos.krb5.file";

// defaults
public static final String DEFAULT_TITLE = "NiFi";
public static final Boolean DEFAULT_AUTO_RESUME_STATE = true;
Expand Down Expand Up @@ -799,6 +802,14 @@ public String getClusterProtocolManagerToNodeApiScheme() {
}
}

public File getKerberosConfigurationFile() {
if (getProperty(KERBEROS_KRB5_FILE).trim().length() > 0) {
return new File(getProperty(KERBEROS_KRB5_FILE));
} else {
return null;
}
}

public InetSocketAddress getNodeApiAddress() {

final String rawScheme = getClusterProtocolManagerToNodeApiScheme();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,6 @@ nifi.cluster.manager.node.api.request.threads=${nifi.cluster.manager.node.api.re
nifi.cluster.manager.flow.retrieval.delay=${nifi.cluster.manager.flow.retrieval.delay}
nifi.cluster.manager.protocol.threads=${nifi.cluster.manager.protocol.threads}
nifi.cluster.manager.safemode.duration=${nifi.cluster.manager.safemode.duration}

# kerberos #
nifi.kerberos.krb5.file=${nifi.kerberos.krb5.file}
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,9 @@
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-properties</artifactId>
</dependency>
</dependencies>
</project>
Loading