- Apache NiFi 教程
- Apache NiFi - 首頁
- Apache NiFi - 簡介
- Apache NiFi - 基本概念
- Apache NiFi - 環境設定
- Apache NiFi - 使用者介面
- Apache NiFi - 處理器
- Apache NiFi - 處理器分類
- Apache NiFi - 處理器關係
- Apache NiFi - FlowFile
- Apache NiFi - 佇列
- Apache NiFi - 處理組
- Apache NiFi - 標籤
- Apache NiFi - 配置
- Apache NiFi - 管理
- Apache NiFi - 建立資料流
- Apache NiFi - 模板
- Apache NiFi - API
- Apache NiFi - 資料溯源
- Apache NiFi - 監控
- Apache NiFi - 升級
- Apache NiFi - 遠端處理組
- Apache NiFi - 控制器設定
- Apache NiFi - 報表任務
- Apache NiFi - 自定義處理器
- Apache NiFi - 自定義控制器服務
- Apache NiFi - 日誌
- Apache NiFi 有用資源
- Apache NiFi - 快速指南
- Apache NiFi - 有用資源
- Apache NiFi - 討論
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 | 指定登入身份提供程式配置檔案的路徑和檔名。 |
廣告