From 60cc9f03665b468c3aa8006e9a8691a4be808774 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Fri, 1 Dec 2023 08:57:28 +0800 Subject: [PATCH] Adjusting directory (#117) * Adjustin directory Adjusting the directory to which the connectors belong * update * Update mkdocs.yml * Update mkdocs.yml * update --- docs-2.0-en/20.appendix/6.eco-tool-version.md | 4 ++-- .../nebula-flink-connector.md | 8 +++----- .../nebula-spark-connector.md | 11 ++++------- docs-2.0-en/import-export/write-tools.md | 2 +- docs-2.0-zh/20.appendix/6.eco-tool-version.md | 4 ++-- .../nebula-flink-connector.md | 8 +++----- .../nebula-spark-connector.md | 9 +++------ docs-2.0-zh/import-export/write-tools.md | 7 +------ mkdocs.yml | 14 +++++++++----- 9 files changed, 28 insertions(+), 39 deletions(-) rename docs-2.0-en/{import-export => connector}/nebula-flink-connector.md (74%) rename docs-2.0-en/{import-export => connector}/nebula-spark-connector.md (97%) rename docs-2.0-zh/{import-export => connector}/nebula-flink-connector.md (74%) rename docs-2.0-zh/{import-export => connector}/nebula-spark-connector.md (98%) diff --git a/docs-2.0-en/20.appendix/6.eco-tool-version.md b/docs-2.0-en/20.appendix/6.eco-tool-version.md index 934fe6d5d49..209c02b5e76 100644 --- a/docs-2.0-en/20.appendix/6.eco-tool-version.md +++ b/docs-2.0-en/20.appendix/6.eco-tool-version.md @@ -49,7 +49,7 @@ NebulaGraph Importer (Importer for short) is a CSV file import tool for NebulaGr ## NebulaGraph Spark Connector -NebulaGraph Spark Connector is a Spark connector that provides the ability to read and write NebulaGraph data in the Spark standard format. NebulaGraph Spark Connector consists of two parts, Reader and Writer. For details, see [What is NebulaGraph Spark Connector](../import-export/nebula-spark-connector.md). +NebulaGraph Spark Connector is a Spark connector that provides the ability to read and write NebulaGraph data in the Spark standard format. NebulaGraph Spark Connector consists of two parts, Reader and Writer. For details, see [What is NebulaGraph Spark Connector](../connector/nebula-spark-connector.md). |NebulaGraph version|Spark Connector version| |:---|:---| @@ -57,7 +57,7 @@ NebulaGraph Spark Connector is a Spark connector that provides the ability to re ## NebulaGraph Flink Connector -NebulaGraph Flink Connector is a connector that helps Flink users quickly access NebulaGraph. It supports reading data from the NebulaGraph database or writing data read from other external data sources to the NebulaGraph database. For details, see [What is NebulaGraph Flink Connector](../import-export/nebula-flink-connector.md). +NebulaGraph Flink Connector is a connector that helps Flink users quickly access NebulaGraph. It supports reading data from the NebulaGraph database or writing data read from other external data sources to the NebulaGraph database. For details, see [What is NebulaGraph Flink Connector](../connector/nebula-flink-connector.md). |NebulaGraph version|Flink Connector version| |:---|:---| diff --git a/docs-2.0-en/import-export/nebula-flink-connector.md b/docs-2.0-en/connector/nebula-flink-connector.md similarity index 74% rename from docs-2.0-en/import-export/nebula-flink-connector.md rename to docs-2.0-en/connector/nebula-flink-connector.md index 3333506494e..a29349bd8cb 100644 --- a/docs-2.0-en/import-export/nebula-flink-connector.md +++ b/docs-2.0-en/connector/nebula-flink-connector.md @@ -9,11 +9,9 @@ For more information, see [NebulaGraph Flink Connector](https://github.com/vesof NebulaGraph Flink Connector applies to the following scenarios: -* Migrate data between different NebulaGraph clusters. - -* Migrate data between different graph spaces in the same NebulaGraph cluster. - -* Migrate data between NebulaGraph and other data sources. +- Read data from {{nebula.name}} for analysis and computation. +- Write data back to {{nebula.name}} after analysis and computation. +- Migrate the data of {{nebula.name}}. ## Release note diff --git a/docs-2.0-en/import-export/nebula-spark-connector.md b/docs-2.0-en/connector/nebula-spark-connector.md similarity index 97% rename from docs-2.0-en/import-export/nebula-spark-connector.md rename to docs-2.0-en/connector/nebula-spark-connector.md index ea335699c63..d6ddd511d0c 100644 --- a/docs-2.0-en/import-export/nebula-spark-connector.md +++ b/docs-2.0-en/connector/nebula-spark-connector.md @@ -41,13 +41,10 @@ The correspondence between the NebulaGraph Spark Connector version, the NebulaGr NebulaGraph Spark Connector applies to the following scenarios: -* Migrate data between different NebulaGraph clusters. - -* Migrate data between different graph spaces in the same NebulaGraph cluster. - -* Migrate data between NebulaGraph and other data sources. - -* Graph computing with [NebulaGraph Algorithm](../graph-computing/nebula-algorithm.md). +- Read data from {{nebula.name}} for analysis and computation. +- Write data back to {{nebula.name}} after analysis and computation. +- Migrate the data of {{nebula.name}}. +- Graph computing with [NebulaGraph Algorithm](graph-computing/nebula-algorithm.md). ## Benefits diff --git a/docs-2.0-en/import-export/write-tools.md b/docs-2.0-en/import-export/write-tools.md index 751dd41230b..a50cd9e0e07 100644 --- a/docs-2.0-en/import-export/write-tools.md +++ b/docs-2.0-en/import-export/write-tools.md @@ -6,7 +6,7 @@ There are many ways to write NebulaGraph {{ nebula.release }}: - Import with [Studio](../nebula-studio/quick-start/st-ug-import-data.md): This method uses a browser to import multiple csv files of this machine. A single file cannot exceed 100 MB, and its format is limited. - Import with [Importer](use-importer.md): This method imports multiple csv files on a single machine with unlimited size and flexible format. - Import with [Exchange](nebula-exchange/about-exchange/ex-ug-what-is-exchange.md): This method imports from various distribution sources, such as Neo4j, Hive, MySQL, etc., which requires a Spark cluster. -- Import with [Spark-connector](nebula-spark-connector.md)/[Flink-connector](nebula-flink-connector.md): This method has corresponding components (Spark/Flink) and writes a small amount of code. +- Import with [Spark-connector](../connector/nebula-spark-connector.md)/[Flink-connector](../connector/nebula-flink-connector.md): This method has corresponding components (Spark/Flink) and writes a small amount of code. - Import with [C++/GO/Java/Python SDK](../20.appendix/6.eco-tool-version.md): This method imports in the way of writing programs, which requires certain programming and tuning skills. The following figure shows the positions of these ways: diff --git a/docs-2.0-zh/20.appendix/6.eco-tool-version.md b/docs-2.0-zh/20.appendix/6.eco-tool-version.md index 26202dd0ba6..36f002b72d6 100644 --- a/docs-2.0-zh/20.appendix/6.eco-tool-version.md +++ b/docs-2.0-zh/20.appendix/6.eco-tool-version.md @@ -51,7 +51,7 @@ NebulaGraph Importer(简称 Importer)是一款 {{nebula.name}} 的 CSV 文 ## NebulaGraph Spark Connector -NebulaGraph Spark Connector 是一个 Spark 连接器,提供通过 Spark 标准形式读写 {{nebula.name}} 数据的能力。NebulaGraph Spark Connector 由 Reader 和 Writer 两部分组成。详情请参见[什么是 NebulaGraph Spark Connector](../import-export/nebula-spark-connector.md)。 +NebulaGraph Spark Connector 是一个 Spark 连接器,提供通过 Spark 标准形式读写{{nebula.name}}数据的能力。NebulaGraph Spark Connector 由 Reader 和 Writer 两部分组成。详情请参见[什么是 NebulaGraph Spark Connector](../connector/nebula-spark-connector.md)。 | {{nebula.name}} 版本|Spark Connector 版本| |:---|:---| @@ -59,7 +59,7 @@ NebulaGraph Spark Connector 是一个 Spark 连接器,提供通过 Spark 标 ## NebulaGraph Flink Connector -NebulaGraph Flink Connector 是一款帮助 Flink 用户快速访问 {{nebula.name}} 的连接器,支持从 {{nebula.name}} 中读取数据,或者将其他外部数据源读取的数据写入 {{nebula.name}} 。详情请参见[什么是 NebulaGraph Flink Connector](../import-export/nebula-flink-connector.md)。 +NebulaGraph Flink Connector 是一款帮助 Flink 用户快速访问{{nebula.name}}的连接器,支持从{{nebula.name}}中读取数据,或者将其他外部数据源读取的数据写入{{nebula.name}}。详情请参见[什么是 NebulaGraph Flink Connector](../connector/nebula-flink-connector.md)。 | {{nebula.name}} 版本|Flink Connector 版本| |:---|:---| diff --git a/docs-2.0-zh/import-export/nebula-flink-connector.md b/docs-2.0-zh/connector/nebula-flink-connector.md similarity index 74% rename from docs-2.0-zh/import-export/nebula-flink-connector.md rename to docs-2.0-zh/connector/nebula-flink-connector.md index 26db208e46e..c0a7585f3d1 100644 --- a/docs-2.0-zh/import-export/nebula-flink-connector.md +++ b/docs-2.0-zh/connector/nebula-flink-connector.md @@ -8,11 +8,9 @@ NebulaGraph Flink Connector 是一款帮助 Flink 用户快速访问 {{nebula.na NebulaGraph Flink Connector 适用于以下场景: -- 在不同的 {{nebula.name}} 集群之间迁移数据。 - -- 在同一个 {{nebula.name}} 集群内不同图空间之间迁移数据。 - -- {{nebula.name}} 与其他数据源之间迁移数据。 +- 读取{{nebula.name}}数据进行分析计算。 +- 分析计算完的数据写入{{nebula.name}}。 +- 迁移数据。 ## 更新说明 diff --git a/docs-2.0-zh/import-export/nebula-spark-connector.md b/docs-2.0-zh/connector/nebula-spark-connector.md similarity index 98% rename from docs-2.0-zh/import-export/nebula-spark-connector.md rename to docs-2.0-zh/connector/nebula-spark-connector.md index 7afd98760ce..dc4f377984b 100644 --- a/docs-2.0-zh/import-export/nebula-spark-connector.md +++ b/docs-2.0-zh/connector/nebula-spark-connector.md @@ -41,12 +41,9 @@ NebulaGraph Spark Connector、 {{nebula.name}} 内核版本和 Spark 版本对 NebulaGraph Spark Connector 适用于以下场景: -- 在不同的 {{nebula.name}} 集群之间迁移数据。 - -- 在同一个 {{nebula.name}} 集群内不同图空间之间迁移数据。 - -- {{nebula.name}} 与其他数据源之间迁移数据。 - +- 读取{{nebula.name}}数据进行分析计算。 +- 分析计算完的数据写入{{nebula.name}}。 +- 迁移{{nebula.name}}数据。 - 结合 [NebulaGraph Algorithm](../graph-computing/nebula-algorithm.md) 进行图计算。 ## 特性 diff --git a/docs-2.0-zh/import-export/write-tools.md b/docs-2.0-zh/import-export/write-tools.md index 45d7131c3c7..f809e225a59 100644 --- a/docs-2.0-zh/import-export/write-tools.md +++ b/docs-2.0-zh/import-export/write-tools.md @@ -1,11 +1,6 @@ - - - - # 导入工具选择 - 有多种方式可以将数据写入 {{nebula.name}} {{ nebula.release }}: - 使用[命令行 -f 的方式](../2.quick-start/3.quick-start-on-premise/3.connect-to-nebula-graph.md)导入:可以导入少量准备好的 nGQL 文件,适合少量手工测试数据准备; @@ -14,7 +9,7 @@ - 使用 [Importer 导入](use-importer.md):导入单机多个 csv 文件,大小没有限制,格式灵活;数据量十亿级以内; - 使用 [Exchange 导入](nebula-exchange/about-exchange/ex-ug-what-is-exchange.md):从 Neo4j, Hive, MySQL 等多种源分布式导入,需要有 Spark 集群;数据量十亿级以上 -- 使用 [Spark-connector](nebula-spark-connector.md)/[Flink-connector](nebula-flink-connector.md) 导入:有相应组件 (Spark/Flink),撰写少量代码; +- 使用 [Spark-connector](../connector/nebula-spark-connector.md)/[Flink-connector](../connector/nebula-flink-connector.md) 导入:有相应组件 (Spark/Flink),撰写少量代码; - 使用 [C++/GO/Java/Python SDK](../20.appendix/6.eco-tool-version.md):编写程序的方式导入,需要有一定编程和调优能力。 下图给出了几种方式的定位: diff --git a/mkdocs.yml b/mkdocs.yml index 44048aaaecc..d7b88771678 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -540,8 +540,10 @@ nav: - Import data from JDBC: import-export/nebula-exchange/use-exchange/ex-ug-import-from-jdbc.md - Import data from SST files: import-export/nebula-exchange/use-exchange/ex-ug-import-from-sst.md - Exchange FAQ: import-export/nebula-exchange/ex-ug-FAQ.md - - Spark Connector: import-export/nebula-spark-connector.md - - Flink Connector: import-export/nebula-flink-connector.md + + - Connectors: + - NebulaGraph Spark Connector: connector/nebula-spark-connector.md + - NebulaGraph Flink Connector: connector/nebula-flink-connector.md - Best practices: - Compaction: 8.service-tuning/compaction.md @@ -895,9 +897,11 @@ nav: - 导入 SST 文件数据: import-export/nebula-exchange/use-exchange/ex-ug-import-from-sst.md - Exchange 常见问题: import-export/nebula-exchange/ex-ug-FAQ.md - - NebulaGraph Spark Connector: import-export/nebula-spark-connector.md - - - NebulaGraph Flink Connector: import-export/nebula-flink-connector.md + - 连接器: + + - NebulaGraph Spark Connector: connector/nebula-spark-connector.md + + - NebulaGraph Flink Connector: connector/nebula-flink-connector.md - 最佳实践: - Compaction: 8.service-tuning/compaction.md