Friday, February 22, 2019

Apache NiFi - Administration

Apache NiFi offers support to multiple tools like ambari, zookeeper for administration purposes. NiFi also provides configuration in nifi.properties file to set up HTTPS and other things for administrators.

zookeeper

NiFi itself does not handle voting process in cluster. This means when a cluster is created, all the nodes are primary and coordinator. So, zookeeper is configured to manage the voting of primary node and coordinator. The nifi.properties file contains some properties to setup zookeeper.
S.No.Property nameDefault Valuedescription
1nifi.state.management.embedded.zookeeper. properties./conf/zookeeper.propertiesTo specify the path and name of zookeeper property file.
2nifi.zookeeper.connect.stringemptyTo specify the connection string of zookeeper.
3nifi.zookeeper.connect.timeout3 secsTo specify the connection timeout of zookeeper with NiFi.
4nifi.zookeeper.session.timeout3 secsTo specify the session timeout of zookeeper with NiFi.
5nifi.zookeeper.root.node/nifiTo specify root node for zookeeper.
6nifi.zookeeper.auth.typeemptyTo specify authentication type for zookeeper.

Enable HTTPS

To use NiFi over HTTPS, administrators have to generate keystore and truststore and set some properties in the nifi.properties file. The TLS toolkit can be used to generate all the necessary keys to enable HTTPS in apache NiFi.
S.No.Property nameDefault Valuedescription
1nifi.web.https.portemptyTo specify https port number.
2nifi.web.https.network.interface.defaultemptyDefault interface for https in NiFi.
3nifi.security.keystoreemptyTo specify the path and file name of keystore.
4nifi.security.keystoreTypeemptyTo specify the type of keystore type like JKS.
5nifi.security.keystorePasswdemptyTo specify keystore password.
6nifi.security.truststoreemptyTo specify the path and file name of truststore.
7nifi.security.truststoreTypeemptyTo specify the type of truststore type like JKS.
8nifi.security.truststorePasswdemptyTo specify truststore password.

Other properties for administration

There are some other properties, which are used by administrators to manage the NiFi and for its service continuity.
S.No.Property nameDefault Valuedescription
1nifi.flowcontroller.graceful.shutdown.period10 secTo specify the time to gracefully shutdown the NiFi flowcontroller.
2nifi.administrative.yield.duration30 secTo specify the administrative yield duration for NiFi.
3nifi.authorizer.configuration.file./conf/authorizers.xmlTo specify the path and file name of authorizer configuration file.
4nifi.login.identity.provider.configuration.file./conf/login-identity-providers.xmlTo specify the path and file name of login identity provider configuration file.

No comments:

Post a Comment

Popular Posts