You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by sh...@apache.org on 2026/04/08 12:30:41 UTC

(seatunnel) branch dev updated: [Improve][Docs] Iceberg connector adds parameter documentation related to Kerberos authentication (#10704)

This is an automated email from the ASF dual-hosted git repository.

shenghang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 93bba1a3df [Improve][Docs] Iceberg connector adds parameter documentation related to Kerberos authentication (#10704)
93bba1a3df is described below

commit 93bba1a3dfe61965cd9927ad141c9dc2948e832c
Author: 老王 <58...@users.noreply.github.com>
AuthorDate: Wed Apr 8 20:30:35 2026 +0800

    [Improve][Docs] Iceberg connector adds parameter documentation related to Kerberos authentication (#10704)
---
 docs/en/connectors/sink/Iceberg.md   | 53 ++++++++++++++++++++++++++++++++++
 docs/en/connectors/source/Iceberg.md | 39 ++++++++++++++++++++++---
 docs/zh/connectors/sink/Iceberg.md   | 55 +++++++++++++++++++++++++++++++++++-
 docs/zh/connectors/source/Iceberg.md | 44 +++++++++++++++++++++++++++++
 4 files changed, 186 insertions(+), 5 deletions(-)

diff --git a/docs/en/connectors/sink/Iceberg.md b/docs/en/connectors/sink/Iceberg.md
index d83b912e67..527dd1202d 100644
--- a/docs/en/connectors/sink/Iceberg.md
+++ b/docs/en/connectors/sink/Iceberg.md
@@ -80,6 +80,23 @@ libfb303-xxx.jar
 | data_save_mode                         | Enum    | no       | APPEND_DATA                  | the data save mode, please refer to `data_save_mode` below                                                                                                                                                                                                                                                                |
 | custom_sql                             | string  | no       | -                            | Custom `delete` data sql for data save mode. e.g: `delete from ... where ...`                                                                                                                                                                                                                                             |
 | iceberg.table.commit-branch            | string  | no       | -                            | Default branch for commits                                                                                                                                                                                                                                                                                                |
+| krb5_path                              | string  | no       | /etc/krb5.conf              | The path of `krb5.conf`, used for Kerberos authentication.                                                                                                                                                                                                                                                                |
+| kerberos_principal                     | string  | no       | -                            | The principal for Kerberos authentication.                                                                                                                                                                                                                                                                               |
+| kerberos_keytab_path                   | string  | no       | -                            | The keytab file path for Kerberos authentication.                                                                                                                                                                                                                                                                         |
+
+## Sink Option descriptions
+
+### krb5_path [string]
+
+The path of `krb5.conf`, used for Kerberos authentication.
+
+### kerberos_principal [string]
+
+The principal for Kerberos authentication.
+
+### kerberos_keytab_path [string]
+
+The keytab file path for Kerberos authentication.
 
 ## Task Example
 
@@ -234,6 +251,42 @@ sink {
 }
 ```
 
+### Kerberos Authentication
+
+The following example demonstrates how to configure Iceberg sink with Kerberos authentication when using Hadoop catalog with HDFS:
+
+```hocon
+sink {
+  Iceberg {
+    catalog_name = "seatunnel_test"
+    iceberg.catalog.config = {
+      type = "hadoop"
+      warehouse = "hdfs://your_cluster/tmp/seatunnel/iceberg/"
+    }
+    namespace = "seatunnel_namespace"
+    table = "iceberg_sink_table"
+    iceberg.table.write-props = {
+      write.format.default = "parquet"
+      write.target-file-size-bytes = 536870912
+    }
+    krb5_path = "/etc/krb5.conf"
+    kerberos_principal = "hive/your_host@EXAMPLE.COM"
+    kerberos_keytab_path = "/path/to/your.keytab"
+    iceberg.table.primary-keys = "id"
+    iceberg.table.partition-keys = "f_datetime"
+    iceberg.table.upsert-mode-enabled = true
+    iceberg.table.schema-evolution-enabled = true
+    case_sensitive = true
+  }
+}
+```
+
+Description:
+
+- `krb5_path`: The path to the `krb5.conf` file used for Kerberos authentication.
+- `kerberos_principal`: The principal for Kerberos authentication in the format `primary/instance@REALM`.
+- `kerberos_keytab_path`: The keytab file path for Kerberos authentication.
+
 ### Multiple table
 
 #### example1
diff --git a/docs/en/connectors/source/Iceberg.md b/docs/en/connectors/source/Iceberg.md
index 7f7501c8f3..5511ff6979 100644
--- a/docs/en/connectors/source/Iceberg.md
+++ b/docs/en/connectors/source/Iceberg.md
@@ -89,10 +89,13 @@ libfb303-xxx.jar
 | end_snapshot_id          | long    | no       | -                    | Instructs this scan to look for changes up to a particular snapshot (inclusive).                                                                                                                                                                                                                                                                                                                                                    [...]
 | use_snapshot_id          | long    | no       | -                    | Instructs this scan to look for use the given snapshot ID.                                                                                                                                                                                                                                                                                                                                                                          [...]
 | use_snapshot_timestamp   | long    | no       | -                    | Instructs this scan to look for use the most recent snapshot as of the given time in milliseconds. timestamp – the timestamp in millis since the Unix epoch                                                                                                                                                                                                                                                                         [...]
-| stream_scan_strategy     | enum    | no       | FROM_LATEST_SNAPSHOT | Starting strategy for stream mode execution, Default to use `FROM_LATEST_SNAPSHOT` if don’t specify any value,The optional values are:<br/>TABLE_SCAN_THEN_INCREMENTAL: Do a regular table scan then switch to the incremental mode.<br/>FROM_LATEST_SNAPSHOT: Start incremental mode from the latest snapshot inclusive.<br/>FROM_EARLIEST_SNAPSHOT: Start incremental mode from the earliest snapshot inclusive.<br/>FROM_SNAPSHO [...]
+| stream_scan_strategy     | enum    | no       | FROM_LATEST_SNAPSHOT | Starting strategy for stream mode execution, Default to use `FROM_LATEST_SNAPSHOT` if don't specify any value,The optional values are:<br/>TABLE_SCAN_THEN_INCREMENTAL: Do a regular table scan then switch to the incremental mode.<br/>FROM_LATEST_SNAPSHOT: Start incremental mode from the latest snapshot inclusive.<br/>FROM_EARLIEST_SNAPSHOT: Start incremental mode from the earliest snapshot inclusive.<br/>FROM_SNAPSHO [...]
 | increment.scan-interval  | long    | no       | 2000                 | The interval of increment scan(mills)                                                                                                                                                                                                                                                                                                                                                                                               [...]
 | common-options           |         | no       | -                    | Source plugin common parameters, please refer to [Source Common Options](../common-options/source-common-options.md) for details.                                                                                                                                                                                                                                                                                                   [...]
-| query                    | String  | no       | -                    | The select DML to select the iceberg data. It mustn't contain the table name, and doesn't support alias. For example: `select * from table where f1 > 100`, `select fn from table where f1 > 100`. The current support for the LIKE syntax is limited: the LIKE clause shouldn't start with `%`. The supported one is: `select f1 from t where f2 like 'tom%'  `                                                                    [...]
+| query                    | String  | no       | -                    | The select DML to select the iceberg data. It mustn't contain the table name, and doesn’t support alias. For example: `select * from table where f1 > 100`, `select fn from table where f1 > 100`. The current support for the LIKE syntax is limited: the LIKE clause shouldn't start with `%`. The supported one is: `select f1 from t where f2 like 'tom%'  `                                                                    [...]
+| krb5_path                              | string  | no       | /etc/krb5.conf              | The path to the `krb5.conf` file for Kerberos authentication.                                                                                                                                                                                                                                                                |
+| kerberos_principal                     | string  | no       | -                            | The principal for Kerberos authentication.                                                                                                                                                                                                                                                                               |
+| kerberos_keytab_path                   | string  | no       | -                            | The path to the keytab file for Kerberos authentication.                                                                                                                                                                                                                                                                         |
 
 
 ## Task Example
@@ -149,7 +152,7 @@ source {
         query = "select fn from table where f1 > 100"
       }
     ]
-    
+
     plugin_output = "iceberg"
   }
 }
@@ -191,13 +194,41 @@ source {
       warehouse = "hdfs://your_cluster//tmp/seatunnel/iceberg/"
     }
     catalog_type = "hive"
-    
+
+    namespace = "your_iceberg_database"
+    table = "your_iceberg_table"
+  }
+}
+```
+
+### Kerberos Authentication
+
+The following example demonstrates how to configure Kerberos authentication for the Iceberg Source when using Hadoop Catalog and HDFS:
+
+```hocon
+source {
+  Iceberg {
+    catalog_name = "seatunnel"
+    iceberg.catalog.config = {
+      type = "hadoop"
+      warehouse = "hdfs://your_cluster/tmp/seatunnel/iceberg/"
+    }
     namespace = "your_iceberg_database"
     table = "your_iceberg_table"
+    krb5_path = "/etc/krb5.conf"
+    kerberos_principal = "hive/your_host@EXAMPLE.COM"
+    kerberos_keytab_path = "/path/to/your.keytab"
+    plugin_output = "iceberg_kerberos"
   }
 }
 ```
 
+Description:
+
+- `krb5_path`: The path to the `krb5.conf` file for Kerberos authentication.
+- `kerberos_principal`: The principal for Kerberos authentication, in the format of `primary/instance@REALM`.
+- `kerberos_keytab_path`: The path to the keytab file for Kerberos authentication.
+
 ### Column Projection
 
 ```hocon
diff --git a/docs/zh/connectors/sink/Iceberg.md b/docs/zh/connectors/sink/Iceberg.md
index 875dfa8111..5df4c57680 100644
--- a/docs/zh/connectors/sink/Iceberg.md
+++ b/docs/zh/connectors/sink/Iceberg.md
@@ -80,6 +80,23 @@ libfb303-xxx.jar
 | data_save_mode                         | Enum    | no   | APPEND_DATA                  | 数据写入方式, 请参考下面的 `data_save_mode`                                                                                                                                                                                   |
 | custom_sql                             | string  | no   | -                            | 自定义 `delete` 数据的 SQL 语句,用于数据写入方式。例如: `delete from ... where ...`                                                                                                                                                  |
 | iceberg.table.commit-branch            | string  | no   | -                            | 提交的默认分支                                                                                                                                                                                                           |
+| krb5_path                              | string  | no       | /etc/krb5.conf              | `krb5.conf` 文件的路径,用于 Kerberos 认证。                                                                                                                                                                                                                                                                |
+| kerberos_principal                     | string  | no       | -                            | Kerberos 认证的 principal。                                                                                                                                                                                                                                                                               |
+| kerberos_keytab_path                   | string  | no       | -                            | Kerberos 认证的 keytab 文件路径。                                                                                                                                                                                                                                                                         |
+
+## Sink 选项说明
+
+### krb5_path [string]
+
+`krb5.conf` 文件的路径,用于 Kerberos 认证。
+
+### kerberos_principal [string]
+
+Kerberos 认证的 principal。
+
+### kerberos_keytab_path [string]
+
+Kerberos 认证的 keytab 文件路径。
 
 ## 任务示例
 
@@ -207,6 +224,42 @@ sink {
 }
 ```
 
+### Kerberos 认证
+
+以下示例演示了在使用 Hadoop Catalog 和 HDFS 时如何配置 Iceberg Sink 的 Kerberos 认证:
+
+```hocon
+sink {
+  Iceberg {
+    catalog_name = "seatunnel_test"
+    iceberg.catalog.config = {
+      type = "hadoop"
+      warehouse = "hdfs://your_cluster/tmp/seatunnel/iceberg/"
+    }
+    namespace = "seatunnel_namespace"
+    table = "iceberg_sink_table"
+    iceberg.table.write-props = {
+      write.format.default = "parquet"
+      write.target-file-size-bytes = 536870912
+    }
+    krb5_path = "/etc/krb5.conf"
+    kerberos_principal = "hive/your_host@EXAMPLE.COM"
+    kerberos_keytab_path = "/path/to/your.keytab"
+    iceberg.table.primary-keys = "id"
+    iceberg.table.partition-keys = "f_datetime"
+    iceberg.table.upsert-mode-enabled = true
+    iceberg.table.schema-evolution-enabled = true
+    case_sensitive = true
+  }
+}
+```
+
+说明:
+
+- `krb5_path`:用于 Kerberos 认证的 `krb5.conf` 文件路径。
+- `kerberos_principal`:Kerberos 认证的 principal,格式为 `primary/instance@REALM`。
+- `kerberos_keytab_path`:Kerberos 认证的 keytab 文件路径。
+
 ### Multiple table(多表写入)
 
 #### 示例1
@@ -223,7 +276,7 @@ source {
     url = "jdbc:mysql://127.0.0.1:3306/seatunnel"
     username = "root"
     password = "******"
-    
+
     table-names = ["seatunnel.role","seatunnel.user","galileo.Bucket"]
   }
 }
diff --git a/docs/zh/connectors/source/Iceberg.md b/docs/zh/connectors/source/Iceberg.md
index dd7b90a25c..722023ef34 100644
--- a/docs/zh/connectors/source/Iceberg.md
+++ b/docs/zh/connectors/source/Iceberg.md
@@ -93,7 +93,23 @@ libfb303-xxx.jar
 | increment.scan-interval  | long    | 否   | 2000                 | 增量扫描的间隔(毫秒)                                                                                                                                                                                                                                                                                                                                                                                                                              [...]
 | common-options           |         | 否   | -                    | 源插件通用参数,请参考 [源通用选项](../common-options/source-common-options.md) 详见。                                                                                                                                                                                                                                                                                                                                                                      [...]
 | query                    | String  | 否   | -                    | 用于选择 iceberg 数据的 select DML。它不能包含表名,也不支持别名。例如:`select * from table where f1 > 100`、`select fn from table where f1 > 100`。当前对 LIKE 语法的支持是有限的:LIKE 子句不应以 `%` 开头。支持的是:`select f1 from t where f2 like 'tom%'  `                                                                                                                                                                                                                             [...]
+| krb5_path                              | string  | no       | /etc/krb5.conf              | `krb5.conf` 文件的路径,用于 Kerberos 认证。                                                                                                                                                                                                                                                                |
+| kerberos_principal                     | string  | no       | -                            | Kerberos 认证的 principal。                                                                                                                                                                                                                                                                               |
+| kerberos_keytab_path                   | string  | no       | -                            | Kerberos 认证的 keytab 文件路径。                                                                                                                                                                                                                                                                         |
 
+## 源选项说明
+
+### krb5_path [string]
+
+`krb5.conf` 文件的路径,用于 Kerberos 认证。
+
+### kerberos_principal [string]
+
+Kerberos 认证的 principal。
+
+### kerberos_keytab_path [string]
+
+Kerberos 认证的 keytab 文件路径。
 
 ## 任务示例
 
@@ -198,6 +214,34 @@ source {
 }
 ```
 
+### Kerberos 认证
+
+以下示例演示了在使用 Hadoop Catalog 和 HDFS 时如何配置 Iceberg Source 的 Kerberos 认证:
+
+```hocon
+source {
+  Iceberg {
+    catalog_name = "seatunnel"
+    iceberg.catalog.config = {
+      type = "hadoop"
+      warehouse = "hdfs://your_cluster/tmp/seatunnel/iceberg/"
+    }
+    namespace = "your_iceberg_database"
+    table = "your_iceberg_table"
+    krb5_path = "/etc/krb5.conf"
+    kerberos_principal = "hive/your_host@EXAMPLE.COM"
+    kerberos_keytab_path = "/path/to/your.keytab"
+    plugin_output = "iceberg_kerberos"
+  }
+}
+```
+
+说明:
+
+- `krb5_path`:用于 Kerberos 认证的 `krb5.conf` 文件路径。
+- `kerberos_principal`:Kerberos 认证的 principal,格式为 `primary/instance@REALM`。
+- `kerberos_keytab_path`:Kerberos 认证的 keytab 文件路径。
+
 ### 列投影
 
 ```hocon