From 0536c41a80c74e338e43968c165bcab0e154704c Mon Sep 17 00:00:00 2001 From: Nguyen Quang Minh <135627235+n24q02m@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:01:20 +0700 Subject: [PATCH 1/4] fix: document Kafka skipped_line limitation - Clarify that Kafka input accepts skipped_line but does not apply it. - Recommend preprocessing the topic or using FILE/HDFS for line filtering. - Update both English and Chinese guides. --- content/cn/docs/quickstart/toolchain/hugegraph-loader.md | 4 ++++ content/en/docs/quickstart/toolchain/hugegraph-loader.md | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/content/cn/docs/quickstart/toolchain/hugegraph-loader.md b/content/cn/docs/quickstart/toolchain/hugegraph-loader.md index 52bcc24bcd..3bb9766136 100644 --- a/content/cn/docs/quickstart/toolchain/hugegraph-loader.md +++ b/content/cn/docs/quickstart/toolchain/hugegraph-loader.md @@ -5,6 +5,10 @@ weight: 2 search_keywords: [HugeGraph Loader, 批量导入, 数据导入] search_boost: 1.6 --- +> **Kafka 与 `skipped_line`:** HugeGraph Loader 在 Kafka 输入源中接受 +> `skipped_line`,但不会对 Kafka 消息应用该过滤。如需跳过行,请在写入 topic +> 前预处理,或改用 `FILE`/`HDFS` 输入源。 + 本文以 Toolchain `master` 分支(以 1.8 为基线,尚未正式发布)为准。发布版和 Docker `latest` 可能存在部分差异,使用未发布功能前请先核对版本。 diff --git a/content/en/docs/quickstart/toolchain/hugegraph-loader.md b/content/en/docs/quickstart/toolchain/hugegraph-loader.md index ce6908771b..3a643c1223 100644 --- a/content/en/docs/quickstart/toolchain/hugegraph-loader.md +++ b/content/en/docs/quickstart/toolchain/hugegraph-loader.md @@ -6,6 +6,11 @@ search_keywords: [HugeGraph Loader, bulk import, data loading] search_boost: 1.6 description: "Bulk import graph data into HugeGraph with Loader from files, HDFS, relational databases, Kafka, and other HugeGraph graphs." --- +> **Kafka and `skipped_line`:** HugeGraph Loader accepts `skipped_line` for +> Kafka input sources, but it does not apply the filter to Kafka messages. +> Preprocess the topic or use a `FILE`/`HDFS` input source if you need to skip +> lines. + This guide aligns with the Toolchain `master` branch (currently based on 1.8, unreleased). Released packages and Docker `latest` may differ; check your version before using unreleased features. From 19589150b634d45b71112fdcc4344021b8ac3272 Mon Sep 17 00:00:00 2001 From: Nguyen Quang Minh <135627235+n24q02m@users.noreply.github.com> Date: Sat, 21 Nov 2026 19:48:50 +0700 Subject: [PATCH 2/4] fix: move Kafka skipped_line workaround into the existing bullet --- content/cn/docs/quickstart/toolchain/hugegraph-loader.md | 6 +----- content/en/docs/quickstart/toolchain/hugegraph-loader.md | 7 +------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/content/cn/docs/quickstart/toolchain/hugegraph-loader.md b/content/cn/docs/quickstart/toolchain/hugegraph-loader.md index 3bb9766136..1e2192cf5a 100644 --- a/content/cn/docs/quickstart/toolchain/hugegraph-loader.md +++ b/content/cn/docs/quickstart/toolchain/hugegraph-loader.md @@ -5,10 +5,6 @@ weight: 2 search_keywords: [HugeGraph Loader, 批量导入, 数据导入] search_boost: 1.6 --- -> **Kafka 与 `skipped_line`:** HugeGraph Loader 在 Kafka 输入源中接受 -> `skipped_line`,但不会对 Kafka 消息应用该过滤。如需跳过行,请在写入 topic -> 前预处理,或改用 `FILE`/`HDFS` 输入源。 - 本文以 Toolchain `master` 分支(以 1.8 为基线,尚未正式发布)为准。发布版和 Docker `latest` 可能存在部分差异,使用未发布功能前请先核对版本。 @@ -796,7 +792,7 @@ schema: 必填 - date_format:自定义的日期格式,默认值为 yyyy-MM-dd HH:mm:ss,选填;如果日期是以时间戳的形式呈现的,此项须写为 timestamp(固定写法); - extra_date_formats:自定义的其他日期格式列表,默认为空,选填;列表中每一项都是一个 date_format 指定日期格式的备用日期格式; - time_zone:置日期数据是处于哪个时区的,默认值为 GMT+8,选填; -- skipped_line:当前 master 的 KafkaReader 未实现该过滤,配置此字段不会跳过 Kafka 消息;每条消息仍会直接交给所选格式的解析器,空行或注释行可能因此触发解析错误。需要过滤时请在写入 Kafka 前或消费侧预处理; +- skipped_line:当前 master 的 KafkaReader 未实现该过滤,配置此字段不会跳过 Kafka 消息;每条消息仍会直接交给所选格式的解析器,空行或注释行可能因此触发解析错误。需要过滤时请在写入 Kafka 前或消费侧预处理,或将消息导出为文件后改用 `FILE`/`HDFS` 输入源(这类输入源会应用 `skipped_line`); - batch_size:单次拉取的最大记录数(`max.poll.records`),默认为 500,选填; - early_stop:某次从 Kafka broker 拉取的记录为空,停止任务,默认为 false,仅用于调试,选填; diff --git a/content/en/docs/quickstart/toolchain/hugegraph-loader.md b/content/en/docs/quickstart/toolchain/hugegraph-loader.md index 3a643c1223..3cd785e334 100644 --- a/content/en/docs/quickstart/toolchain/hugegraph-loader.md +++ b/content/en/docs/quickstart/toolchain/hugegraph-loader.md @@ -6,11 +6,6 @@ search_keywords: [HugeGraph Loader, bulk import, data loading] search_boost: 1.6 description: "Bulk import graph data into HugeGraph with Loader from files, HDFS, relational databases, Kafka, and other HugeGraph graphs." --- -> **Kafka and `skipped_line`:** HugeGraph Loader accepts `skipped_line` for -> Kafka input sources, but it does not apply the filter to Kafka messages. -> Preprocess the topic or use a `FILE`/`HDFS` input source if you need to skip -> lines. - This guide aligns with the Toolchain `master` branch (currently based on 1.8, unreleased). Released packages and Docker `latest` may differ; check your version before using unreleased features. @@ -799,7 +794,7 @@ schema: required - date_format: customized date format, default value is yyyy-MM-dd HH:mm:ss, optional; if the date is presented in the form of timestamp, this item must be written as timestamp (fixed); - extra_date_formats: a customized list of another date formats, empty by default, optional; each item in the list is an alternate date format to the date_format specified date format; - time_zone: set which time zone the date data is in, default is GMT+8, optional; -- skipped_line: current master `KafkaReader` does not implement this filter. Kafka messages go directly to the parser, so configuring this field does not skip blank or comment messages; preprocess them upstream or in the consumer to avoid parse failures; +- skipped_line: current master `KafkaReader` does not implement this filter. Kafka messages go directly to the parser, so configuring this field does not skip blank or comment messages; preprocess them upstream or in the consumer to avoid parse failures, or export the messages to files and load them through a `FILE`/`HDFS` input source, which applies `skipped_line`; - batch_size: the maximum number of records fetched in one poll (`max.poll.records`), default is 500, optional; - early_stop: the record pulled from Kafka broker at a certain time is empty, stop the task, default is false, only for debugging, optional; From 5593f02719a2c0754fc74d856d522e009fe88b27 Mon Sep 17 00:00:00 2001 From: Nguyen Quang Minh <135627235+n24q02m@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:07:16 +0700 Subject: [PATCH 3/4] fix: qualify FILE/HDFS skipped_line advice to line-oriented formats --- content/cn/docs/quickstart/toolchain/hugegraph-loader.md | 2 +- content/en/docs/quickstart/toolchain/hugegraph-loader.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/cn/docs/quickstart/toolchain/hugegraph-loader.md b/content/cn/docs/quickstart/toolchain/hugegraph-loader.md index 1e2192cf5a..78e2f61fbf 100644 --- a/content/cn/docs/quickstart/toolchain/hugegraph-loader.md +++ b/content/cn/docs/quickstart/toolchain/hugegraph-loader.md @@ -792,7 +792,7 @@ schema: 必填 - date_format:自定义的日期格式,默认值为 yyyy-MM-dd HH:mm:ss,选填;如果日期是以时间戳的形式呈现的,此项须写为 timestamp(固定写法); - extra_date_formats:自定义的其他日期格式列表,默认为空,选填;列表中每一项都是一个 date_format 指定日期格式的备用日期格式; - time_zone:置日期数据是处于哪个时区的,默认值为 GMT+8,选填; -- skipped_line:当前 master 的 KafkaReader 未实现该过滤,配置此字段不会跳过 Kafka 消息;每条消息仍会直接交给所选格式的解析器,空行或注释行可能因此触发解析错误。需要过滤时请在写入 Kafka 前或消费侧预处理,或将消息导出为文件后改用 `FILE`/`HDFS` 输入源(这类输入源会应用 `skipped_line`); +- skipped_line:当前 master 的 KafkaReader 未实现该过滤,配置此字段不会跳过 Kafka 消息;每条消息仍会直接交给所选格式的解析器,空行或注释行可能因此触发解析错误。需要过滤时请在写入 Kafka 前或消费侧预处理,或将消息导出为按行存储的文本文件(CSV、TEXT 或 JSON,不含 ORC 和 Parquet,后两者的读取器不会检查 `skipped_line`)后改用 `FILE`/`HDFS` 输入源; - batch_size:单次拉取的最大记录数(`max.poll.records`),默认为 500,选填; - early_stop:某次从 Kafka broker 拉取的记录为空,停止任务,默认为 false,仅用于调试,选填; diff --git a/content/en/docs/quickstart/toolchain/hugegraph-loader.md b/content/en/docs/quickstart/toolchain/hugegraph-loader.md index 3cd785e334..3e4d03816f 100644 --- a/content/en/docs/quickstart/toolchain/hugegraph-loader.md +++ b/content/en/docs/quickstart/toolchain/hugegraph-loader.md @@ -794,7 +794,7 @@ schema: required - date_format: customized date format, default value is yyyy-MM-dd HH:mm:ss, optional; if the date is presented in the form of timestamp, this item must be written as timestamp (fixed); - extra_date_formats: a customized list of another date formats, empty by default, optional; each item in the list is an alternate date format to the date_format specified date format; - time_zone: set which time zone the date data is in, default is GMT+8, optional; -- skipped_line: current master `KafkaReader` does not implement this filter. Kafka messages go directly to the parser, so configuring this field does not skip blank or comment messages; preprocess them upstream or in the consumer to avoid parse failures, or export the messages to files and load them through a `FILE`/`HDFS` input source, which applies `skipped_line`; +- skipped_line: current master `KafkaReader` does not implement this filter. Kafka messages go directly to the parser, so configuring this field does not skip blank or comment messages; preprocess them upstream or in the consumer to avoid parse failures, or export the messages to line-oriented files (CSV, TEXT, or JSON; not ORC or Parquet, whose readers do not check `skipped_line`) and load them through a `FILE`/`HDFS` input source; - batch_size: the maximum number of records fetched in one poll (`max.poll.records`), default is 500, optional; - early_stop: the record pulled from Kafka broker at a certain time is empty, stop the task, default is false, only for debugging, optional; From 5fca8e37fc1dd3f06c4fefa92747d16960630e41 Mon Sep 17 00:00:00 2001 From: Nguyen Quang Minh <135627235+n24q02m@users.noreply.github.com> Date: Tue, 24 Nov 2026 07:18:16 +0700 Subject: [PATCH 4/4] fix: clarify CSV/TEXT header requirement for FILE/HDFS skipped_line --- content/cn/docs/quickstart/toolchain/hugegraph-loader.md | 2 +- content/en/docs/quickstart/toolchain/hugegraph-loader.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/cn/docs/quickstart/toolchain/hugegraph-loader.md b/content/cn/docs/quickstart/toolchain/hugegraph-loader.md index 78e2f61fbf..c5ec6c4140 100644 --- a/content/cn/docs/quickstart/toolchain/hugegraph-loader.md +++ b/content/cn/docs/quickstart/toolchain/hugegraph-loader.md @@ -792,7 +792,7 @@ schema: 必填 - date_format:自定义的日期格式,默认值为 yyyy-MM-dd HH:mm:ss,选填;如果日期是以时间戳的形式呈现的,此项须写为 timestamp(固定写法); - extra_date_formats:自定义的其他日期格式列表,默认为空,选填;列表中每一项都是一个 date_format 指定日期格式的备用日期格式; - time_zone:置日期数据是处于哪个时区的,默认值为 GMT+8,选填; -- skipped_line:当前 master 的 KafkaReader 未实现该过滤,配置此字段不会跳过 Kafka 消息;每条消息仍会直接交给所选格式的解析器,空行或注释行可能因此触发解析错误。需要过滤时请在写入 Kafka 前或消费侧预处理,或将消息导出为按行存储的文本文件(CSV、TEXT 或 JSON,不含 ORC 和 Parquet,后两者的读取器不会检查 `skipped_line`)后改用 `FILE`/`HDFS` 输入源; +- skipped_line:当前 master 的 KafkaReader 未实现该过滤,配置此字段不会跳过 Kafka 消息;每条消息仍会直接交给所选格式的解析器,空行或注释行可能因此触发解析错误。需要过滤时请在写入 Kafka 前或消费侧预处理,或将消息导出为按行存储的文本文件(CSV、TEXT 或 JSON,不含 ORC 和 Parquet,后两者的读取器不会检查 `skipped_line`)后改用 `FILE`/`HDFS` 输入源(对于 CSV 和 TEXT,请显式配置 `header` 或将有效表头放在待跳过行之前的首行,因为 `FileLineFetcher.readHeader()` 会在应用 `skipped_line` 之前读取首行); - batch_size:单次拉取的最大记录数(`max.poll.records`),默认为 500,选填; - early_stop:某次从 Kafka broker 拉取的记录为空,停止任务,默认为 false,仅用于调试,选填; diff --git a/content/en/docs/quickstart/toolchain/hugegraph-loader.md b/content/en/docs/quickstart/toolchain/hugegraph-loader.md index 3e4d03816f..c363387621 100644 --- a/content/en/docs/quickstart/toolchain/hugegraph-loader.md +++ b/content/en/docs/quickstart/toolchain/hugegraph-loader.md @@ -794,7 +794,7 @@ schema: required - date_format: customized date format, default value is yyyy-MM-dd HH:mm:ss, optional; if the date is presented in the form of timestamp, this item must be written as timestamp (fixed); - extra_date_formats: a customized list of another date formats, empty by default, optional; each item in the list is an alternate date format to the date_format specified date format; - time_zone: set which time zone the date data is in, default is GMT+8, optional; -- skipped_line: current master `KafkaReader` does not implement this filter. Kafka messages go directly to the parser, so configuring this field does not skip blank or comment messages; preprocess them upstream or in the consumer to avoid parse failures, or export the messages to line-oriented files (CSV, TEXT, or JSON; not ORC or Parquet, whose readers do not check `skipped_line`) and load them through a `FILE`/`HDFS` input source; +- skipped_line: current master `KafkaReader` does not implement this filter. Kafka messages go directly to the parser, so configuring this field does not skip blank or comment messages; preprocess them upstream or in the consumer to avoid parse failures, or export the messages to line-oriented files (CSV, TEXT, or JSON; not ORC or Parquet, whose readers do not check `skipped_line`) and load them through a `FILE`/`HDFS` input source (for CSV and TEXT, configure an explicit `header` or place a valid header on the first line before any lines to skip, since `FileLineFetcher.readHeader()` reads the first physical line before applying `skipped_line`); - batch_size: the maximum number of records fetched in one poll (`max.poll.records`), default is 500, optional; - early_stop: the record pulled from Kafka broker at a certain time is empty, stop the task, default is false, only for debugging, optional;