Apache NiFi - 管理



Apache NiFi 支援 ambari、zookeeper 等多種工具用於管理目的。NiFi 還提供在 nifi.properties 檔案中的配置,以便管理員設定 HTTPS 等內容。

ZooKeeper

NiFi 本身不處理叢集中的投票過程。這意味著當建立叢集時,所有節點都是主節點和協調器。因此,配置 ZooKeeper 來管理主節點和協調器的投票。nifi.properties 檔案包含一些用於設定 ZooKeeper 的屬性。

序號 屬性名稱 預設值 描述
1 nifi.state.management.embedded.zookeeper.properties ./conf/zookeeper.properties 指定 ZooKeeper 屬性檔案的路徑和名稱。
2 nifi.zookeeper.connect.string 指定 ZooKeeper 的連線字串。
3 nifi.zookeeper.connect.timeout 3 秒 指定 ZooKeeper 與 NiFi 的連線超時時間。
4 nifi.zookeeper.session.timeout 3 秒 指定 ZooKeeper 與 NiFi 的會話超時時間。
5 nifi.zookeeper.root.node /nifi 指定 ZooKeeper 的根節點。
6 nifi.zookeeper.auth.type 指定 ZooKeeper 的身份驗證型別。

啟用 HTTPS

要透過 HTTPS 使用 NiFi,管理員必須生成金鑰庫和信任庫,並在 nifi.properties 檔案中設定一些屬性。TLS 工具包可用於生成啟用 Apache NiFi 中 HTTPS 所需的所有金鑰。

序號 屬性名稱 預設值 描述
1 nifi.web.https.port 指定 HTTPS 埠號。
2 nifi.web.https.network.interface.default NiFi 中 HTTPS 的預設介面。
3 nifi.security.keystore 指定金鑰庫的路徑和檔名。
4 nifi.security.keystoreType 指定金鑰庫型別,例如 JKS。
5 nifi.security.keystorePasswd 指定金鑰庫密碼。
6 nifi.security.truststore 指定信任庫的路徑和檔名。
7 nifi.security.truststoreType 指定信任庫型別,例如 JKS。
8 nifi.security.truststorePasswd 指定信任庫密碼。

其他管理屬性

還有一些其他屬性供管理員管理 NiFi 及其服務連續性。

序號 屬性名稱 預設值 描述
1 nifi.flowcontroller.graceful.shutdown.period 10 秒 指定優雅關閉 NiFi FlowController 的時間。
2 nifi.administrative.yield.duration 30 秒 指定 NiFi 的管理讓步持續時間。
3 nifi.authorizer.configuration.file ./conf/authorizers.xml 指定授權程式配置檔案的路徑和檔名。
4 nifi.login.identity.provider.configuration.file ./conf/login-identity-providers.xml 指定登入身份提供程式配置檔案的路徑和檔名。
廣告
© . All rights reserved.