From db5c161f86c3416d9c6bf176aa3fa14eed182ba6 Mon Sep 17 00:00:00 2001 From: imbajin Date: Mon, 2 Jan 2023 16:38:22 +0000 Subject: [PATCH] translate hugegraph tools doc (#173) * translate hugegraph tools doc * fix spelling 577a705cab8ed5aa42e1ee1c221efdef1ed7d6f8 --- docs/_print/index.html | 40 +-- docs/index.xml | 298 ++++++++++----------- docs/quickstart/_print/index.html | 40 +-- docs/quickstart/hugegraph-tools/index.html | 85 +++--- docs/quickstart/index.xml | 296 ++++++++++---------- en/sitemap.xml | 2 +- sitemap.xml | 2 +- 7 files changed, 372 insertions(+), 391 deletions(-) diff --git a/docs/_print/index.html b/docs/_print/index.html index cbc422049..f8f5f4ad0 100644 --- a/docs/_print/index.html +++ b/docs/_print/index.html @@ -650,13 +650,13 @@ --deploy-mode cluster --name spark-hugegraph-loader --file ./hugegraph.json \ --username admin --token admin --host xx.xx.xx.xx --port 8093 \ --graph graph-test --num-executors 6 --executor-cores 16 --executor-memory 15g -

3.3 - HugeGraph-Tools Quick Start

1 HugeGraph-Tools概述

HugeGraph-Tools 是 HugeGraph 的自动化部署、管理和备份/还原组件。

2 获取 HugeGraph-Tools

有两种方式可以获取 HugeGraph-Tools:

2.1 下载二进制tar包

下载最新版本的 HugeGraph-Tools 包:

wget https://github.com/hugegraph/hugegraph-tools/releases/download/v${version}/hugegraph-tools-${version}.tar.gz
+

3.3 - HugeGraph-Tools Quick Start

1 HugeGraph-Tools Overview

HugeGraph-Tools is an automated deployment, management and backup/restore component of HugeGraph.

2 Get HugeGraph-Tools

There are two ways to get HugeGraph-Tools:

2.1 Download the compiled archive

Download the latest version of the HugeGraph-Tools package:

wget https://github.com/hugegraph/hugegraph-tools/releases/download/v${version}/hugegraph-tools-${version}.tar.gz
 tar zxvf hugegraph-tools-${version}.tar.gz
-

2.2 下载源码编译安装

下载最新版本的 HugeGraph-Tools 源码包:

$ git clone https://github.com/hugegraph/hugegraph-tools.git
-

编译生成 tar 包:

cd hugegraph-tools
+

2.2 Clone source code to compile and install

Download the latest version of the HugeGraph-Tools source package:

$ git clone https://github.com/hugegraph/hugegraph-tools.git
+

Compile and generate tar package:

cd hugegraph-tools
 mvn package -DskipTests
-

生成 tar 包 hugegraph-tools-${version}.tar.gz

3 使用

3.1 功能概览

解压后,进入 hugegraph-tools 目录,可以使用bin/hugegraph或者bin/hugegraph help来查看 usage 信息。主要分为:

Usage: hugegraph [options] [command] [command options]
-
3.2 [options]-全局变量

options是 HugeGraph-Tools 的全局变量,可以在 hugegraph-tools/bin/hugegraph 中配置,包括:

上述全局变量,也可以通过环境变量来设置。一种方式是在命令行使用 export 设置临时环境变量,在该命令行关闭之前均有效

全局变量环境变量示例
–urlHUGEGRAPH_URLexport HUGEGRAPH_URL=http://127.0.0.1:8080
–graphHUGEGRAPH_GRAPHexport HUGEGRAPH_GRAPH=hugegraph
–userHUGEGRAPH_USERNAMEexport HUGEGRAPH_USERNAME=admin
–passwordHUGEGRAPH_PASSWORDexport HUGEGRAPH_PASSWORD=test
–timeoutHUGEGRAPH_TIMEOUTexport HUGEGRAPH_TIMEOUT=30
–trust-store-fileHUGEGRAPH_TRUST_STORE_FILEexport HUGEGRAPH_TRUST_STORE_FILE=/tmp/trust-store
–trust-store-passwordHUGEGRAPH_TRUST_STORE_PASSWORDexport HUGEGRAPH_TRUST_STORE_PASSWORD=xxxx

另一种方式是在 bin/hugegraph 脚本中设置环境变量:

#!/bin/bash
+

Generate tar package hugegraph-tools-${version}.tar.gz

3 How to use

3.1 Function overview

After decompression, enter the hugegraph-tools directory, you can use bin/hugegraph or bin/hugegraph help to view the usage information. mainly divided:

Usage: hugegraph [options] [command] [command options]
+
3.2 [options]-Global Variable

options is a global variable of HugeGraph-Tools, which can be configured in hugegraph-tools/bin/hugegraph, including:

The above global variables can also be set through environment variables. One way is to use export on the command line to set temporary environment variables, which are valid until the command line is closed

Global VariableEnvironment VariableExample
–urlHUGEGRAPH_URLexport HUGEGRAPH_URL=http://127.0.0.1:8080
–graphHUGEGRAPH_GRAPHexport HUGEGRAPH_GRAPH=hugegraph
–userHUGEGRAPH_USERNAMEexport HUGEGRAPH_USERNAME=admin
–passwordHUGEGRAPH_PASSWORDexport HUGEGRAPH_PASSWORD=test
–timeoutHUGEGRAPH_TIMEOUTexport HUGEGRAPH_TIMEOUT=30
–trust-store-fileHUGEGRAPH_TRUST_STORE_FILEexport HUGEGRAPH_TRUST_STORE_FILE=/tmp/trust-store
–trust-store-passwordHUGEGRAPH_TRUST_STORE_PASSWORDexport HUGEGRAPH_TRUST_STORE_PASSWORD=xxxx

Another way is to set the environment variable in the bin/hugegraph script:

#!/bin/bash
 
 # Set environment here if needed
 #export HUGEGRAPH_URL=
@@ -666,10 +666,10 @@
 #export HUGEGRAPH_TIMEOUT=
 #export HUGEGRAPH_TRUST_STORE_FILE=
 #export HUGEGRAPH_TRUST_STORE_PASSWORD=
-
3.3 图管理类,graph-mode-set、graph-mode-get、graph-list、graph-get和graph-clear

当需要把备份的图原样恢复到一个新的图中的时候,需要先将图模式设置为 RESTORING 模式;当需要将备份的图合并到已存在的图中时,需要先将图模式设置为 MERGING 模式。

3.4 异步任务管理类,task-list、task-get和task-delete
3.5 Gremlin类,gremlin-execute和gremlin-schedule
3.6 备份/恢复类
3.7 安装部署类

deploy命令中有可选参数 -u,提供时会使用指定的下载地址替代默认下载地址下载 tar 包,并且将地址写入~/hugegraph-download-url-prefix文件中;之后如果不指定地址时,会优先从~/hugegraph-download-url-prefix指定的地址下载 tar 包;如果 -u 和~/hugegraph-download-url-prefix都没有时,会从默认下载地址进行下载

3.8 具体命令参数

各子命令的具体参数如下:

Usage: hugegraph [options] [command] [command options]
+
3.3 Graph Management Type,graph-mode-set、graph-mode-get、graph-list、graph-get and graph-clear

When you need to restore the backup graph to a new graph, you need to set the graph mode to RESTORING mode; when you need to merge the backup graph into an existing graph, you need to first set the graph mode to MERGING model.

3.4 Asynchronous task management Type,task-list、task-get and task-delete
3.5 Gremlin Type,gremlin-execute and gremlin-schedule
3.6 Backup/Restore Type
3.7 Install the deployment type

There is an optional parameter -u in the deploy command. When provided, the specified download address will be used instead of the default download address to download the tar package, and the address will be written into the ~/hugegraph-download-url-prefix file; if no address is specified later When -u and ~/hugegraph-download-url-prefix are not specified, the tar package will be downloaded from the address specified by ~/hugegraph-download-url-prefix; if there is neither -u nor ~/hugegraph-download-url-prefix, it will be downloaded from the default download address

3.8 Specific command parameters

The specific parameters of each subcommand are as follows:

Usage: hugegraph [options] [command] [command options]
   Options:
     --graph
       Name of graph
@@ -970,35 +970,35 @@
 
     help      Print usage
       Usage: help
-
3.9 具体命令示例
1. gremlin语句
# 同步执行gremlin
+
3.9 Specific command example
1. gremlin statement
# Execute gremlin synchronously
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph gremlin-execute --script 'g.V().count()'
 
-# 异步执行gremlin
+# Execute gremlin asynchronously
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph gremlin-schedule --script 'g.V().count()'
-
2. 查看task情况
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list
+
2. Show task status
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list --limit 5
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list --status success
-
3. 图模式查看和设置
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING MERGING NONE
+
3. Set and show graph mode
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING MERGING NONE
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-get
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-list
-
4. 清理图
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-clear -c "I'm sure to delete all data"
-
5. 图备份
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph backup -t all --directory ./backup-test
-
6. 周期性的备份
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph --interval */2 * * * * schedule-backup -d ./backup-0.10.2
-
7. 图恢复
# 设置图模式
+
4. Cleanup Graph
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-clear -c "I'm sure to delete all data"
+
5. Backup Graph
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph backup -t all --directory ./backup-test
+
6. Periodic Backup Graph
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph --interval */2 * * * * schedule-backup -d ./backup-0.10.2
+
7. Recovery Graph
# set graph mode
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING
 
-# 恢复图
+# recovery graph
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph restore -t all --directory ./backup-test
 
-# 恢复图模式
+# restore graph mode
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m NONE
-
8. 图迁移
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph migrate --target-url http://127.0.0.1:8090 --target-graph hugegraph
+
8. Graph Migration
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph migrate --target-url http://127.0.0.1:8090 --target-graph hugegraph
 

3.4 - HugeGraph-Hubble Quick Start

1 HugeGraph-Hubble Overview

HugeGraph is an analysis-oriented graph database system that supports batch operations, which fully supports Apache TinkerPop3 framework and Gremlin graph query language. It provides a complete tool chain ecology such as export, backup, and recovery, and effectively solve the storage, query and correlation analysis needs of massive graph data. HugeGraph is widely used in the fields of risk control, insurance claims, recommendation search, public security crime crackdown, knowledge graph, network security, IT operation and maintenance of bank securities companies, and is committed to allowing more industries, organizations and users to enjoy a wider range of data comprehensive value.

HugeGraph-Hubble is HugeGraph’s one-stop visual analysis platform. The platform covers the whole process from data modeling, to efficient data import, to real-time and offline analysis of data, and unified management of graphs, realizing the whole process wizard of graph application. It is designed to improve the user’s use fluency, lower the user’s use threshold, and provide a more efficient and easy-to-use user experience.

The platform mainly includes the following modules:

Graph Management

The graph management module realizes the unified management of multiple graphs and graph access, editing, deletion, and query by creating graph and connecting the platform and graph data.

Metadata Modeling

The metadata modeling module realizes the construction and management of graph models by creating attribute libraries, vertex types, edge types, and index types. The platform provides two modes, list mode and graph mode, which can display the metadata model in real time, which is more intuitive. At the same time, it also provides a metadata reuse function across graphs, which saves the tedious and repetitive creation process of the same metadata, greatly improves modeling efficiency and enhances ease of use.

Data Import

Data import is to convert the user’s business data into the vertices and edges of the graph and insert it into the graph database. The platform provides a wizard-style visual import module. By creating import tasks, the management of import tasks and the parallel operation of multiple import tasks are realized. Improve import performance. After entering the import task, you only need to follow the platform step prompts, upload files as needed, and fill in the content to easily implement the import process of graph data. At the same time, it supports breakpoint resuming, error retry mechanism, etc., which reduces import costs and improves efficiency.

Graph Analysis

By inputting the graph traversal language Gremlin, high-performance general analysis of graph data can be realized, and functions such as customized multidimensional path query of vertices can be provided, and three kinds of graph result display methods are provided, including: graph form, table form, Json form, and multidimensional display. The data form meets the needs of various scenarios used by users. It provides functions such as running records and collection of common statements, realizing the traceability of graph operations, and the reuse and sharing of query input, which is fast and efficient. It supports the export of graph data, and the export format is Json format.

Task Management

For Gremlin tasks that need to traverse the whole graph, index creation and reconstruction and other time-consuming asynchronous tasks, the platform provides corresponding task management functions to achieve unified management and result viewing of asynchronous tasks.

2 Platform Workflow

The module usage process of the platform is as follows:

image

3 Platform Instructions

3.1 Graph Management

3.1.1 Graph creation

Under the graph management module, click [Create graph], and realize the connection of multiple graphs by filling in the graph ID, graph name, host name, port number, username, and password information.

image

Create graph by filling in the content as follows::

image
3.1.2 Graph Access

Realize the information access of the graph space. After entering, you can perform operations such as multidimensional query analysis, metadata management, data import, and algorithm analysis of the graph.

image
3.1.3 Graph management
  1. Users can achieve unified management of graphs through overview, search, and information editing and deletion of single graphs.
  2. Search range: You can search for the graph name and ID.
image

3.2 Metadata Modeling (list + graph mode)

3.2.1 Module entry

Left navigation:

image
3.2.2 Property type
3.2.2.1 Create type
  1. Fill in or select the attribute name, data type, and cardinality to complete the creation of the attribute.
  2. Created attributes can be used as attributes of vertex type and edge type.

List mode:

image

Graph mode:

image
3.2.2.2 Reuse
  1. The platform provides the [Reuse] function, which can directly reuse the metadata of other graphs.
  2. Select the graph ID that needs to be reused, and continue to select the attributes that need to be reused. After that, the platform will check whether there is a conflict. After passing, the metadata can be reused.

Select reuse items:

image

Check reuse items:

image
3.2.2.3 Management
  1. You can delete a single item or delete it in batches in the attribute list.
3.2.3 Vertex type
3.2.3.1 Create type
  1. Fill in or select the vertex type name, ID strategy, association attribute, primary key attribute, vertex style, content displayed below the vertex in the query result, and index information: including whether to create a type index, and the specific content of the attribute index, complete the vertex Type creation.

List mode:

image

Graph mode:

image
3.2.3.2 Reuse
  1. The multiplexing of vertex types will reuse the attributes and attribute indexes associated with this type together.
  2. The reuse method is similar to the property reuse, see 3.2.2.2.
3.2.3.3 Administration
  1. Editing operations are available. The vertex style, association type, vertex display content, and attribute index can be edited, and the rest cannot be edited.

  2. You can delete a single item or delete it in batches.

image
3.2.4 Edge Types
3.2.4.1 Create
  1. Fill in or select the edge type name, start point type, end point type, associated attributes, whether to allow multiple connections, edge style, content displayed below the edge in the query result, and index information: including whether to create a type index, and attribute index The specific content, complete the creation of the edge type.

List mode:

image

Graph mode:

image
3.2.4.2 Reuse
  1. The reuse of the edge type will reuse the start point type, end point type, associated attribute and attribute index of this type.
  2. The reuse method is similar to the property reuse, see 3.2.2.2.
3.2.4.3 Administration
  1. Editing operations are available. Edge styles, associated attributes, edge display content, and attribute indexes can be edited, and the rest cannot be edited, the same as the vertex type.
  2. You can delete a single item or delete it in batches.
3.2.5 Index Types

Displays vertex and edge indices for vertex types and edge types.

3.3 Data Import

The usage process of data import is as follows:

image
3.3.1 Module entrance

Left navigation:

image
3.3.2 Create task
  1. Fill in the task name and remarks (optional) to create an import task.
  2. Multiple import tasks can be created and imported in parallel.
image
3.3.3 Uploading files
  1. Upload the file that needs to be composed. The currently supported format is CSV, which will be updated continuously in the future.
  2. Multiple files can be uploaded at the same time.
image
3.3.4 Setting up data mapping
  1. Set up data mapping for uploaded files, including file settings and type settings

  2. File settings: Check or fill in whether to include the header, separator, encoding format and other settings of the file itself, all set the default values, no need to fill in manually

  3. Type setting:

    1. Vertex map and edge map:

      【Vertex Type】: Select the vertex type, and upload the column data in the file for its ID mapping;

      【Edge Type】: Select the edge type and map the column data of the uploaded file to the ID column of its start point type and end point type;

    2. Mapping settings: upload the column data in the file for the attribute mapping of the selected vertex type. Here, if the attribute name is the same as the header name of the file, the mapping attribute can be automatically matched, and there is no need to manually fill in the selection.

    3. After completing the setting, the setting list will be displayed before proceeding to the next step. It supports the operations of adding, editing and deleting mappings.

Fill in the settings map:

image

Mapping list:

image
3.3.5 Import data

Before importing, you need to fill in the import setting parameters. After filling in, you can start importing data into the gallery.

  1. Import settings
image
  1. Import details
image

3.4 Data Analysis

3.4.1 Module entry

Left navigation:

image
3.4.2 Multi-image switching

By switching the entrance on the left, flexibly switch the operation space of multiple graphs

image
3.4.3 Graph Analysis and Processing

HugeGraph supports Gremlin, a graph traversal query language of Apache TinkerPop3. Gremlin is a general graph database query language. By entering Gremlin statements and clicking execute, you can perform query and analysis operations on graph data, and create and delete vertices/edges. , vertex/edge attribute modification, etc.

After Gremlin query, below is the graph result display area, which provides 3 kinds of graph result display modes: [Graph Mode], [Table Mode], [Json Mode].

Support zoom, center, full screen, export and other operations.

【Picture Mode】

image

【Table mode】

image

【Json mode】

image
3.4.4 Data Details

Click the vertex/edge entity to view the data details of the vertex/edge, including: vertex/edge type, vertex ID, attribute and corresponding value, expand the information display dimension of the graph, and improve the usability.

3.4.5 Multidimensional Path Query of Graph Results

In addition to the global query, in-depth customized query and hidden operations can be performed for the vertices in the query result to realize customized mining of graph results.

Right-click a vertex, and the menu entry of the vertex appears, which can be displayed, inquired, hidden, etc.

Double-clicking a vertex also displays the vertex associated with the selected point.

image
3.4.6 Add vertex/edge
3.4.6.1 Added vertex

In the graph area, two entries can be used to dynamically add vertices, as follows:

  1. Click on the graph area panel, the Add Vertex entry appears
  2. Click the first icon in the action bar in the upper right corner

Complete the addition of vertices by selecting or filling in the vertex type, ID value, and attribute information.

The entry is as follows:

image

Add the vertex content as follows:

image
3.4.6.2 Add edge

Right-click a vertex in the graph result to add the outgoing or incoming edge of that point.

3.4.7 Execute the query of records and favorites
  1. Record each query record at the bottom of the graph area, including: query time, execution type, content, status, time-consuming, as well as [collection] and [load] operations, to achieve a comprehensive record of graph execution, with traces to follow, and Can quickly load and reuse execution content
  2. Provides the function of collecting sentences, which can be used to collect frequently used sentences, which is convenient for fast calling of high-frequency sentences.
image

3.5 Task Management

3.5.1 Module entry

Left navigation:

image
3.5.2 Task Management
  1. Provide unified management and result viewing of asynchronous tasks. There are 4 types of asynchronous tasks, namely:
  1. The list displays the asynchronous task information of the current graph, including: task ID, task name, task type, creation time, time-consuming, status, operation, and realizes the management of asynchronous tasks.
  2. Support filtering by task type and status
  3. Support searching for task ID and task name
  4. Asynchronous tasks can be deleted or deleted in batches
image
3.5.3 Gremlin asynchronous tasks
  1. Create a task
  1. Task submission
  1. Mission details
image

Click to view the entry to jump to the task management list, as follows:

image
  1. View the results
3.5.4 OLAP algorithm tasks

There is no visual OLAP algorithm execution on Hubble. You can call the RESTful API to perform OLAP algorithm tasks, find the corresponding tasks by ID in the task management, and view the progress and results.

3.5.5 Delete metadata, rebuild index
  1. Create a task
image
image
  1. Task details
image

3.5 - HugeGraph-Client Quick Start

1 Overview Of Hugegraph

HugeGraph-Client sends HTTP request to HugeGraph-Server to obtain and parse the execution result of Server. Currently only the HugeGraph-Client for Java is provided. You can use HugeGraph-Client to write Java code to operate HugeGraph, such as adding, deleting, modifying, and querying schema and graph data, or executing gremlin statements.

2 What You Need

3 How To Use

The basic steps to use HugeGraph-Client are as follows:

See the complete example in the following section for the detail.

4 Complete Example

4.1 Build New Maven Project

Using IDEA or Eclipse to create the project:

4.2 Add Hugegraph-Client Dependency In POM

<dependencies>
     <dependency>
         <groupId>com.baidu.hugegraph</groupId>
diff --git a/docs/index.xml b/docs/index.xml
index c18ca8794..18ffc2478 100644
--- a/docs/index.xml
+++ b/docs/index.xml
@@ -6688,54 +6688,54 @@ auth.user_tokens=[hugegraph1:token-value-1, hugegraph2:token-value-2]
 <ul>
 <li>默认开启label index,6.3w edges/s</li>
 </ul>Docs: HugeGraph-Tools Quick Start/docs/quickstart/hugegraph-tools/Mon, 01 Jan 0001 00:00:00 +0000/docs/quickstart/hugegraph-tools/
-<h3 id="1-hugegraph-tools概述">1 HugeGraph-Tools概述</h3>
-<p>HugeGraph-Tools 是 HugeGraph 的自动化部署、管理和备份/还原组件。</p>
-<h3 id="2-获取-hugegraph-tools">2 获取 HugeGraph-Tools</h3>
-<p>有两种方式可以获取 HugeGraph-Tools:</p>
+<h3 id="1-hugegraph-tools-overview">1 HugeGraph-Tools Overview</h3>
+<p>HugeGraph-Tools is an automated deployment, management and backup/restore component of HugeGraph.</p>
+<h3 id="2-get-hugegraph-tools">2 Get HugeGraph-Tools</h3>
+<p>There are two ways to get HugeGraph-Tools:</p>
 <ul>
-<li>下载二进制tar包</li>
-<li>下载源码编译安装</li>
+<li>Download the compiled tarball</li>
+<li>Clone source code then compile and install</li>
 </ul>
-<h4 id="21-下载二进制tar包">2.1 下载二进制tar包</h4>
-<p>下载最新版本的 HugeGraph-Tools 包:</p>
+<h4 id="21-download-the-compiled-archive">2.1 Download the compiled archive</h4>
+<p>Download the latest version of the HugeGraph-Tools package:</p>
 <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>wget https://github.com/hugegraph/hugegraph-tools/releases/download/v<span style="color:#4e9a06">${</span><span style="color:#000">version</span><span style="color:#4e9a06">}</span>/hugegraph-tools-<span style="color:#4e9a06">${</span><span style="color:#000">version</span><span style="color:#4e9a06">}</span>.tar.gz
 </span></span><span style="display:flex;"><span>tar zxvf hugegraph-tools-<span style="color:#4e9a06">${</span><span style="color:#000">version</span><span style="color:#4e9a06">}</span>.tar.gz
-</span></span></code></pre></div><h4 id="22-下载源码编译安装">2.2 下载源码编译安装</h4>
-<p>下载最新版本的 HugeGraph-Tools 源码包:</p>
+</span></span></code></pre></div><h4 id="22-clone-source-code-to-compile-and-install">2.2 Clone source code to compile and install</h4>
+<p>Download the latest version of the HugeGraph-Tools source package:</p>
 <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>$ git clone https://github.com/hugegraph/hugegraph-tools.git
-</span></span></code></pre></div><p>编译生成 tar 包:</p>
+</span></span></code></pre></div><p>Compile and generate tar package:</p>
 <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#204a87">cd</span> hugegraph-tools
 </span></span><span style="display:flex;"><span>mvn package -DskipTests
-</span></span></code></pre></div><p>生成 tar 包 hugegraph-tools-${version}.tar.gz</p>
-<h3 id="3-使用">3 使用</h3>
-<h4 id="31-功能概览">3.1 功能概览</h4>
-<p>解压后,进入 hugegraph-tools 目录,可以使用<code>bin/hugegraph</code>或者<code>bin/hugegraph help</code>来查看 usage 信息。主要分为:</p>
+</span></span></code></pre></div><p>Generate tar package hugegraph-tools-${version}.tar.gz</p>
+<h3 id="3-how-to-use">3 How to use</h3>
+<h4 id="31-function-overview">3.1 Function overview</h4>
+<p>After decompression, enter the hugegraph-tools directory, you can use <code>bin/hugegraph</code> or <code>bin/hugegraph help</code> to view the usage information. mainly divided:</p>
 <ul>
-<li>图管理类,graph-mode-set、graph-mode-get、graph-list、graph-get 和 graph-clear</li>
-<li>异步任务管理类,task-list、task-get、task-delete、task-cancel 和 task-clear</li>
-<li>Gremlin类,gremlin-execute 和 gremlin-schedule</li>
-<li>备份/恢复类,backup、restore、migrate、schedule-backup 和 dump</li>
-<li>安装部署类,deploy、clear、start-all 和 stop-all</li>
+<li>Graph management Type,graph-mode-set、graph-mode-get、graph-list、graph-get and graph-clear</li>
+<li>Asynchronous task management Type,task-list、task-get、task-delete、task-cancel and task-clear</li>
+<li>Gremlin Type,gremlin-execute and gremlin-schedule</li>
+<li>Backup/Restore Type,backup、restore、migrate、schedule-backup and dump</li>
+<li>Install the deployment Type,deploy、clear、start-all and stop-all</li>
 </ul>
 <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>Usage: hugegraph <span style="color:#ce5c00;font-weight:bold">[</span>options<span style="color:#ce5c00;font-weight:bold">]</span> <span style="color:#ce5c00;font-weight:bold">[</span>command<span style="color:#ce5c00;font-weight:bold">]</span> <span style="color:#ce5c00;font-weight:bold">[</span><span style="color:#204a87">command</span> options<span style="color:#ce5c00;font-weight:bold">]</span>
-</span></span></code></pre></div><h5 id="32-options-全局变量">3.2 [options]-全局变量</h5>
-<p><code>options</code>是 HugeGraph-Tools 的全局变量,可以在 hugegraph-tools/bin/hugegraph 中配置,包括:</p>
-<ul>
-<li>&ndash;graph,HugeGraph-Tools 操作的图的名字,默认值是 hugegraph</li>
-<li>&ndash;url,HugeGraph-Server 的服务地址,默认是 http://127.0.0.1:8080</li>
-<li>&ndash;user,当 HugeGraph-Server 开启认证时,传递用户名</li>
-<li>&ndash;password,当 HugeGraph-Server 开启认证时,传递用户的密码</li>
-<li>&ndash;timeout,连接 HugeGraph-Server 时的超时时间,默认是 30s</li>
-<li>&ndash;trust-store-file,证书文件的路径,当 &ndash;url 使用 https 时,HugeGraph-Client 使用的 truststore 文件,默认为空,代表使用 hugegraph-tools 内置的 truststore 文件 conf/hugegraph.truststore</li>
-<li>&ndash;trust-store-password,证书文件的密码,当 &ndash;url 使用 https 时,HugeGraph-Client 使用的 truststore 的密码,默认为空,代表使用 hugegraph-tools 内置的 truststore 文件的密码</li>
-</ul>
-<p>上述全局变量,也可以通过环境变量来设置。一种方式是在命令行使用 export 设置临时环境变量,在该命令行关闭之前均有效</p>
+</span></span></code></pre></div><h5 id="32-options-global-variable">3.2 [options]-Global Variable</h5>
+<p><code>options</code> is a global variable of HugeGraph-Tools, which can be configured in hugegraph-tools/bin/hugegraph, including:</p>
+<ul>
+<li>&ndash;graph,HugeGraph-Tools The name of the graph to operate on, the default value is hugegraph</li>
+<li>&ndash;url,The service address of HugeGraph-Server, the default is http://127.0.0.1:8080</li>
+<li>&ndash;user,When HugeGraph-Server opens authentication, pass username</li>
+<li>&ndash;password,When HugeGraph-Server opens authentication, pass the user&rsquo;s password</li>
+<li>&ndash;timeout,Timeout when connecting to HugeGraph-Server, the default is 30s</li>
+<li>&ndash;trust-store-file,The path of the certificate file, when &ndash;url uses https, the truststore file used by HugeGraph-Client, the default is empty, which means using the built-in truststore file conf/hugegraph.truststore of hugegraph-tools</li>
+<li>&ndash;trust-store-password,The password of the certificate file, when &ndash;url uses https, the password of the truststore used by HugeGraph-Client, the default is empty, representing the password of the built-in truststore file of hugegraph-tools</li>
+</ul>
+<p>The above global variables can also be set through environment variables. One way is to use export on the command line to set temporary environment variables, which are valid until the command line is closed</p>
 <table>
 <thead>
 <tr>
-<th>全局变量</th>
-<th>环境变量</th>
-<th>示例</th>
+<th>Global Variable</th>
+<th>Environment Variable</th>
+<th>Example</th>
 </tr>
 </thead>
 <tbody>
@@ -6776,7 +6776,7 @@ auth.user_tokens=[hugegraph1:token-value-1, hugegraph2:token-value-2]
 </tr>
 </tbody>
 </table>
-<p>另一种方式是在 bin/hugegraph 脚本中设置环境变量:</p>
+<p>Another way is to set the environment variable in the bin/hugegraph script:</p>
 <pre tabindex="0"><code>#!/bin/bash
 # Set environment here if needed
 #export HUGEGRAPH_URL=
@@ -6786,177 +6786,177 @@ auth.user_tokens=[hugegraph1:token-value-1, hugegraph2:token-value-2]
 #export HUGEGRAPH_TIMEOUT=
 #export HUGEGRAPH_TRUST_STORE_FILE=
 #export HUGEGRAPH_TRUST_STORE_PASSWORD=
-</code></pre><h5 id="33-图管理类graph-mode-setgraph-mode-getgraph-listgraph-get和graph-clear">3.3 图管理类,graph-mode-set、graph-mode-get、graph-list、graph-get和graph-clear</h5>
+</code></pre><h5 id="33-graph-management-typegraph-mode-setgraph-mode-getgraph-listgraph-get-and-graph-clear">3.3 Graph Management Type,graph-mode-set、graph-mode-get、graph-list、graph-get and graph-clear</h5>
 <ul>
-<li>graph-mode-set,设置图的 restore mode
+<li>graph-mode-set,set graph restore mode
 <ul>
-<li>&ndash;graph-mode 或者 -m,必填项,指定将要设置的模式,合法值包括 [NONE, RESTORING, MERGING, LOADING]</li>
+<li>&ndash;graph-mode or -m, required, specifies the mode to be set, legal values include [NONE, RESTORING, MERGING, LOADING]</li>
 </ul>
 </li>
-<li>graph-mode-get,获取图的 restore mode</li>
-<li>graph-list,列出某个 HugeGraph-Server 中全部的图</li>
-<li>graph-get,获取某个图及其存储后端类型</li>
-<li>graph-clear,清除某个图的全部 schema 和 data
+<li>graph-mode-get,get graph restore mode</li>
+<li>graph-list,list all graphs in a HugeGraph-Server</li>
+<li>graph-get,get a graph and its storage backend type</li>
+<li>graph-clear,clear all schema and data of a graph
 <ul>
-<li>&ndash;confirm-message 或者 -c,必填项,删除确认信息,需要手动输入,二次确认防止误删,&ldquo;I&rsquo;m sure to delete all data&rdquo;,包括双引号</li>
+<li>&ndash;confirm-message Or -c, required, delete confirmation information, manual input is required, double confirmation to prevent accidental deletion, &ldquo;I&rsquo;m sure to delete all data&rdquo;, including double quotes</li>
 </ul>
 </li>
 </ul>
 <blockquote>
-<p>当需要把备份的图原样恢复到一个新的图中的时候,需要先将图模式设置为 RESTORING 模式;当需要将备份的图合并到已存在的图中时,需要先将图模式设置为 MERGING 模式。</p>
+<p>When you need to restore the backup graph to a new graph, you need to set the graph mode to RESTORING mode; when you need to merge the backup graph into an existing graph, you need to first set the graph mode to MERGING model.</p>
 </blockquote>
-<h5 id="34-异步任务管理类task-listtask-get和task-delete">3.4 异步任务管理类,task-list、task-get和task-delete</h5>
+<h5 id="34-asynchronous-task-management-typetask-listtask-get-and-task-delete">3.4 Asynchronous task management Type,task-list、task-get and task-delete</h5>
 <ul>
-<li>task-list,列出某个图中的异步任务,可以根据任务的状态过滤
+<li>task-list,List the asynchronous tasks in a graph, which can be filtered according to the status of the tasks
 <ul>
-<li>&ndash;status,选填项,指定要查看的任务的状态,即按状态过滤任务</li>
-<li>&ndash;limit,选填项,指定要获取的任务的数目,默认为 -1,意思为获取全部符合条件的任务</li>
+<li>&ndash;status,Optional, specify the status of the task to view, i.e. filter tasks by status</li>
+<li>&ndash;limit,Optional, specify the number of tasks to be obtained, the default is -1, which means to obtain all eligible tasks</li>
 </ul>
 </li>
-<li>task-get,获取某个异步任务的详细信息
+<li>task-get,Get detailed information about an asynchronous task
 <ul>
-<li>&ndash;task-id,必填项,指定异步任务的 ID</li>
+<li>&ndash;task-id,Required, specifies the ID of the asynchronous task</li>
 </ul>
 </li>
-<li>task-delete,删除某个异步任务的信息
+<li>task-delete,Delete information about an asynchronous task
 <ul>
-<li>&ndash;task-id,必填项,指定异步任务的 ID</li>
+<li>&ndash;task-id,Required, specifies the ID of the asynchronous task</li>
 </ul>
 </li>
-<li>task-cancel,取消某个异步任务的执行
+<li>task-cancel,Cancel the execution of an asynchronous task
 <ul>
-<li>&ndash;task-id,要取消的异步任务的 ID</li>
+<li>&ndash;task-id,ID of the asynchronous task to cancel</li>
 </ul>
 </li>
-<li>task-clear,清理完成的异步任务
+<li>task-clear,Clean up completed asynchronous tasks
 <ul>
-<li>&ndash;force,选填项,设置时,表示清理全部异步任务,未执行完成的先取消,然后清除所有异步任务。默认只清理已完成的异步任务</li>
+<li>&ndash;force,Optional. When set, it means to clean up all asynchronous tasks. Unfinished ones are canceled first, and then all asynchronous tasks are cleared. By default, only completed asynchronous tasks are cleaned up</li>
 </ul>
 </li>
 </ul>
-<h5 id="35-gremlin类gremlin-execute和gremlin-schedule">3.5 Gremlin类,gremlin-execute和gremlin-schedule</h5>
+<h5 id="35-gremlin-typegremlin-execute-and-gremlin-schedule">3.5 Gremlin Type,gremlin-execute and gremlin-schedule</h5>
 <ul>
-<li>gremlin-execute,发送 Gremlin 语句到 HugeGraph-Server 来执行查询或修改操作,同步执行,结束后返回结果
+<li>gremlin-execute, send Gremlin statements to HugeGraph-Server to execute query or modification operations, execute synchronously, and return results after completion
 <ul>
-<li>&ndash;file 或者 -f,指定要执行的脚本文件,UTF-8编码,与 &ndash;script 互斥</li>
-<li>&ndash;script 或者 -s,指定要执行的脚本字符串,与 &ndash;file 互斥</li>
-<li>&ndash;aliases 或者 -a,Gremlin 别名设置,格式为:key1=value1,key2=value2,&hellip;</li>
-<li>&ndash;bindings 或者 -b,Gremlin 绑定设置,格式为:key1=value1,key2=value2,&hellip;</li>
-<li>&ndash;language 或者 -l,Gremlin 脚本的语言,默认为 gremlin-groovy</li>
+<li>&ndash;file or -f, specify the script file to execute, UTF-8 encoding, mutually exclusive with &ndash;script</li>
+<li>&ndash;script or -s, specifies the script string to execute, mutually exclusive with &ndash;file</li>
+<li>&ndash;aliases or -a, Gremlin alias settings, the format is: key1=value1,key2=value2,&hellip;</li>
+<li>&ndash;bindings or -b, Gremlin binding settings, the format is: key1=value1,key2=value2,&hellip;</li>
+<li>&ndash;language or -l, the language of the Gremlin script, the default is gremlin-groovy</li>
 </ul>
 <blockquote>
-<p>&ndash;file 和 &ndash;script 二者互斥,必须设置其中之一</p>
+<p>&ndash;file and &ndash;script are mutually exclusive, one of them must be set</p>
 </blockquote>
 </li>
-<li>gremlin-schedule,发送 Gremlin 语句到 HugeGraph-Server 来执行查询或修改操作,异步执行,任务提交后立刻返回异步任务id
+<li>gremlin-schedule, send Gremlin statements to HugeGraph-Server to perform query or modification operations, asynchronous execution, and return the asynchronous task id immediately after the task is submitted
 <ul>
-<li>&ndash;file 或者 -f,指定要执行的脚本文件,UTF-8编码,与 &ndash;script 互斥</li>
-<li>&ndash;script 或者 -s,指定要执行的脚本字符串,与 &ndash;file 互斥</li>
-<li>&ndash;bindings 或者 -b,Gremlin 绑定设置,格式为:key1=value1,key2=value2,&hellip;</li>
-<li>&ndash;language 或者 -l,Gremlin 脚本的语言,默认为 gremlin-groovy</li>
+<li>&ndash;file or -f, specify the script file to execute, UTF-8 encoding, mutually exclusive with &ndash;script</li>
+<li>&ndash;script or -s, specifies the script string to execute, mutually exclusive with &ndash;file</li>
+<li>&ndash;bindings or -b, Gremlin binding settings, the format is: key1=value1,key2=value2,&hellip;</li>
+<li>&ndash;language or -l, the language of the Gremlin script, the default is gremlin-groovy</li>
 </ul>
 <blockquote>
-<p>&ndash;file 和 &ndash;script 二者互斥,必须设置其中之一</p>
+<p>&ndash;file and &ndash;script are mutually exclusive, one of them must be set</p>
 </blockquote>
 </li>
 </ul>
-<h5 id="36-备份恢复类">3.6 备份/恢复类</h5>
+<h5 id="36-backuprestore-type">3.6 Backup/Restore Type</h5>
 <ul>
-<li>backup,将某张图中的 schema 或者 data 备份到 HugeGraph 系统之外,以 JSON 形式存在本地磁盘或者 HDFS
+<li>backup, back up the schema or data in a certain graph out of the HugeGraph system, and store it on the local disk or HDFS in the form of JSON
 <ul>
-<li>&ndash;format,备份的格式,可选值包括 [json, text],默认为 json</li>
-<li>&ndash;all-properties,是否备份顶点/边全部的属性,仅在 &ndash;format 为 text 是有效,默认 false</li>
-<li>&ndash;label,要备份的顶点/边的类型,仅在 &ndash;format 为 text 是有效,只有备份顶点或者边的时候有效</li>
-<li>&ndash;properties,要备份的顶点/边的属性,逗号分隔,仅在 &ndash;format 为 text 是有效,只有备份顶点或者边的时候有效</li>
-<li>&ndash;compress,备份时是否压缩数据,默认为 true</li>
-<li>&ndash;directory 或者 -d,存储 schema 或者 data 的目录,本地目录时,默认为&rsquo;./{graphName}&rsquo;,HDFS 时,默认为 &lsquo;{fs.default.name}/{graphName}&rsquo;</li>
-<li>&ndash;huge-types 或者 -t,要备份的数据类型,逗号分隔,可选值为 &lsquo;all&rsquo; 或者 一个或多个 [vertex,edge,vertex_label,edge_label,property_key,index_label] 的组合,&lsquo;all&rsquo; 代表全部6种类型,即顶点、边和所有schema</li>
-<li>&ndash;log 或者 -l,指定日志目录,默认为当前目录</li>
-<li>&ndash;retry,指定失败重试次数,默认为 3</li>
-<li>&ndash;split-size 或者 -s,指定在备份时对顶点或者边分块的大小,默认为 1048576</li>
-<li>-D,用 -Dkey=value 的模式指定动态参数,用来备份数据到 HDFS 时,指定 HDFS 的配置项,例如:-Dfs.default.name=hdfs://localhost:9000</li>
+<li>&ndash;format, the backup format, optional values include [json, text], the default is json</li>
+<li>&ndash;all-properties, whether to back up all properties of vertices/edges, only valid when &ndash;format is text, default false</li>
+<li>&ndash;label, the type of vertices/edges to be backed up, only valid when &ndash;format is text, only valid when backing up vertices or edges</li>
+<li>&ndash;properties, properties of vertices/edges to be backed up, separated by commas, only valid when &ndash;format is text, valid only when backing up vertices or edges</li>
+<li>&ndash;compress, whether to compress data during backup, the default is true</li>
+<li>&ndash;directory or -d, the directory to store schema or data, the default is &lsquo;./{graphName}&rsquo; for local directory, and &lsquo;{fs.default.name}/{graphName}&rsquo; for HDFS</li>
+<li>&ndash;huge-types or -t, the data types to be backed up, separated by commas, the optional value is &lsquo;all&rsquo; or a combination of one or more [vertex, edge, vertex_label, edge_label, property_key, index_label], &lsquo;all&rsquo; Represents all 6 types, namely vertices, edges and all schemas</li>
+<li>&ndash;log or -l, specify the log directory, the default is the current directory</li>
+<li>&ndash;retry, specify the number of failed retries, the default is 3</li>
+<li>&ndash;split-size or -s, specifies the size of splitting vertices or edges when backing up, the default is 1048576</li>
+<li>-D, use the mode of -Dkey=value to specify dynamic parameters, and specify HDFS configuration items when backing up data to HDFS, for example: -Dfs.default.name=hdfs://localhost:9000</li>
 </ul>
 </li>
-<li>restore,将 JSON 格式存储的 schema 或者 data 恢复到一个新图中(RESTORING 模式)或者合并到已存在的图中(MERGING 模式)
+<li>restore, restore schema or data stored in JSON format to a new graph (RESTORING mode) or merge into an existing graph (MERGING mode)
 <ul>
-<li>&ndash;directory 或者 -d,存储 schema 或者 data 的目录,本地目录时,默认为&rsquo;./{graphName}&rsquo;,HDFS 时,默认为 &lsquo;{fs.default.name}/{graphName}&rsquo;</li>
-<li>&ndash;clean,是否在恢复图完成后删除 &ndash;directory 指定的目录,默认为 false</li>
-<li>&ndash;huge-types 或者 -t,要恢复的数据类型,逗号分隔,可选值为 &lsquo;all&rsquo; 或者 一个或多个 [vertex,edge,vertex_label,edge_label,property_key,index_label] 的组合,&lsquo;all&rsquo; 代表全部6种类型,即顶点、边和所有schema</li>
-<li>&ndash;log 或者 -l,指定日志目录,默认为当前目录</li>
-<li>&ndash;retry,指定失败重试次数,默认为 3</li>
-<li>-D,用 -Dkey=value 的模式指定动态参数,用来从 HDFS 恢复图时,指定 HDFS 的配置项,例如:-Dfs.default.name=hdfs://localhost:9000</li>
+<li>&ndash;directory or -d, the directory to store schema or data, the default is &lsquo;./{graphName}&rsquo; for local directory, and &lsquo;{fs.default.name}/{graphName}&rsquo; for HDFS</li>
+<li>&ndash;clean, whether to delete the directory specified by &ndash;directory after the recovery map is completed, the default is false</li>
+<li>&ndash;huge-types or -t, data types to restore, separated by commas, optional value is &lsquo;all&rsquo; or a combination of one or more [vertex, edge, vertex_label, edge_label, property_key, index_label], &lsquo;all&rsquo; Represents all 6 types, namely vertices, edges and all schemas</li>
+<li>&ndash;log or -l, specify the log directory, the default is the current directory</li>
+<li>&ndash;retry, specify the number of failed retries, the default is 3</li>
+<li>-D, use the mode of -Dkey=value to specify dynamic parameters, which are used to specify HDFS configuration items when restoring graphs from HDFS, for example: -Dfs.default.name=hdfs://localhost:9000</li>
 </ul>
 <blockquote>
-<p>只有当 &ndash;format 为 json 执行 backup 时,才可以使用 restore 命令恢复</p>
+<p>restore command can be used only if &ndash;format is executed as backup for json</p>
 </blockquote>
 </li>
-<li>migrate, 将当前连接的图迁移至另一个 HugeGraphServer 中
+<li>migrate, migrate the currently connected graph to another HugeGraphServer
 <ul>
-<li>&ndash;target-graph,目标图的名字,默认为 hugegraph</li>
-<li>&ndash;target-url,目标图所在的 HugeGraphServer,默认为 http://127.0.0.1:8081</li>
-<li>&ndash;target-username,访问目标图的用户名</li>
-<li>&ndash;target-password,访问目标图的密码</li>
-<li>&ndash;target-timeout,访问目标图的超时时间</li>
-<li>&ndash;target-trust-store-file,访问目标图使用的 truststore 文件</li>
-<li>&ndash;target-trust-store-password,访问目标图使用的 truststore 的密码</li>
-<li>&ndash;directory 或者 -d,迁移过程中,存储源图的 schema 或者 data 的目录,本地目录时,默认为&rsquo;./{graphName}&rsquo;,HDFS 时,默认为 &lsquo;{fs.default.name}/{graphName}&rsquo;</li>
-<li>&ndash;huge-types 或者 -t,要迁移的数据类型,逗号分隔,可选值为 &lsquo;all&rsquo; 或者 一个或多个 [vertex,edge,vertex_label,edge_label,property_key,index_label] 的组合,&lsquo;all&rsquo; 代表全部6种类型,即顶点、边和所有schema</li>
-<li>&ndash;log 或者 -l,指定日志目录,默认为当前目录</li>
-<li>&ndash;retry,指定失败重试次数,默认为 3</li>
-<li>&ndash;split-size 或者 -s,指定迁移过程中对源图进行备份时顶点或者边分块的大小,默认为 1048576</li>
-<li>-D,用 -Dkey=value 的模式指定动态参数,用来在迁移图过程中需要备份数据到 HDFS 时,指定 HDFS 的配置项,例如:-Dfs.default.name=hdfs://localhost:9000</li>
-<li>&ndash;graph-mode 或者 -m,将源图恢复到目标图时将目标图设置的模式,合法值包括 [RESTORING, MERGING]</li>
-<li>&ndash;keep-local-data,是否保留在迁移图的过程中产生的源图的备份,默认为 false,即默认迁移图结束后不保留产生的源图备份</li>
+<li>&ndash;target-graph, the name of the target graph, the default is hugegraph</li>
+<li>&ndash;target-url, the HugeGraphServer where the target graph is located, the default is http://127.0.0.1:8081</li>
+<li>&ndash;target-username, the username to access the target map</li>
+<li>&ndash;target-password, the password to access the target map</li>
+<li>&ndash;target-timeout, the timeout for accessing the target map</li>
+<li>&ndash;target-trust-store-file, access the truststore file used by the target graph</li>
+<li>&ndash;target-trust-store-password, the password to access the truststore used by the target map</li>
+<li>&ndash;directory or -d, during the migration process, the directory where the schema or data of the source graph is stored. For a local directory, the default is &lsquo;./{graphName}&rsquo;; for HDFS, the default is &lsquo;{fs.default.name}/ {graphName}&rsquo;</li>
+<li>&ndash;huge-types or -t, the data types to be migrated, separated by commas, the optional value is &lsquo;all&rsquo; or a combination of one or more [vertex, edge, vertex_label, edge_label, property_key, index_label], &lsquo;all&rsquo; Represents all 6 types, namely vertices, edges and all schemas</li>
+<li>&ndash;log or -l, specify the log directory, the default is the current directory</li>
+<li>&ndash;retry, specify the number of failed retries, the default is 3</li>
+<li>&ndash;split-size or -s, specify the size of the vertex or edge block when backing up the source graph during the migration process, the default is 1048576</li>
+<li>-D, use the mode of -Dkey=value to specify dynamic parameters, which are used to specify HDFS configuration items when the data needs to be backed up to HDFS during the migration process, for example: -Dfs.default.name=hdfs://localhost: 9000</li>
+<li>&ndash;graph-mode or -m, the mode to set the target graph when restoring the source graph to the target graph, legal values include [RESTORING, MERGING]</li>
+<li>&ndash;keep-local-data, whether to keep the backup of the source map generated in the process of migrating the map, the default is false, that is, the backup of the source map is not kept after the default migration map ends</li>
 </ul>
 </li>
-<li>schedule-backup,周期性对图执行备份操作,并保留一定数目的最新备份(目前仅支持本地文件系统)
+<li>schedule-backup, periodically back up the graph and keep a certain number of the latest backups (currently only supports local file systems)
 <ul>
-<li>&ndash;directory 或者 -d,必填项,指定备份数据的目录</li>
-<li>&ndash;backup-num,选填项,指定保存的最新的备份的数目,默认为 3</li>
-<li>&ndash;interval,选填项,指定进行备份的周期,格式同 Linux crontab 格式</li>
+<li>&ndash;directory or -d, required, specifies the directory of the backup data</li>
+<li>&ndash;backup-num, optional, specifies the number of latest backups to save, defaults to 3</li>
+<li>&ndash;interval, an optional item, specifies the backup cycle, the format is the same as the Linux crontab format</li>
 </ul>
 </li>
-<li>dump,把整张图的顶点和边全部导出,默认以<code>vertex vertex-edge1 vertex-edge2...</code>JSON格式存储。
-用户也可以自定义存储格式,只需要在<code>hugegraph-tools/src/main/java/com/baidu/hugegraph/formatter</code>
-目录下实现一个继承自<code>Formatter</code>的类,例如<code>CustomFormatter</code>,使用时指定该类为formatter即可,例如
+<li>dump, export all the vertices and edges of the entire graph, and store them in <code>vertex vertex-edge1 vertex-edge2...</code>JSON format by default.
+Users can also customize the storage format, just need to be in <code>hugegraph-tools/src/main/java/com/baidu/hugegraph/formatter</code>
+Implement a class inherited from <code>Formatter</code> in the directory, such as <code>CustomFormatter</code>, and specify this class as formatter when using it, for example
 <code>bin/hugegraph dump -f CustomFormatter</code>
 <ul>
-<li>&ndash;formatter 或者 -f,指定使用的 formatter,默认为 JsonFormatter</li>
-<li>&ndash;directory 或者 -d,存储 schema 或者 data 的目录,默认为当前目录</li>
-<li>&ndash;log 或者 -l,指定日志目录,默认为当前目录</li>
-<li>&ndash;retry,指定失败重试次数,默认为 3</li>
-<li>&ndash;split-size 或者 -s,指定在备份时对顶点或者边分块的大小,默认为 1048576</li>
-<li>-D,用 -Dkey=value 的模式指定动态参数,用来备份数据到 HDFS 时,指定 HDFS 的配置项,例如:-Dfs.default.name=hdfs://localhost:9000</li>
+<li>&ndash;formatter or -f, specify the formatter to use, the default is JsonFormatter</li>
+<li>&ndash;directory or -d, the directory where schema or data is stored, the default is the current directory</li>
+<li>&ndash;log or -l, specify the log directory, the default is the current directory</li>
+<li>&ndash;retry, specify the number of failed retries, the default is 3</li>
+<li>&ndash;split-size or -s, specifies the size of splitting vertices or edges when backing up, the default is 1048576</li>
+<li>-D, use the mode of -Dkey=value to specify dynamic parameters, and specify HDFS configuration items when backing up data to HDFS, for example: -Dfs.default.name=hdfs://localhost:9000</li>
 </ul>
 </li>
 </ul>
-<h5 id="37-安装部署类">3.7 安装部署类</h5>
+<h5 id="37-install-the-deployment-type">3.7 Install the deployment type</h5>
 <ul>
-<li>deploy,一键下载、安装和启动 HugeGraph-Server 和 HugeGraph-Studio
+<li>deploy, one-click download, install and start HugeGraph-Server and HugeGraph-Studio
 <ul>
-<li>-v,必填项,指明安装的 HugeGraph-Server 和 HugeGraph-Studio 的版本号,最新的是 0.9</li>
-<li>-p,必填项,指定安装的 HugeGraph-Server 和 HugeGraph-Studio 目录</li>
-<li>-u,选填项,指定下载 HugeGraph-Server 和 HugeGraph-Studio 压缩包的链接</li>
+<li>-v, required, specifies the version number of HugeGraph-Server and HugeGraph-Studio installed, the latest is 0.9</li>
+<li>-p, required, specifies the installed HugeGraph-Server and HugeGraph-Studio directories</li>
+<li>-u, optional, specifies the link to download the HugeGraph-Server and HugeGraph-Studio compressed packages</li>
 </ul>
 </li>
-<li>clear,清理 HugeGraph-Server 和 HugeGraph-Studio 目录和tar包
+<li>clear, clean up HugeGraph-Server and HugeGraph-Studio directories and tarballs
 <ul>
-<li>-p,必填项,指定要清理的 HugeGraph-Server 和 HugeGraph-Studio 的目录</li>
+<li>-p, required, specifies the directory of HugeGraph-Server and HugeGraph-Studio to be cleaned</li>
 </ul>
 </li>
-<li>start-all,一键启动 HugeGraph-Server 和 HugeGraph-Studio,并启动监控,服务死掉时自动拉起服务
+<li>start-all, start HugeGraph-Server and HugeGraph-Studio with one click, and start monitoring, automatically pull up the service when the service dies
 <ul>
-<li>-v,必填项,指明要启动的 HugeGraph-Server 和 HugeGraph-Studio 的版本号,最新的是 0.9</li>
-<li>-p,必填项,指定安装了 HugeGraph-Server 和 HugeGraph-Studio 的目录</li>
+<li>-v, required, specifies the version number of HugeGraph-Server and HugeGraph-Studio to be started, the latest is 0.9</li>
+<li>-p, required, specifies the directory where HugeGraph-Server and HugeGraph-Studio are installed</li>
 </ul>
 </li>
-<li>stop-all,一键关闭 HugeGraph-Server 和 HugeGraph-Studio</li>
+<li>stop-all, close HugeGraph-Server and HugeGraph-Studio with one click</li>
 </ul>
 <blockquote>
-<p>deploy命令中有可选参数 -u,提供时会使用指定的下载地址替代默认下载地址下载 tar 包,并且将地址写入<code>~/hugegraph-download-url-prefix</code>文件中;之后如果不指定地址时,会优先从<code>~/hugegraph-download-url-prefix</code>指定的地址下载 tar 包;如果 -u 和<code>~/hugegraph-download-url-prefix</code>都没有时,会从默认下载地址进行下载</p>
+<p>There is an optional parameter -u in the deploy command. When provided, the specified download address will be used instead of the default download address to download the tar package, and the address will be written into the <code>~/hugegraph-download-url-prefix</code> file; if no address is specified later When -u and <code>~/hugegraph-download-url-prefix</code> are not specified, the tar package will be downloaded from the address specified by <code>~/hugegraph-download-url-prefix</code>; if there is neither -u nor <code>~/hugegraph-download-url-prefix</code>, it will be downloaded from the default download address</p>
 </blockquote>
-<h5 id="38-具体命令参数">3.8 具体命令参数</h5>
-<p>各子命令的具体参数如下:</p>
+<h5 id="38-specific-command-parameters">3.8 Specific command parameters</h5>
+<p>The specific parameters of each subcommand are as follows:</p>
 <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>Usage: hugegraph <span style="color:#ce5c00;font-weight:bold">[</span>options<span style="color:#ce5c00;font-weight:bold">]</span> <span style="color:#ce5c00;font-weight:bold">[</span>command<span style="color:#ce5c00;font-weight:bold">]</span> <span style="color:#ce5c00;font-weight:bold">[</span><span style="color:#204a87">command</span> options<span style="color:#ce5c00;font-weight:bold">]</span>
 </span></span><span style="display:flex;"><span> Options:
 </span></span><span style="display:flex;"><span> --graph
@@ -7258,20 +7258,20 @@ auth.user_tokens=[hugegraph1:token-value-1, hugegraph2:token-value-2]
 </span></span><span style="display:flex;"><span>
 </span></span><span style="display:flex;"><span> <span style="color:#204a87">help</span> Print usage
 </span></span><span style="display:flex;"><span> Usage: <span style="color:#204a87">help</span>
-</span></span></code></pre></div><h5 id="39-具体命令示例">3.9 具体命令示例</h5>
-<h6 id="1-gremlin语句">1. gremlin语句</h6>
-<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># 同步执行gremlin</span>
+</span></span></code></pre></div><h5 id="39-specific-command-example">3.9 Specific command example</h5>
+<h6 id="1-gremlin-statement">1. gremlin statement</h6>
+<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># Execute gremlin synchronously</span>
 </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph gremlin-execute --script <span style="color:#4e9a06">&#39;g.V().count()&#39;</span>
 </span></span><span style="display:flex;"><span>
-</span></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># 异步执行gremlin</span>
+</span></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># Execute gremlin asynchronously</span>
 </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph gremlin-schedule --script <span style="color:#4e9a06">&#39;g.V().count()&#39;</span>
-</span></span></code></pre></div><h6 id="2-查看task情况">2. 查看task情况</h6>
+</span></span></code></pre></div><h6 id="2-show-task-status">2. Show task status</h6>
 <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list
 </span></span><span style="display:flex;"><span>
 </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list --limit <span style="color:#0000cf;font-weight:bold">5</span>
 </span></span><span style="display:flex;"><span>
 </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list --status success
-</span></span></code></pre></div><h6 id="3-图模式查看和设置">3. 图模式查看和设置</h6>
+</span></span></code></pre></div><h6 id="3-set-and-show-graph-mode">3. Set and show graph mode</h6>
 <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING MERGING NONE
 </span></span><span style="display:flex;"><span>
 </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING
@@ -7279,22 +7279,22 @@ auth.user_tokens=[hugegraph1:token-value-1, hugegraph2:token-value-2]
 </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-get
 </span></span><span style="display:flex;"><span>
 </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-list
-</span></span></code></pre></div><h6 id="4-清理图">4. 清理图</h6>
+</span></span></code></pre></div><h6 id="4-cleanup-graph">4. Cleanup Graph</h6>
 <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-clear -c <span style="color:#4e9a06">&#34;I&#39;m sure to delete all data&#34;</span>
-</span></span></code></pre></div><h6 id="5-图备份">5. 图备份</h6>
+</span></span></code></pre></div><h6 id="5-backup-graph">5. Backup Graph</h6>
 <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph backup -t all --directory ./backup-test
-</span></span></code></pre></div><h6 id="6-周期性的备份">6. 周期性的备份</h6>
+</span></span></code></pre></div><h6 id="6-periodic-backup-graph">6. Periodic Backup Graph</h6>
 <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph --interval */2 * * * * schedule-backup -d ./backup-0.10.2
-</span></span></code></pre></div><h6 id="7-图恢复">7. 图恢复</h6>
-<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># 设置图模式</span>
+</span></span></code></pre></div><h6 id="7-recovery-graph">7. Recovery Graph</h6>
+<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># set graph mode</span>
 </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING
 </span></span><span style="display:flex;"><span>
-</span></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># 恢复图</span>
+</span></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># recovery graph</span>
 </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph restore -t all --directory ./backup-test
 </span></span><span style="display:flex;"><span>
-</span></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># 恢复图模式</span>
+</span></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># restore graph mode</span>
 </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m NONE
-</span></span></code></pre></div><h6 id="8-图迁移">8. 图迁移</h6>
+</span></span></code></pre></div><h6 id="8-graph-migration">8. Graph Migration</h6>
 <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph migrate --target-url http://127.0.0.1:8090 --target-graph hugegraph
 </span></span></code></pre></div>Docs: v0.4.4/docs/performance/api-preformance/hugegraph-api-0.4.4/Mon, 01 Jan 0001 00:00:00 +0000/docs/performance/api-preformance/hugegraph-api-0.4.4/
 <h3 id="1-测试环境">1 测试环境</h3>
diff --git a/docs/quickstart/_print/index.html b/docs/quickstart/_print/index.html
index 10a98e4c5..c4775d75e 100644
--- a/docs/quickstart/_print/index.html
+++ b/docs/quickstart/_print/index.html
@@ -645,13 +645,13 @@
 --deploy-mode cluster --name spark-hugegraph-loader --file ./hugegraph.json \
 --username admin --token admin --host xx.xx.xx.xx --port 8093 \
 --graph graph-test --num-executors 6 --executor-cores 16 --executor-memory 15g
-

3 - HugeGraph-Tools Quick Start

1 HugeGraph-Tools概述

HugeGraph-Tools 是 HugeGraph 的自动化部署、管理和备份/还原组件。

2 获取 HugeGraph-Tools

有两种方式可以获取 HugeGraph-Tools:

2.1 下载二进制tar包

下载最新版本的 HugeGraph-Tools 包:

wget https://github.com/hugegraph/hugegraph-tools/releases/download/v${version}/hugegraph-tools-${version}.tar.gz
+

3 - HugeGraph-Tools Quick Start

1 HugeGraph-Tools Overview

HugeGraph-Tools is an automated deployment, management and backup/restore component of HugeGraph.

2 Get HugeGraph-Tools

There are two ways to get HugeGraph-Tools:

2.1 Download the compiled archive

Download the latest version of the HugeGraph-Tools package:

wget https://github.com/hugegraph/hugegraph-tools/releases/download/v${version}/hugegraph-tools-${version}.tar.gz
 tar zxvf hugegraph-tools-${version}.tar.gz
-

2.2 下载源码编译安装

下载最新版本的 HugeGraph-Tools 源码包:

$ git clone https://github.com/hugegraph/hugegraph-tools.git
-

编译生成 tar 包:

cd hugegraph-tools
+

2.2 Clone source code to compile and install

Download the latest version of the HugeGraph-Tools source package:

$ git clone https://github.com/hugegraph/hugegraph-tools.git
+

Compile and generate tar package:

cd hugegraph-tools
 mvn package -DskipTests
-

生成 tar 包 hugegraph-tools-${version}.tar.gz

3 使用

3.1 功能概览

解压后,进入 hugegraph-tools 目录,可以使用bin/hugegraph或者bin/hugegraph help来查看 usage 信息。主要分为:

Usage: hugegraph [options] [command] [command options]
-
3.2 [options]-全局变量

options是 HugeGraph-Tools 的全局变量,可以在 hugegraph-tools/bin/hugegraph 中配置,包括:

上述全局变量,也可以通过环境变量来设置。一种方式是在命令行使用 export 设置临时环境变量,在该命令行关闭之前均有效

全局变量环境变量示例
–urlHUGEGRAPH_URLexport HUGEGRAPH_URL=http://127.0.0.1:8080
–graphHUGEGRAPH_GRAPHexport HUGEGRAPH_GRAPH=hugegraph
–userHUGEGRAPH_USERNAMEexport HUGEGRAPH_USERNAME=admin
–passwordHUGEGRAPH_PASSWORDexport HUGEGRAPH_PASSWORD=test
–timeoutHUGEGRAPH_TIMEOUTexport HUGEGRAPH_TIMEOUT=30
–trust-store-fileHUGEGRAPH_TRUST_STORE_FILEexport HUGEGRAPH_TRUST_STORE_FILE=/tmp/trust-store
–trust-store-passwordHUGEGRAPH_TRUST_STORE_PASSWORDexport HUGEGRAPH_TRUST_STORE_PASSWORD=xxxx

另一种方式是在 bin/hugegraph 脚本中设置环境变量:

#!/bin/bash
+

Generate tar package hugegraph-tools-${version}.tar.gz

3 How to use

3.1 Function overview

After decompression, enter the hugegraph-tools directory, you can use bin/hugegraph or bin/hugegraph help to view the usage information. mainly divided:

Usage: hugegraph [options] [command] [command options]
+
3.2 [options]-Global Variable

options is a global variable of HugeGraph-Tools, which can be configured in hugegraph-tools/bin/hugegraph, including:

The above global variables can also be set through environment variables. One way is to use export on the command line to set temporary environment variables, which are valid until the command line is closed

Global VariableEnvironment VariableExample
–urlHUGEGRAPH_URLexport HUGEGRAPH_URL=http://127.0.0.1:8080
–graphHUGEGRAPH_GRAPHexport HUGEGRAPH_GRAPH=hugegraph
–userHUGEGRAPH_USERNAMEexport HUGEGRAPH_USERNAME=admin
–passwordHUGEGRAPH_PASSWORDexport HUGEGRAPH_PASSWORD=test
–timeoutHUGEGRAPH_TIMEOUTexport HUGEGRAPH_TIMEOUT=30
–trust-store-fileHUGEGRAPH_TRUST_STORE_FILEexport HUGEGRAPH_TRUST_STORE_FILE=/tmp/trust-store
–trust-store-passwordHUGEGRAPH_TRUST_STORE_PASSWORDexport HUGEGRAPH_TRUST_STORE_PASSWORD=xxxx

Another way is to set the environment variable in the bin/hugegraph script:

#!/bin/bash
 
 # Set environment here if needed
 #export HUGEGRAPH_URL=
@@ -661,10 +661,10 @@
 #export HUGEGRAPH_TIMEOUT=
 #export HUGEGRAPH_TRUST_STORE_FILE=
 #export HUGEGRAPH_TRUST_STORE_PASSWORD=
-
3.3 图管理类,graph-mode-set、graph-mode-get、graph-list、graph-get和graph-clear

当需要把备份的图原样恢复到一个新的图中的时候,需要先将图模式设置为 RESTORING 模式;当需要将备份的图合并到已存在的图中时,需要先将图模式设置为 MERGING 模式。

3.4 异步任务管理类,task-list、task-get和task-delete
3.5 Gremlin类,gremlin-execute和gremlin-schedule
3.6 备份/恢复类
3.7 安装部署类

deploy命令中有可选参数 -u,提供时会使用指定的下载地址替代默认下载地址下载 tar 包,并且将地址写入~/hugegraph-download-url-prefix文件中;之后如果不指定地址时,会优先从~/hugegraph-download-url-prefix指定的地址下载 tar 包;如果 -u 和~/hugegraph-download-url-prefix都没有时,会从默认下载地址进行下载

3.8 具体命令参数

各子命令的具体参数如下:

Usage: hugegraph [options] [command] [command options]
+
3.3 Graph Management Type,graph-mode-set、graph-mode-get、graph-list、graph-get and graph-clear

When you need to restore the backup graph to a new graph, you need to set the graph mode to RESTORING mode; when you need to merge the backup graph into an existing graph, you need to first set the graph mode to MERGING model.

3.4 Asynchronous task management Type,task-list、task-get and task-delete
3.5 Gremlin Type,gremlin-execute and gremlin-schedule
3.6 Backup/Restore Type
3.7 Install the deployment type

There is an optional parameter -u in the deploy command. When provided, the specified download address will be used instead of the default download address to download the tar package, and the address will be written into the ~/hugegraph-download-url-prefix file; if no address is specified later When -u and ~/hugegraph-download-url-prefix are not specified, the tar package will be downloaded from the address specified by ~/hugegraph-download-url-prefix; if there is neither -u nor ~/hugegraph-download-url-prefix, it will be downloaded from the default download address

3.8 Specific command parameters

The specific parameters of each subcommand are as follows:

Usage: hugegraph [options] [command] [command options]
   Options:
     --graph
       Name of graph
@@ -965,35 +965,35 @@
 
     help      Print usage
       Usage: help
-
3.9 具体命令示例
1. gremlin语句
# 同步执行gremlin
+
3.9 Specific command example
1. gremlin statement
# Execute gremlin synchronously
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph gremlin-execute --script 'g.V().count()'
 
-# 异步执行gremlin
+# Execute gremlin asynchronously
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph gremlin-schedule --script 'g.V().count()'
-
2. 查看task情况
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list
+
2. Show task status
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list --limit 5
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list --status success
-
3. 图模式查看和设置
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING MERGING NONE
+
3. Set and show graph mode
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING MERGING NONE
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-get
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-list
-
4. 清理图
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-clear -c "I'm sure to delete all data"
-
5. 图备份
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph backup -t all --directory ./backup-test
-
6. 周期性的备份
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph --interval */2 * * * * schedule-backup -d ./backup-0.10.2
-
7. 图恢复
# 设置图模式
+
4. Cleanup Graph
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-clear -c "I'm sure to delete all data"
+
5. Backup Graph
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph backup -t all --directory ./backup-test
+
6. Periodic Backup Graph
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph --interval */2 * * * * schedule-backup -d ./backup-0.10.2
+
7. Recovery Graph
# set graph mode
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING
 
-# 恢复图
+# recovery graph
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph restore -t all --directory ./backup-test
 
-# 恢复图模式
+# restore graph mode
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m NONE
-
8. 图迁移
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph migrate --target-url http://127.0.0.1:8090 --target-graph hugegraph
+
8. Graph Migration
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph migrate --target-url http://127.0.0.1:8090 --target-graph hugegraph
 

4 - HugeGraph-Hubble Quick Start

1 HugeGraph-Hubble Overview

HugeGraph is an analysis-oriented graph database system that supports batch operations, which fully supports Apache TinkerPop3 framework and Gremlin graph query language. It provides a complete tool chain ecology such as export, backup, and recovery, and effectively solve the storage, query and correlation analysis needs of massive graph data. HugeGraph is widely used in the fields of risk control, insurance claims, recommendation search, public security crime crackdown, knowledge graph, network security, IT operation and maintenance of bank securities companies, and is committed to allowing more industries, organizations and users to enjoy a wider range of data comprehensive value.

HugeGraph-Hubble is HugeGraph’s one-stop visual analysis platform. The platform covers the whole process from data modeling, to efficient data import, to real-time and offline analysis of data, and unified management of graphs, realizing the whole process wizard of graph application. It is designed to improve the user’s use fluency, lower the user’s use threshold, and provide a more efficient and easy-to-use user experience.

The platform mainly includes the following modules:

Graph Management

The graph management module realizes the unified management of multiple graphs and graph access, editing, deletion, and query by creating graph and connecting the platform and graph data.

Metadata Modeling

The metadata modeling module realizes the construction and management of graph models by creating attribute libraries, vertex types, edge types, and index types. The platform provides two modes, list mode and graph mode, which can display the metadata model in real time, which is more intuitive. At the same time, it also provides a metadata reuse function across graphs, which saves the tedious and repetitive creation process of the same metadata, greatly improves modeling efficiency and enhances ease of use.

Data Import

Data import is to convert the user’s business data into the vertices and edges of the graph and insert it into the graph database. The platform provides a wizard-style visual import module. By creating import tasks, the management of import tasks and the parallel operation of multiple import tasks are realized. Improve import performance. After entering the import task, you only need to follow the platform step prompts, upload files as needed, and fill in the content to easily implement the import process of graph data. At the same time, it supports breakpoint resuming, error retry mechanism, etc., which reduces import costs and improves efficiency.

Graph Analysis

By inputting the graph traversal language Gremlin, high-performance general analysis of graph data can be realized, and functions such as customized multidimensional path query of vertices can be provided, and three kinds of graph result display methods are provided, including: graph form, table form, Json form, and multidimensional display. The data form meets the needs of various scenarios used by users. It provides functions such as running records and collection of common statements, realizing the traceability of graph operations, and the reuse and sharing of query input, which is fast and efficient. It supports the export of graph data, and the export format is Json format.

Task Management

For Gremlin tasks that need to traverse the whole graph, index creation and reconstruction and other time-consuming asynchronous tasks, the platform provides corresponding task management functions to achieve unified management and result viewing of asynchronous tasks.

2 Platform Workflow

The module usage process of the platform is as follows:

image

3 Platform Instructions

3.1 Graph Management

3.1.1 Graph creation

Under the graph management module, click [Create graph], and realize the connection of multiple graphs by filling in the graph ID, graph name, host name, port number, username, and password information.

image

Create graph by filling in the content as follows::

image
3.1.2 Graph Access

Realize the information access of the graph space. After entering, you can perform operations such as multidimensional query analysis, metadata management, data import, and algorithm analysis of the graph.

image
3.1.3 Graph management
  1. Users can achieve unified management of graphs through overview, search, and information editing and deletion of single graphs.
  2. Search range: You can search for the graph name and ID.
image

3.2 Metadata Modeling (list + graph mode)

3.2.1 Module entry

Left navigation:

image
3.2.2 Property type
3.2.2.1 Create type
  1. Fill in or select the attribute name, data type, and cardinality to complete the creation of the attribute.
  2. Created attributes can be used as attributes of vertex type and edge type.

List mode:

image

Graph mode:

image
3.2.2.2 Reuse
  1. The platform provides the [Reuse] function, which can directly reuse the metadata of other graphs.
  2. Select the graph ID that needs to be reused, and continue to select the attributes that need to be reused. After that, the platform will check whether there is a conflict. After passing, the metadata can be reused.

Select reuse items:

image

Check reuse items:

image
3.2.2.3 Management
  1. You can delete a single item or delete it in batches in the attribute list.
3.2.3 Vertex type
3.2.3.1 Create type
  1. Fill in or select the vertex type name, ID strategy, association attribute, primary key attribute, vertex style, content displayed below the vertex in the query result, and index information: including whether to create a type index, and the specific content of the attribute index, complete the vertex Type creation.

List mode:

image

Graph mode:

image
3.2.3.2 Reuse
  1. The multiplexing of vertex types will reuse the attributes and attribute indexes associated with this type together.
  2. The reuse method is similar to the property reuse, see 3.2.2.2.
3.2.3.3 Administration
  1. Editing operations are available. The vertex style, association type, vertex display content, and attribute index can be edited, and the rest cannot be edited.

  2. You can delete a single item or delete it in batches.

image
3.2.4 Edge Types
3.2.4.1 Create
  1. Fill in or select the edge type name, start point type, end point type, associated attributes, whether to allow multiple connections, edge style, content displayed below the edge in the query result, and index information: including whether to create a type index, and attribute index The specific content, complete the creation of the edge type.

List mode:

image

Graph mode:

image
3.2.4.2 Reuse
  1. The reuse of the edge type will reuse the start point type, end point type, associated attribute and attribute index of this type.
  2. The reuse method is similar to the property reuse, see 3.2.2.2.
3.2.4.3 Administration
  1. Editing operations are available. Edge styles, associated attributes, edge display content, and attribute indexes can be edited, and the rest cannot be edited, the same as the vertex type.
  2. You can delete a single item or delete it in batches.
3.2.5 Index Types

Displays vertex and edge indices for vertex types and edge types.

3.3 Data Import

The usage process of data import is as follows:

image
3.3.1 Module entrance

Left navigation:

image
3.3.2 Create task
  1. Fill in the task name and remarks (optional) to create an import task.
  2. Multiple import tasks can be created and imported in parallel.
image
3.3.3 Uploading files
  1. Upload the file that needs to be composed. The currently supported format is CSV, which will be updated continuously in the future.
  2. Multiple files can be uploaded at the same time.
image
3.3.4 Setting up data mapping
  1. Set up data mapping for uploaded files, including file settings and type settings

  2. File settings: Check or fill in whether to include the header, separator, encoding format and other settings of the file itself, all set the default values, no need to fill in manually

  3. Type setting:

    1. Vertex map and edge map:

      【Vertex Type】: Select the vertex type, and upload the column data in the file for its ID mapping;

      【Edge Type】: Select the edge type and map the column data of the uploaded file to the ID column of its start point type and end point type;

    2. Mapping settings: upload the column data in the file for the attribute mapping of the selected vertex type. Here, if the attribute name is the same as the header name of the file, the mapping attribute can be automatically matched, and there is no need to manually fill in the selection.

    3. After completing the setting, the setting list will be displayed before proceeding to the next step. It supports the operations of adding, editing and deleting mappings.

Fill in the settings map:

image

Mapping list:

image
3.3.5 Import data

Before importing, you need to fill in the import setting parameters. After filling in, you can start importing data into the gallery.

  1. Import settings
image
  1. Import details
image

3.4 Data Analysis

3.4.1 Module entry

Left navigation:

image
3.4.2 Multi-image switching

By switching the entrance on the left, flexibly switch the operation space of multiple graphs

image
3.4.3 Graph Analysis and Processing

HugeGraph supports Gremlin, a graph traversal query language of Apache TinkerPop3. Gremlin is a general graph database query language. By entering Gremlin statements and clicking execute, you can perform query and analysis operations on graph data, and create and delete vertices/edges. , vertex/edge attribute modification, etc.

After Gremlin query, below is the graph result display area, which provides 3 kinds of graph result display modes: [Graph Mode], [Table Mode], [Json Mode].

Support zoom, center, full screen, export and other operations.

【Picture Mode】

image

【Table mode】

image

【Json mode】

image
3.4.4 Data Details

Click the vertex/edge entity to view the data details of the vertex/edge, including: vertex/edge type, vertex ID, attribute and corresponding value, expand the information display dimension of the graph, and improve the usability.

3.4.5 Multidimensional Path Query of Graph Results

In addition to the global query, in-depth customized query and hidden operations can be performed for the vertices in the query result to realize customized mining of graph results.

Right-click a vertex, and the menu entry of the vertex appears, which can be displayed, inquired, hidden, etc.

Double-clicking a vertex also displays the vertex associated with the selected point.

image
3.4.6 Add vertex/edge
3.4.6.1 Added vertex

In the graph area, two entries can be used to dynamically add vertices, as follows:

  1. Click on the graph area panel, the Add Vertex entry appears
  2. Click the first icon in the action bar in the upper right corner

Complete the addition of vertices by selecting or filling in the vertex type, ID value, and attribute information.

The entry is as follows:

image

Add the vertex content as follows:

image
3.4.6.2 Add edge

Right-click a vertex in the graph result to add the outgoing or incoming edge of that point.

3.4.7 Execute the query of records and favorites
  1. Record each query record at the bottom of the graph area, including: query time, execution type, content, status, time-consuming, as well as [collection] and [load] operations, to achieve a comprehensive record of graph execution, with traces to follow, and Can quickly load and reuse execution content
  2. Provides the function of collecting sentences, which can be used to collect frequently used sentences, which is convenient for fast calling of high-frequency sentences.
image

3.5 Task Management

3.5.1 Module entry

Left navigation:

image
3.5.2 Task Management
  1. Provide unified management and result viewing of asynchronous tasks. There are 4 types of asynchronous tasks, namely:
  1. The list displays the asynchronous task information of the current graph, including: task ID, task name, task type, creation time, time-consuming, status, operation, and realizes the management of asynchronous tasks.
  2. Support filtering by task type and status
  3. Support searching for task ID and task name
  4. Asynchronous tasks can be deleted or deleted in batches
image
3.5.3 Gremlin asynchronous tasks
  1. Create a task
  1. Task submission
  1. Mission details
image

Click to view the entry to jump to the task management list, as follows:

image
  1. View the results
3.5.4 OLAP algorithm tasks

There is no visual OLAP algorithm execution on Hubble. You can call the RESTful API to perform OLAP algorithm tasks, find the corresponding tasks by ID in the task management, and view the progress and results.

3.5.5 Delete metadata, rebuild index
  1. Create a task
image
image
  1. Task details
image

5 - HugeGraph-Client Quick Start

1 Overview Of Hugegraph

HugeGraph-Client sends HTTP request to HugeGraph-Server to obtain and parse the execution result of Server. Currently only the HugeGraph-Client for Java is provided. You can use HugeGraph-Client to write Java code to operate HugeGraph, such as adding, deleting, modifying, and querying schema and graph data, or executing gremlin statements.

2 What You Need

3 How To Use

The basic steps to use HugeGraph-Client are as follows:

See the complete example in the following section for the detail.

4 Complete Example

4.1 Build New Maven Project

Using IDEA or Eclipse to create the project:

4.2 Add Hugegraph-Client Dependency In POM

<dependencies>
     <dependency>
         <groupId>com.baidu.hugegraph</groupId>
diff --git a/docs/quickstart/hugegraph-tools/index.html b/docs/quickstart/hugegraph-tools/index.html
index 43fa971ed..4c7f47df5 100644
--- a/docs/quickstart/hugegraph-tools/index.html
+++ b/docs/quickstart/hugegraph-tools/index.html
@@ -1,46 +1,27 @@
-HugeGraph-Tools Quick Start | HugeGraph
+HugeGraph-Tools Quick Start | HugeGraph
 

HugeGraph-Tools Quick Start

1 HugeGraph-Tools概述

HugeGraph-Tools 是 HugeGraph 的自动化部署、管理和备份/还原组件。

2 获取 HugeGraph-Tools

有两种方式可以获取 HugeGraph-Tools:

  • 下载二进制tar包
  • 下载源码编译安装

2.1 下载二进制tar包

下载最新版本的 HugeGraph-Tools 包:

wget https://github.com/hugegraph/hugegraph-tools/releases/download/v${version}/hugegraph-tools-${version}.tar.gz
+ Print entire section

HugeGraph-Tools Quick Start

1 HugeGraph-Tools Overview

HugeGraph-Tools is an automated deployment, management and backup/restore component of HugeGraph.

2 Get HugeGraph-Tools

There are two ways to get HugeGraph-Tools:

  • Download the compiled tarball
  • Clone source code then compile and install

2.1 Download the compiled archive

Download the latest version of the HugeGraph-Tools package:

wget https://github.com/hugegraph/hugegraph-tools/releases/download/v${version}/hugegraph-tools-${version}.tar.gz
 tar zxvf hugegraph-tools-${version}.tar.gz
-

2.2 下载源码编译安装

下载最新版本的 HugeGraph-Tools 源码包:

$ git clone https://github.com/hugegraph/hugegraph-tools.git
-

编译生成 tar 包:

cd hugegraph-tools
+

2.2 Clone source code to compile and install

Download the latest version of the HugeGraph-Tools source package:

$ git clone https://github.com/hugegraph/hugegraph-tools.git
+

Compile and generate tar package:

cd hugegraph-tools
 mvn package -DskipTests
-

生成 tar 包 hugegraph-tools-${version}.tar.gz

3 使用

3.1 功能概览

解压后,进入 hugegraph-tools 目录,可以使用bin/hugegraph或者bin/hugegraph help来查看 usage 信息。主要分为:

  • 图管理类,graph-mode-set、graph-mode-get、graph-list、graph-get 和 graph-clear
  • 异步任务管理类,task-list、task-get、task-delete、task-cancel 和 task-clear
  • Gremlin类,gremlin-execute 和 gremlin-schedule
  • 备份/恢复类,backup、restore、migrate、schedule-backup 和 dump
  • 安装部署类,deploy、clear、start-all 和 stop-all
Usage: hugegraph [options] [command] [command options]
-
3.2 [options]-全局变量

options是 HugeGraph-Tools 的全局变量,可以在 hugegraph-tools/bin/hugegraph 中配置,包括:

  • –graph,HugeGraph-Tools 操作的图的名字,默认值是 hugegraph
  • –url,HugeGraph-Server 的服务地址,默认是 http://127.0.0.1:8080
  • –user,当 HugeGraph-Server 开启认证时,传递用户名
  • –password,当 HugeGraph-Server 开启认证时,传递用户的密码
  • –timeout,连接 HugeGraph-Server 时的超时时间,默认是 30s
  • –trust-store-file,证书文件的路径,当 –url 使用 https 时,HugeGraph-Client 使用的 truststore 文件,默认为空,代表使用 hugegraph-tools 内置的 truststore 文件 conf/hugegraph.truststore
  • –trust-store-password,证书文件的密码,当 –url 使用 https 时,HugeGraph-Client 使用的 truststore 的密码,默认为空,代表使用 hugegraph-tools 内置的 truststore 文件的密码

上述全局变量,也可以通过环境变量来设置。一种方式是在命令行使用 export 设置临时环境变量,在该命令行关闭之前均有效

全局变量环境变量示例
–urlHUGEGRAPH_URLexport HUGEGRAPH_URL=http://127.0.0.1:8080
–graphHUGEGRAPH_GRAPHexport HUGEGRAPH_GRAPH=hugegraph
–userHUGEGRAPH_USERNAMEexport HUGEGRAPH_USERNAME=admin
–passwordHUGEGRAPH_PASSWORDexport HUGEGRAPH_PASSWORD=test
–timeoutHUGEGRAPH_TIMEOUTexport HUGEGRAPH_TIMEOUT=30
–trust-store-fileHUGEGRAPH_TRUST_STORE_FILEexport HUGEGRAPH_TRUST_STORE_FILE=/tmp/trust-store
–trust-store-passwordHUGEGRAPH_TRUST_STORE_PASSWORDexport HUGEGRAPH_TRUST_STORE_PASSWORD=xxxx

另一种方式是在 bin/hugegraph 脚本中设置环境变量:

#!/bin/bash
+

Generate tar package hugegraph-tools-${version}.tar.gz

3 How to use

3.1 Function overview

After decompression, enter the hugegraph-tools directory, you can use bin/hugegraph or bin/hugegraph help to view the usage information. mainly divided:

  • Graph management Type,graph-mode-set、graph-mode-get、graph-list、graph-get and graph-clear
  • Asynchronous task management Type,task-list、task-get、task-delete、task-cancel and task-clear
  • Gremlin Type,gremlin-execute and gremlin-schedule
  • Backup/Restore Type,backup、restore、migrate、schedule-backup and dump
  • Install the deployment Type,deploy、clear、start-all and stop-all
Usage: hugegraph [options] [command] [command options]
+
3.2 [options]-Global Variable

options is a global variable of HugeGraph-Tools, which can be configured in hugegraph-tools/bin/hugegraph, including:

  • –graph,HugeGraph-Tools The name of the graph to operate on, the default value is hugegraph
  • –url,The service address of HugeGraph-Server, the default is http://127.0.0.1:8080
  • –user,When HugeGraph-Server opens authentication, pass username
  • –password,When HugeGraph-Server opens authentication, pass the user’s password
  • –timeout,Timeout when connecting to HugeGraph-Server, the default is 30s
  • –trust-store-file,The path of the certificate file, when –url uses https, the truststore file used by HugeGraph-Client, the default is empty, which means using the built-in truststore file conf/hugegraph.truststore of hugegraph-tools
  • –trust-store-password,The password of the certificate file, when –url uses https, the password of the truststore used by HugeGraph-Client, the default is empty, representing the password of the built-in truststore file of hugegraph-tools

The above global variables can also be set through environment variables. One way is to use export on the command line to set temporary environment variables, which are valid until the command line is closed

Global VariableEnvironment VariableExample
–urlHUGEGRAPH_URLexport HUGEGRAPH_URL=http://127.0.0.1:8080
–graphHUGEGRAPH_GRAPHexport HUGEGRAPH_GRAPH=hugegraph
–userHUGEGRAPH_USERNAMEexport HUGEGRAPH_USERNAME=admin
–passwordHUGEGRAPH_PASSWORDexport HUGEGRAPH_PASSWORD=test
–timeoutHUGEGRAPH_TIMEOUTexport HUGEGRAPH_TIMEOUT=30
–trust-store-fileHUGEGRAPH_TRUST_STORE_FILEexport HUGEGRAPH_TRUST_STORE_FILE=/tmp/trust-store
–trust-store-passwordHUGEGRAPH_TRUST_STORE_PASSWORDexport HUGEGRAPH_TRUST_STORE_PASSWORD=xxxx

Another way is to set the environment variable in the bin/hugegraph script:

#!/bin/bash
 
 # Set environment here if needed
 #export HUGEGRAPH_URL=
@@ -50,10 +31,10 @@
 #export HUGEGRAPH_TIMEOUT=
 #export HUGEGRAPH_TRUST_STORE_FILE=
 #export HUGEGRAPH_TRUST_STORE_PASSWORD=
-
3.3 图管理类,graph-mode-set、graph-mode-get、graph-list、graph-get和graph-clear
  • graph-mode-set,设置图的 restore mode
    • –graph-mode 或者 -m,必填项,指定将要设置的模式,合法值包括 [NONE, RESTORING, MERGING, LOADING]
  • graph-mode-get,获取图的 restore mode
  • graph-list,列出某个 HugeGraph-Server 中全部的图
  • graph-get,获取某个图及其存储后端类型
  • graph-clear,清除某个图的全部 schema 和 data
    • –confirm-message 或者 -c,必填项,删除确认信息,需要手动输入,二次确认防止误删,“I’m sure to delete all data”,包括双引号

当需要把备份的图原样恢复到一个新的图中的时候,需要先将图模式设置为 RESTORING 模式;当需要将备份的图合并到已存在的图中时,需要先将图模式设置为 MERGING 模式。

3.4 异步任务管理类,task-list、task-get和task-delete
  • task-list,列出某个图中的异步任务,可以根据任务的状态过滤
    • –status,选填项,指定要查看的任务的状态,即按状态过滤任务
    • –limit,选填项,指定要获取的任务的数目,默认为 -1,意思为获取全部符合条件的任务
  • task-get,获取某个异步任务的详细信息
    • –task-id,必填项,指定异步任务的 ID
  • task-delete,删除某个异步任务的信息
    • –task-id,必填项,指定异步任务的 ID
  • task-cancel,取消某个异步任务的执行
    • –task-id,要取消的异步任务的 ID
  • task-clear,清理完成的异步任务
    • –force,选填项,设置时,表示清理全部异步任务,未执行完成的先取消,然后清除所有异步任务。默认只清理已完成的异步任务
3.5 Gremlin类,gremlin-execute和gremlin-schedule
  • gremlin-execute,发送 Gremlin 语句到 HugeGraph-Server 来执行查询或修改操作,同步执行,结束后返回结果
    • –file 或者 -f,指定要执行的脚本文件,UTF-8编码,与 –script 互斥
    • –script 或者 -s,指定要执行的脚本字符串,与 –file 互斥
    • –aliases 或者 -a,Gremlin 别名设置,格式为:key1=value1,key2=value2,…
    • –bindings 或者 -b,Gremlin 绑定设置,格式为:key1=value1,key2=value2,…
    • –language 或者 -l,Gremlin 脚本的语言,默认为 gremlin-groovy

    –file 和 –script 二者互斥,必须设置其中之一

  • gremlin-schedule,发送 Gremlin 语句到 HugeGraph-Server 来执行查询或修改操作,异步执行,任务提交后立刻返回异步任务id
    • –file 或者 -f,指定要执行的脚本文件,UTF-8编码,与 –script 互斥
    • –script 或者 -s,指定要执行的脚本字符串,与 –file 互斥
    • –bindings 或者 -b,Gremlin 绑定设置,格式为:key1=value1,key2=value2,…
    • –language 或者 -l,Gremlin 脚本的语言,默认为 gremlin-groovy

    –file 和 –script 二者互斥,必须设置其中之一

3.6 备份/恢复类
  • backup,将某张图中的 schema 或者 data 备份到 HugeGraph 系统之外,以 JSON 形式存在本地磁盘或者 HDFS
    • –format,备份的格式,可选值包括 [json, text],默认为 json
    • –all-properties,是否备份顶点/边全部的属性,仅在 –format 为 text 是有效,默认 false
    • –label,要备份的顶点/边的类型,仅在 –format 为 text 是有效,只有备份顶点或者边的时候有效
    • –properties,要备份的顶点/边的属性,逗号分隔,仅在 –format 为 text 是有效,只有备份顶点或者边的时候有效
    • –compress,备份时是否压缩数据,默认为 true
    • –directory 或者 -d,存储 schema 或者 data 的目录,本地目录时,默认为’./{graphName}’,HDFS 时,默认为 ‘{fs.default.name}/{graphName}’
    • –huge-types 或者 -t,要备份的数据类型,逗号分隔,可选值为 ‘all’ 或者 一个或多个 [vertex,edge,vertex_label,edge_label,property_key,index_label] 的组合,‘all’ 代表全部6种类型,即顶点、边和所有schema
    • –log 或者 -l,指定日志目录,默认为当前目录
    • –retry,指定失败重试次数,默认为 3
    • –split-size 或者 -s,指定在备份时对顶点或者边分块的大小,默认为 1048576
    • -D,用 -Dkey=value 的模式指定动态参数,用来备份数据到 HDFS 时,指定 HDFS 的配置项,例如:-Dfs.default.name=hdfs://localhost:9000
  • restore,将 JSON 格式存储的 schema 或者 data 恢复到一个新图中(RESTORING 模式)或者合并到已存在的图中(MERGING 模式)
    • –directory 或者 -d,存储 schema 或者 data 的目录,本地目录时,默认为’./{graphName}’,HDFS 时,默认为 ‘{fs.default.name}/{graphName}’
    • –clean,是否在恢复图完成后删除 –directory 指定的目录,默认为 false
    • –huge-types 或者 -t,要恢复的数据类型,逗号分隔,可选值为 ‘all’ 或者 一个或多个 [vertex,edge,vertex_label,edge_label,property_key,index_label] 的组合,‘all’ 代表全部6种类型,即顶点、边和所有schema
    • –log 或者 -l,指定日志目录,默认为当前目录
    • –retry,指定失败重试次数,默认为 3
    • -D,用 -Dkey=value 的模式指定动态参数,用来从 HDFS 恢复图时,指定 HDFS 的配置项,例如:-Dfs.default.name=hdfs://localhost:9000

    只有当 –format 为 json 执行 backup 时,才可以使用 restore 命令恢复

  • migrate, 将当前连接的图迁移至另一个 HugeGraphServer 中
    • –target-graph,目标图的名字,默认为 hugegraph
    • –target-url,目标图所在的 HugeGraphServer,默认为 http://127.0.0.1:8081
    • –target-username,访问目标图的用户名
    • –target-password,访问目标图的密码
    • –target-timeout,访问目标图的超时时间
    • –target-trust-store-file,访问目标图使用的 truststore 文件
    • –target-trust-store-password,访问目标图使用的 truststore 的密码
    • –directory 或者 -d,迁移过程中,存储源图的 schema 或者 data 的目录,本地目录时,默认为’./{graphName}’,HDFS 时,默认为 ‘{fs.default.name}/{graphName}’
    • –huge-types 或者 -t,要迁移的数据类型,逗号分隔,可选值为 ‘all’ 或者 一个或多个 [vertex,edge,vertex_label,edge_label,property_key,index_label] 的组合,‘all’ 代表全部6种类型,即顶点、边和所有schema
    • –log 或者 -l,指定日志目录,默认为当前目录
    • –retry,指定失败重试次数,默认为 3
    • –split-size 或者 -s,指定迁移过程中对源图进行备份时顶点或者边分块的大小,默认为 1048576
    • -D,用 -Dkey=value 的模式指定动态参数,用来在迁移图过程中需要备份数据到 HDFS 时,指定 HDFS 的配置项,例如:-Dfs.default.name=hdfs://localhost:9000
    • –graph-mode 或者 -m,将源图恢复到目标图时将目标图设置的模式,合法值包括 [RESTORING, MERGING]
    • –keep-local-data,是否保留在迁移图的过程中产生的源图的备份,默认为 false,即默认迁移图结束后不保留产生的源图备份
  • schedule-backup,周期性对图执行备份操作,并保留一定数目的最新备份(目前仅支持本地文件系统)
    • –directory 或者 -d,必填项,指定备份数据的目录
    • –backup-num,选填项,指定保存的最新的备份的数目,默认为 3
    • –interval,选填项,指定进行备份的周期,格式同 Linux crontab 格式
  • dump,把整张图的顶点和边全部导出,默认以vertex vertex-edge1 vertex-edge2...JSON格式存储。 -用户也可以自定义存储格式,只需要在hugegraph-tools/src/main/java/com/baidu/hugegraph/formatter -目录下实现一个继承自Formatter的类,例如CustomFormatter,使用时指定该类为formatter即可,例如 -bin/hugegraph dump -f CustomFormatter
    • –formatter 或者 -f,指定使用的 formatter,默认为 JsonFormatter
    • –directory 或者 -d,存储 schema 或者 data 的目录,默认为当前目录
    • –log 或者 -l,指定日志目录,默认为当前目录
    • –retry,指定失败重试次数,默认为 3
    • –split-size 或者 -s,指定在备份时对顶点或者边分块的大小,默认为 1048576
    • -D,用 -Dkey=value 的模式指定动态参数,用来备份数据到 HDFS 时,指定 HDFS 的配置项,例如:-Dfs.default.name=hdfs://localhost:9000
3.7 安装部署类
  • deploy,一键下载、安装和启动 HugeGraph-Server 和 HugeGraph-Studio
    • -v,必填项,指明安装的 HugeGraph-Server 和 HugeGraph-Studio 的版本号,最新的是 0.9
    • -p,必填项,指定安装的 HugeGraph-Server 和 HugeGraph-Studio 目录
    • -u,选填项,指定下载 HugeGraph-Server 和 HugeGraph-Studio 压缩包的链接
  • clear,清理 HugeGraph-Server 和 HugeGraph-Studio 目录和tar包
    • -p,必填项,指定要清理的 HugeGraph-Server 和 HugeGraph-Studio 的目录
  • start-all,一键启动 HugeGraph-Server 和 HugeGraph-Studio,并启动监控,服务死掉时自动拉起服务
    • -v,必填项,指明要启动的 HugeGraph-Server 和 HugeGraph-Studio 的版本号,最新的是 0.9
    • -p,必填项,指定安装了 HugeGraph-Server 和 HugeGraph-Studio 的目录
  • stop-all,一键关闭 HugeGraph-Server 和 HugeGraph-Studio

deploy命令中有可选参数 -u,提供时会使用指定的下载地址替代默认下载地址下载 tar 包,并且将地址写入~/hugegraph-download-url-prefix文件中;之后如果不指定地址时,会优先从~/hugegraph-download-url-prefix指定的地址下载 tar 包;如果 -u 和~/hugegraph-download-url-prefix都没有时,会从默认下载地址进行下载

3.8 具体命令参数

各子命令的具体参数如下:

Usage: hugegraph [options] [command] [command options]
+
3.3 Graph Management Type,graph-mode-set、graph-mode-get、graph-list、graph-get and graph-clear
  • graph-mode-set,set graph restore mode
    • –graph-mode or -m, required, specifies the mode to be set, legal values include [NONE, RESTORING, MERGING, LOADING]
  • graph-mode-get,get graph restore mode
  • graph-list,list all graphs in a HugeGraph-Server
  • graph-get,get a graph and its storage backend type
  • graph-clear,clear all schema and data of a graph
    • –confirm-message Or -c, required, delete confirmation information, manual input is required, double confirmation to prevent accidental deletion, “I’m sure to delete all data”, including double quotes

When you need to restore the backup graph to a new graph, you need to set the graph mode to RESTORING mode; when you need to merge the backup graph into an existing graph, you need to first set the graph mode to MERGING model.

3.4 Asynchronous task management Type,task-list、task-get and task-delete
  • task-list,List the asynchronous tasks in a graph, which can be filtered according to the status of the tasks
    • –status,Optional, specify the status of the task to view, i.e. filter tasks by status
    • –limit,Optional, specify the number of tasks to be obtained, the default is -1, which means to obtain all eligible tasks
  • task-get,Get detailed information about an asynchronous task
    • –task-id,Required, specifies the ID of the asynchronous task
  • task-delete,Delete information about an asynchronous task
    • –task-id,Required, specifies the ID of the asynchronous task
  • task-cancel,Cancel the execution of an asynchronous task
    • –task-id,ID of the asynchronous task to cancel
  • task-clear,Clean up completed asynchronous tasks
    • –force,Optional. When set, it means to clean up all asynchronous tasks. Unfinished ones are canceled first, and then all asynchronous tasks are cleared. By default, only completed asynchronous tasks are cleaned up
3.5 Gremlin Type,gremlin-execute and gremlin-schedule
  • gremlin-execute, send Gremlin statements to HugeGraph-Server to execute query or modification operations, execute synchronously, and return results after completion
    • –file or -f, specify the script file to execute, UTF-8 encoding, mutually exclusive with –script
    • –script or -s, specifies the script string to execute, mutually exclusive with –file
    • –aliases or -a, Gremlin alias settings, the format is: key1=value1,key2=value2,…
    • –bindings or -b, Gremlin binding settings, the format is: key1=value1,key2=value2,…
    • –language or -l, the language of the Gremlin script, the default is gremlin-groovy

    –file and –script are mutually exclusive, one of them must be set

  • gremlin-schedule, send Gremlin statements to HugeGraph-Server to perform query or modification operations, asynchronous execution, and return the asynchronous task id immediately after the task is submitted
    • –file or -f, specify the script file to execute, UTF-8 encoding, mutually exclusive with –script
    • –script or -s, specifies the script string to execute, mutually exclusive with –file
    • –bindings or -b, Gremlin binding settings, the format is: key1=value1,key2=value2,…
    • –language or -l, the language of the Gremlin script, the default is gremlin-groovy

    –file and –script are mutually exclusive, one of them must be set

3.6 Backup/Restore Type
  • backup, back up the schema or data in a certain graph out of the HugeGraph system, and store it on the local disk or HDFS in the form of JSON
    • –format, the backup format, optional values include [json, text], the default is json
    • –all-properties, whether to back up all properties of vertices/edges, only valid when –format is text, default false
    • –label, the type of vertices/edges to be backed up, only valid when –format is text, only valid when backing up vertices or edges
    • –properties, properties of vertices/edges to be backed up, separated by commas, only valid when –format is text, valid only when backing up vertices or edges
    • –compress, whether to compress data during backup, the default is true
    • –directory or -d, the directory to store schema or data, the default is ‘./{graphName}’ for local directory, and ‘{fs.default.name}/{graphName}’ for HDFS
    • –huge-types or -t, the data types to be backed up, separated by commas, the optional value is ‘all’ or a combination of one or more [vertex, edge, vertex_label, edge_label, property_key, index_label], ‘all’ Represents all 6 types, namely vertices, edges and all schemas
    • –log or -l, specify the log directory, the default is the current directory
    • –retry, specify the number of failed retries, the default is 3
    • –split-size or -s, specifies the size of splitting vertices or edges when backing up, the default is 1048576
    • -D, use the mode of -Dkey=value to specify dynamic parameters, and specify HDFS configuration items when backing up data to HDFS, for example: -Dfs.default.name=hdfs://localhost:9000
  • restore, restore schema or data stored in JSON format to a new graph (RESTORING mode) or merge into an existing graph (MERGING mode)
    • –directory or -d, the directory to store schema or data, the default is ‘./{graphName}’ for local directory, and ‘{fs.default.name}/{graphName}’ for HDFS
    • –clean, whether to delete the directory specified by –directory after the recovery map is completed, the default is false
    • –huge-types or -t, data types to restore, separated by commas, optional value is ‘all’ or a combination of one or more [vertex, edge, vertex_label, edge_label, property_key, index_label], ‘all’ Represents all 6 types, namely vertices, edges and all schemas
    • –log or -l, specify the log directory, the default is the current directory
    • –retry, specify the number of failed retries, the default is 3
    • -D, use the mode of -Dkey=value to specify dynamic parameters, which are used to specify HDFS configuration items when restoring graphs from HDFS, for example: -Dfs.default.name=hdfs://localhost:9000

    restore command can be used only if –format is executed as backup for json

  • migrate, migrate the currently connected graph to another HugeGraphServer
    • –target-graph, the name of the target graph, the default is hugegraph
    • –target-url, the HugeGraphServer where the target graph is located, the default is http://127.0.0.1:8081
    • –target-username, the username to access the target map
    • –target-password, the password to access the target map
    • –target-timeout, the timeout for accessing the target map
    • –target-trust-store-file, access the truststore file used by the target graph
    • –target-trust-store-password, the password to access the truststore used by the target map
    • –directory or -d, during the migration process, the directory where the schema or data of the source graph is stored. For a local directory, the default is ‘./{graphName}’; for HDFS, the default is ‘{fs.default.name}/ {graphName}’
    • –huge-types or -t, the data types to be migrated, separated by commas, the optional value is ‘all’ or a combination of one or more [vertex, edge, vertex_label, edge_label, property_key, index_label], ‘all’ Represents all 6 types, namely vertices, edges and all schemas
    • –log or -l, specify the log directory, the default is the current directory
    • –retry, specify the number of failed retries, the default is 3
    • –split-size or -s, specify the size of the vertex or edge block when backing up the source graph during the migration process, the default is 1048576
    • -D, use the mode of -Dkey=value to specify dynamic parameters, which are used to specify HDFS configuration items when the data needs to be backed up to HDFS during the migration process, for example: -Dfs.default.name=hdfs://localhost: 9000
    • –graph-mode or -m, the mode to set the target graph when restoring the source graph to the target graph, legal values include [RESTORING, MERGING]
    • –keep-local-data, whether to keep the backup of the source map generated in the process of migrating the map, the default is false, that is, the backup of the source map is not kept after the default migration map ends
  • schedule-backup, periodically back up the graph and keep a certain number of the latest backups (currently only supports local file systems)
    • –directory or -d, required, specifies the directory of the backup data
    • –backup-num, optional, specifies the number of latest backups to save, defaults to 3
    • –interval, an optional item, specifies the backup cycle, the format is the same as the Linux crontab format
  • dump, export all the vertices and edges of the entire graph, and store them in vertex vertex-edge1 vertex-edge2...JSON format by default. +Users can also customize the storage format, just need to be in hugegraph-tools/src/main/java/com/baidu/hugegraph/formatter +Implement a class inherited from Formatter in the directory, such as CustomFormatter, and specify this class as formatter when using it, for example +bin/hugegraph dump -f CustomFormatter
    • –formatter or -f, specify the formatter to use, the default is JsonFormatter
    • –directory or -d, the directory where schema or data is stored, the default is the current directory
    • –log or -l, specify the log directory, the default is the current directory
    • –retry, specify the number of failed retries, the default is 3
    • –split-size or -s, specifies the size of splitting vertices or edges when backing up, the default is 1048576
    • -D, use the mode of -Dkey=value to specify dynamic parameters, and specify HDFS configuration items when backing up data to HDFS, for example: -Dfs.default.name=hdfs://localhost:9000
3.7 Install the deployment type
  • deploy, one-click download, install and start HugeGraph-Server and HugeGraph-Studio
    • -v, required, specifies the version number of HugeGraph-Server and HugeGraph-Studio installed, the latest is 0.9
    • -p, required, specifies the installed HugeGraph-Server and HugeGraph-Studio directories
    • -u, optional, specifies the link to download the HugeGraph-Server and HugeGraph-Studio compressed packages
  • clear, clean up HugeGraph-Server and HugeGraph-Studio directories and tarballs
    • -p, required, specifies the directory of HugeGraph-Server and HugeGraph-Studio to be cleaned
  • start-all, start HugeGraph-Server and HugeGraph-Studio with one click, and start monitoring, automatically pull up the service when the service dies
    • -v, required, specifies the version number of HugeGraph-Server and HugeGraph-Studio to be started, the latest is 0.9
    • -p, required, specifies the directory where HugeGraph-Server and HugeGraph-Studio are installed
  • stop-all, close HugeGraph-Server and HugeGraph-Studio with one click

There is an optional parameter -u in the deploy command. When provided, the specified download address will be used instead of the default download address to download the tar package, and the address will be written into the ~/hugegraph-download-url-prefix file; if no address is specified later When -u and ~/hugegraph-download-url-prefix are not specified, the tar package will be downloaded from the address specified by ~/hugegraph-download-url-prefix; if there is neither -u nor ~/hugegraph-download-url-prefix, it will be downloaded from the default download address

3.8 Specific command parameters

The specific parameters of each subcommand are as follows:

Usage: hugegraph [options] [command] [command options]
   Options:
     --graph
       Name of graph
@@ -354,36 +335,36 @@
 
     help      Print usage
       Usage: help
-
3.9 具体命令示例
1. gremlin语句
# 同步执行gremlin
+
3.9 Specific command example
1. gremlin statement
# Execute gremlin synchronously
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph gremlin-execute --script 'g.V().count()'
 
-# 异步执行gremlin
+# Execute gremlin asynchronously
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph gremlin-schedule --script 'g.V().count()'
-
2. 查看task情况
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list
+
2. Show task status
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list --limit 5
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list --status success
-
3. 图模式查看和设置
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING MERGING NONE
+
3. Set and show graph mode
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING MERGING NONE
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-get
 
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-list
-
4. 清理图
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-clear -c "I'm sure to delete all data"
-
5. 图备份
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph backup -t all --directory ./backup-test
-
6. 周期性的备份
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph --interval */2 * * * * schedule-backup -d ./backup-0.10.2
-
7. 图恢复
# 设置图模式
+
4. Cleanup Graph
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-clear -c "I'm sure to delete all data"
+
5. Backup Graph
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph backup -t all --directory ./backup-test
+
6. Periodic Backup Graph
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph --interval */2 * * * * schedule-backup -d ./backup-0.10.2
+
7. Recovery Graph
# set graph mode
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING
 
-# 恢复图
+# recovery graph
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph restore -t all --directory ./backup-test
 
-# 恢复图模式
+# restore graph mode
 ./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m NONE
-
8. 图迁移
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph migrate --target-url http://127.0.0.1:8090 --target-graph hugegraph
-

Last modified September 15, 2022: add rank api & fix typo (06499b02)
+
8. Graph Migration
./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph migrate --target-url http://127.0.0.1:8090 --target-graph hugegraph
+

diff --git a/docs/quickstart/index.xml b/docs/quickstart/index.xml index 5a52c5e39..a49260d0f 100644 --- a/docs/quickstart/index.xml +++ b/docs/quickstart/index.xml @@ -1284,54 +1284,54 @@ And there is no need to guarantee the order between the two parameters.</p> </span></span></span><span style="display:flex;"><span><span style="color:#4e9a06"></span>--username admin --token admin --host xx.xx.xx.xx --port <span style="color:#0000cf;font-weight:bold">8093</span> <span style="color:#4e9a06">\ </span></span></span><span style="display:flex;"><span><span style="color:#4e9a06"></span>--graph graph-test --num-executors <span style="color:#0000cf;font-weight:bold">6</span> --executor-cores <span style="color:#0000cf;font-weight:bold">16</span> --executor-memory 15g </span></span></code></pre></div>Docs: HugeGraph-Tools Quick Start/docs/quickstart/hugegraph-tools/Mon, 01 Jan 0001 00:00:00 +0000/docs/quickstart/hugegraph-tools/ -<h3 id="1-hugegraph-tools概述">1 HugeGraph-Tools概述</h3> -<p>HugeGraph-Tools 是 HugeGraph 的自动化部署、管理和备份/还原组件。</p> -<h3 id="2-获取-hugegraph-tools">2 获取 HugeGraph-Tools</h3> -<p>有两种方式可以获取 HugeGraph-Tools:</p> +<h3 id="1-hugegraph-tools-overview">1 HugeGraph-Tools Overview</h3> +<p>HugeGraph-Tools is an automated deployment, management and backup/restore component of HugeGraph.</p> +<h3 id="2-get-hugegraph-tools">2 Get HugeGraph-Tools</h3> +<p>There are two ways to get HugeGraph-Tools:</p> <ul> -<li>下载二进制tar包</li> -<li>下载源码编译安装</li> +<li>Download the compiled tarball</li> +<li>Clone source code then compile and install</li> </ul> -<h4 id="21-下载二进制tar包">2.1 下载二进制tar包</h4> -<p>下载最新版本的 HugeGraph-Tools 包:</p> +<h4 id="21-download-the-compiled-archive">2.1 Download the compiled archive</h4> +<p>Download the latest version of the HugeGraph-Tools package:</p> <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>wget https://github.com/hugegraph/hugegraph-tools/releases/download/v<span style="color:#4e9a06">${</span><span style="color:#000">version</span><span style="color:#4e9a06">}</span>/hugegraph-tools-<span style="color:#4e9a06">${</span><span style="color:#000">version</span><span style="color:#4e9a06">}</span>.tar.gz </span></span><span style="display:flex;"><span>tar zxvf hugegraph-tools-<span style="color:#4e9a06">${</span><span style="color:#000">version</span><span style="color:#4e9a06">}</span>.tar.gz -</span></span></code></pre></div><h4 id="22-下载源码编译安装">2.2 下载源码编译安装</h4> -<p>下载最新版本的 HugeGraph-Tools 源码包:</p> +</span></span></code></pre></div><h4 id="22-clone-source-code-to-compile-and-install">2.2 Clone source code to compile and install</h4> +<p>Download the latest version of the HugeGraph-Tools source package:</p> <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>$ git clone https://github.com/hugegraph/hugegraph-tools.git -</span></span></code></pre></div><p>编译生成 tar 包:</p> +</span></span></code></pre></div><p>Compile and generate tar package:</p> <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#204a87">cd</span> hugegraph-tools </span></span><span style="display:flex;"><span>mvn package -DskipTests -</span></span></code></pre></div><p>生成 tar 包 hugegraph-tools-${version}.tar.gz</p> -<h3 id="3-使用">3 使用</h3> -<h4 id="31-功能概览">3.1 功能概览</h4> -<p>解压后,进入 hugegraph-tools 目录,可以使用<code>bin/hugegraph</code>或者<code>bin/hugegraph help</code>来查看 usage 信息。主要分为:</p> +</span></span></code></pre></div><p>Generate tar package hugegraph-tools-${version}.tar.gz</p> +<h3 id="3-how-to-use">3 How to use</h3> +<h4 id="31-function-overview">3.1 Function overview</h4> +<p>After decompression, enter the hugegraph-tools directory, you can use <code>bin/hugegraph</code> or <code>bin/hugegraph help</code> to view the usage information. mainly divided:</p> <ul> -<li>图管理类,graph-mode-set、graph-mode-get、graph-list、graph-get 和 graph-clear</li> -<li>异步任务管理类,task-list、task-get、task-delete、task-cancel 和 task-clear</li> -<li>Gremlin类,gremlin-execute 和 gremlin-schedule</li> -<li>备份/恢复类,backup、restore、migrate、schedule-backup 和 dump</li> -<li>安装部署类,deploy、clear、start-all 和 stop-all</li> +<li>Graph management Type,graph-mode-set、graph-mode-get、graph-list、graph-get and graph-clear</li> +<li>Asynchronous task management Type,task-list、task-get、task-delete、task-cancel and task-clear</li> +<li>Gremlin Type,gremlin-execute and gremlin-schedule</li> +<li>Backup/Restore Type,backup、restore、migrate、schedule-backup and dump</li> +<li>Install the deployment Type,deploy、clear、start-all and stop-all</li> </ul> <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>Usage: hugegraph <span style="color:#ce5c00;font-weight:bold">[</span>options<span style="color:#ce5c00;font-weight:bold">]</span> <span style="color:#ce5c00;font-weight:bold">[</span>command<span style="color:#ce5c00;font-weight:bold">]</span> <span style="color:#ce5c00;font-weight:bold">[</span><span style="color:#204a87">command</span> options<span style="color:#ce5c00;font-weight:bold">]</span> -</span></span></code></pre></div><h5 id="32-options-全局变量">3.2 [options]-全局变量</h5> -<p><code>options</code>是 HugeGraph-Tools 的全局变量,可以在 hugegraph-tools/bin/hugegraph 中配置,包括:</p> +</span></span></code></pre></div><h5 id="32-options-global-variable">3.2 [options]-Global Variable</h5> +<p><code>options</code> is a global variable of HugeGraph-Tools, which can be configured in hugegraph-tools/bin/hugegraph, including:</p> <ul> -<li>&ndash;graph,HugeGraph-Tools 操作的图的名字,默认值是 hugegraph</li> -<li>&ndash;url,HugeGraph-Server 的服务地址,默认是 http://127.0.0.1:8080</li> -<li>&ndash;user,当 HugeGraph-Server 开启认证时,传递用户名</li> -<li>&ndash;password,当 HugeGraph-Server 开启认证时,传递用户的密码</li> -<li>&ndash;timeout,连接 HugeGraph-Server 时的超时时间,默认是 30s</li> -<li>&ndash;trust-store-file,证书文件的路径,当 &ndash;url 使用 https 时,HugeGraph-Client 使用的 truststore 文件,默认为空,代表使用 hugegraph-tools 内置的 truststore 文件 conf/hugegraph.truststore</li> -<li>&ndash;trust-store-password,证书文件的密码,当 &ndash;url 使用 https 时,HugeGraph-Client 使用的 truststore 的密码,默认为空,代表使用 hugegraph-tools 内置的 truststore 文件的密码</li> -</ul> -<p>上述全局变量,也可以通过环境变量来设置。一种方式是在命令行使用 export 设置临时环境变量,在该命令行关闭之前均有效</p> +<li>&ndash;graph,HugeGraph-Tools The name of the graph to operate on, the default value is hugegraph</li> +<li>&ndash;url,The service address of HugeGraph-Server, the default is http://127.0.0.1:8080</li> +<li>&ndash;user,When HugeGraph-Server opens authentication, pass username</li> +<li>&ndash;password,When HugeGraph-Server opens authentication, pass the user&rsquo;s password</li> +<li>&ndash;timeout,Timeout when connecting to HugeGraph-Server, the default is 30s</li> +<li>&ndash;trust-store-file,The path of the certificate file, when &ndash;url uses https, the truststore file used by HugeGraph-Client, the default is empty, which means using the built-in truststore file conf/hugegraph.truststore of hugegraph-tools</li> +<li>&ndash;trust-store-password,The password of the certificate file, when &ndash;url uses https, the password of the truststore used by HugeGraph-Client, the default is empty, representing the password of the built-in truststore file of hugegraph-tools</li> +</ul> +<p>The above global variables can also be set through environment variables. One way is to use export on the command line to set temporary environment variables, which are valid until the command line is closed</p> <table> <thead> <tr> -<th>全局变量</th> -<th>环境变量</th> -<th>示例</th> +<th>Global Variable</th> +<th>Environment Variable</th> +<th>Example</th> </tr> </thead> <tbody> @@ -1372,7 +1372,7 @@ And there is no need to guarantee the order between the two parameters.</p> </tr> </tbody> </table> -<p>另一种方式是在 bin/hugegraph 脚本中设置环境变量:</p> +<p>Another way is to set the environment variable in the bin/hugegraph script:</p> <pre tabindex="0"><code>#!/bin/bash # Set environment here if needed #export HUGEGRAPH_URL= @@ -1382,177 +1382,177 @@ And there is no need to guarantee the order between the two parameters.</p> #export HUGEGRAPH_TIMEOUT= #export HUGEGRAPH_TRUST_STORE_FILE= #export HUGEGRAPH_TRUST_STORE_PASSWORD= -</code></pre><h5 id="33-图管理类graph-mode-setgraph-mode-getgraph-listgraph-get和graph-clear">3.3 图管理类,graph-mode-set、graph-mode-get、graph-list、graph-get和graph-clear</h5> +</code></pre><h5 id="33-graph-management-typegraph-mode-setgraph-mode-getgraph-listgraph-get-and-graph-clear">3.3 Graph Management Type,graph-mode-set、graph-mode-get、graph-list、graph-get and graph-clear</h5> <ul> -<li>graph-mode-set,设置图的 restore mode +<li>graph-mode-set,set graph restore mode <ul> -<li>&ndash;graph-mode 或者 -m,必填项,指定将要设置的模式,合法值包括 [NONE, RESTORING, MERGING, LOADING]</li> +<li>&ndash;graph-mode or -m, required, specifies the mode to be set, legal values include [NONE, RESTORING, MERGING, LOADING]</li> </ul> </li> -<li>graph-mode-get,获取图的 restore mode</li> -<li>graph-list,列出某个 HugeGraph-Server 中全部的图</li> -<li>graph-get,获取某个图及其存储后端类型</li> -<li>graph-clear,清除某个图的全部 schema 和 data +<li>graph-mode-get,get graph restore mode</li> +<li>graph-list,list all graphs in a HugeGraph-Server</li> +<li>graph-get,get a graph and its storage backend type</li> +<li>graph-clear,clear all schema and data of a graph <ul> -<li>&ndash;confirm-message 或者 -c,必填项,删除确认信息,需要手动输入,二次确认防止误删,&ldquo;I&rsquo;m sure to delete all data&rdquo;,包括双引号</li> +<li>&ndash;confirm-message Or -c, required, delete confirmation information, manual input is required, double confirmation to prevent accidental deletion, &ldquo;I&rsquo;m sure to delete all data&rdquo;, including double quotes</li> </ul> </li> </ul> <blockquote> -<p>当需要把备份的图原样恢复到一个新的图中的时候,需要先将图模式设置为 RESTORING 模式;当需要将备份的图合并到已存在的图中时,需要先将图模式设置为 MERGING 模式。</p> +<p>When you need to restore the backup graph to a new graph, you need to set the graph mode to RESTORING mode; when you need to merge the backup graph into an existing graph, you need to first set the graph mode to MERGING model.</p> </blockquote> -<h5 id="34-异步任务管理类task-listtask-get和task-delete">3.4 异步任务管理类,task-list、task-get和task-delete</h5> +<h5 id="34-asynchronous-task-management-typetask-listtask-get-and-task-delete">3.4 Asynchronous task management Type,task-list、task-get and task-delete</h5> <ul> -<li>task-list,列出某个图中的异步任务,可以根据任务的状态过滤 +<li>task-list,List the asynchronous tasks in a graph, which can be filtered according to the status of the tasks <ul> -<li>&ndash;status,选填项,指定要查看的任务的状态,即按状态过滤任务</li> -<li>&ndash;limit,选填项,指定要获取的任务的数目,默认为 -1,意思为获取全部符合条件的任务</li> +<li>&ndash;status,Optional, specify the status of the task to view, i.e. filter tasks by status</li> +<li>&ndash;limit,Optional, specify the number of tasks to be obtained, the default is -1, which means to obtain all eligible tasks</li> </ul> </li> -<li>task-get,获取某个异步任务的详细信息 +<li>task-get,Get detailed information about an asynchronous task <ul> -<li>&ndash;task-id,必填项,指定异步任务的 ID</li> +<li>&ndash;task-id,Required, specifies the ID of the asynchronous task</li> </ul> </li> -<li>task-delete,删除某个异步任务的信息 +<li>task-delete,Delete information about an asynchronous task <ul> -<li>&ndash;task-id,必填项,指定异步任务的 ID</li> +<li>&ndash;task-id,Required, specifies the ID of the asynchronous task</li> </ul> </li> -<li>task-cancel,取消某个异步任务的执行 +<li>task-cancel,Cancel the execution of an asynchronous task <ul> -<li>&ndash;task-id,要取消的异步任务的 ID</li> +<li>&ndash;task-id,ID of the asynchronous task to cancel</li> </ul> </li> -<li>task-clear,清理完成的异步任务 +<li>task-clear,Clean up completed asynchronous tasks <ul> -<li>&ndash;force,选填项,设置时,表示清理全部异步任务,未执行完成的先取消,然后清除所有异步任务。默认只清理已完成的异步任务</li> +<li>&ndash;force,Optional. When set, it means to clean up all asynchronous tasks. Unfinished ones are canceled first, and then all asynchronous tasks are cleared. By default, only completed asynchronous tasks are cleaned up</li> </ul> </li> </ul> -<h5 id="35-gremlin类gremlin-execute和gremlin-schedule">3.5 Gremlin类,gremlin-execute和gremlin-schedule</h5> +<h5 id="35-gremlin-typegremlin-execute-and-gremlin-schedule">3.5 Gremlin Type,gremlin-execute and gremlin-schedule</h5> <ul> -<li>gremlin-execute,发送 Gremlin 语句到 HugeGraph-Server 来执行查询或修改操作,同步执行,结束后返回结果 +<li>gremlin-execute, send Gremlin statements to HugeGraph-Server to execute query or modification operations, execute synchronously, and return results after completion <ul> -<li>&ndash;file 或者 -f,指定要执行的脚本文件,UTF-8编码,与 &ndash;script 互斥</li> -<li>&ndash;script 或者 -s,指定要执行的脚本字符串,与 &ndash;file 互斥</li> -<li>&ndash;aliases 或者 -a,Gremlin 别名设置,格式为:key1=value1,key2=value2,&hellip;</li> -<li>&ndash;bindings 或者 -b,Gremlin 绑定设置,格式为:key1=value1,key2=value2,&hellip;</li> -<li>&ndash;language 或者 -l,Gremlin 脚本的语言,默认为 gremlin-groovy</li> +<li>&ndash;file or -f, specify the script file to execute, UTF-8 encoding, mutually exclusive with &ndash;script</li> +<li>&ndash;script or -s, specifies the script string to execute, mutually exclusive with &ndash;file</li> +<li>&ndash;aliases or -a, Gremlin alias settings, the format is: key1=value1,key2=value2,&hellip;</li> +<li>&ndash;bindings or -b, Gremlin binding settings, the format is: key1=value1,key2=value2,&hellip;</li> +<li>&ndash;language or -l, the language of the Gremlin script, the default is gremlin-groovy</li> </ul> <blockquote> -<p>&ndash;file 和 &ndash;script 二者互斥,必须设置其中之一</p> +<p>&ndash;file and &ndash;script are mutually exclusive, one of them must be set</p> </blockquote> </li> -<li>gremlin-schedule,发送 Gremlin 语句到 HugeGraph-Server 来执行查询或修改操作,异步执行,任务提交后立刻返回异步任务id +<li>gremlin-schedule, send Gremlin statements to HugeGraph-Server to perform query or modification operations, asynchronous execution, and return the asynchronous task id immediately after the task is submitted <ul> -<li>&ndash;file 或者 -f,指定要执行的脚本文件,UTF-8编码,与 &ndash;script 互斥</li> -<li>&ndash;script 或者 -s,指定要执行的脚本字符串,与 &ndash;file 互斥</li> -<li>&ndash;bindings 或者 -b,Gremlin 绑定设置,格式为:key1=value1,key2=value2,&hellip;</li> -<li>&ndash;language 或者 -l,Gremlin 脚本的语言,默认为 gremlin-groovy</li> +<li>&ndash;file or -f, specify the script file to execute, UTF-8 encoding, mutually exclusive with &ndash;script</li> +<li>&ndash;script or -s, specifies the script string to execute, mutually exclusive with &ndash;file</li> +<li>&ndash;bindings or -b, Gremlin binding settings, the format is: key1=value1,key2=value2,&hellip;</li> +<li>&ndash;language or -l, the language of the Gremlin script, the default is gremlin-groovy</li> </ul> <blockquote> -<p>&ndash;file 和 &ndash;script 二者互斥,必须设置其中之一</p> +<p>&ndash;file and &ndash;script are mutually exclusive, one of them must be set</p> </blockquote> </li> </ul> -<h5 id="36-备份恢复类">3.6 备份/恢复类</h5> +<h5 id="36-backuprestore-type">3.6 Backup/Restore Type</h5> <ul> -<li>backup,将某张图中的 schema 或者 data 备份到 HugeGraph 系统之外,以 JSON 形式存在本地磁盘或者 HDFS +<li>backup, back up the schema or data in a certain graph out of the HugeGraph system, and store it on the local disk or HDFS in the form of JSON <ul> -<li>&ndash;format,备份的格式,可选值包括 [json, text],默认为 json</li> -<li>&ndash;all-properties,是否备份顶点/边全部的属性,仅在 &ndash;format 为 text 是有效,默认 false</li> -<li>&ndash;label,要备份的顶点/边的类型,仅在 &ndash;format 为 text 是有效,只有备份顶点或者边的时候有效</li> -<li>&ndash;properties,要备份的顶点/边的属性,逗号分隔,仅在 &ndash;format 为 text 是有效,只有备份顶点或者边的时候有效</li> -<li>&ndash;compress,备份时是否压缩数据,默认为 true</li> -<li>&ndash;directory 或者 -d,存储 schema 或者 data 的目录,本地目录时,默认为&rsquo;./{graphName}&rsquo;,HDFS 时,默认为 &lsquo;{fs.default.name}/{graphName}&rsquo;</li> -<li>&ndash;huge-types 或者 -t,要备份的数据类型,逗号分隔,可选值为 &lsquo;all&rsquo; 或者 一个或多个 [vertex,edge,vertex_label,edge_label,property_key,index_label] 的组合,&lsquo;all&rsquo; 代表全部6种类型,即顶点、边和所有schema</li> -<li>&ndash;log 或者 -l,指定日志目录,默认为当前目录</li> -<li>&ndash;retry,指定失败重试次数,默认为 3</li> -<li>&ndash;split-size 或者 -s,指定在备份时对顶点或者边分块的大小,默认为 1048576</li> -<li>-D,用 -Dkey=value 的模式指定动态参数,用来备份数据到 HDFS 时,指定 HDFS 的配置项,例如:-Dfs.default.name=hdfs://localhost:9000</li> +<li>&ndash;format, the backup format, optional values include [json, text], the default is json</li> +<li>&ndash;all-properties, whether to back up all properties of vertices/edges, only valid when &ndash;format is text, default false</li> +<li>&ndash;label, the type of vertices/edges to be backed up, only valid when &ndash;format is text, only valid when backing up vertices or edges</li> +<li>&ndash;properties, properties of vertices/edges to be backed up, separated by commas, only valid when &ndash;format is text, valid only when backing up vertices or edges</li> +<li>&ndash;compress, whether to compress data during backup, the default is true</li> +<li>&ndash;directory or -d, the directory to store schema or data, the default is &lsquo;./{graphName}&rsquo; for local directory, and &lsquo;{fs.default.name}/{graphName}&rsquo; for HDFS</li> +<li>&ndash;huge-types or -t, the data types to be backed up, separated by commas, the optional value is &lsquo;all&rsquo; or a combination of one or more [vertex, edge, vertex_label, edge_label, property_key, index_label], &lsquo;all&rsquo; Represents all 6 types, namely vertices, edges and all schemas</li> +<li>&ndash;log or -l, specify the log directory, the default is the current directory</li> +<li>&ndash;retry, specify the number of failed retries, the default is 3</li> +<li>&ndash;split-size or -s, specifies the size of splitting vertices or edges when backing up, the default is 1048576</li> +<li>-D, use the mode of -Dkey=value to specify dynamic parameters, and specify HDFS configuration items when backing up data to HDFS, for example: -Dfs.default.name=hdfs://localhost:9000</li> </ul> </li> -<li>restore,将 JSON 格式存储的 schema 或者 data 恢复到一个新图中(RESTORING 模式)或者合并到已存在的图中(MERGING 模式) +<li>restore, restore schema or data stored in JSON format to a new graph (RESTORING mode) or merge into an existing graph (MERGING mode) <ul> -<li>&ndash;directory 或者 -d,存储 schema 或者 data 的目录,本地目录时,默认为&rsquo;./{graphName}&rsquo;,HDFS 时,默认为 &lsquo;{fs.default.name}/{graphName}&rsquo;</li> -<li>&ndash;clean,是否在恢复图完成后删除 &ndash;directory 指定的目录,默认为 false</li> -<li>&ndash;huge-types 或者 -t,要恢复的数据类型,逗号分隔,可选值为 &lsquo;all&rsquo; 或者 一个或多个 [vertex,edge,vertex_label,edge_label,property_key,index_label] 的组合,&lsquo;all&rsquo; 代表全部6种类型,即顶点、边和所有schema</li> -<li>&ndash;log 或者 -l,指定日志目录,默认为当前目录</li> -<li>&ndash;retry,指定失败重试次数,默认为 3</li> -<li>-D,用 -Dkey=value 的模式指定动态参数,用来从 HDFS 恢复图时,指定 HDFS 的配置项,例如:-Dfs.default.name=hdfs://localhost:9000</li> +<li>&ndash;directory or -d, the directory to store schema or data, the default is &lsquo;./{graphName}&rsquo; for local directory, and &lsquo;{fs.default.name}/{graphName}&rsquo; for HDFS</li> +<li>&ndash;clean, whether to delete the directory specified by &ndash;directory after the recovery map is completed, the default is false</li> +<li>&ndash;huge-types or -t, data types to restore, separated by commas, optional value is &lsquo;all&rsquo; or a combination of one or more [vertex, edge, vertex_label, edge_label, property_key, index_label], &lsquo;all&rsquo; Represents all 6 types, namely vertices, edges and all schemas</li> +<li>&ndash;log or -l, specify the log directory, the default is the current directory</li> +<li>&ndash;retry, specify the number of failed retries, the default is 3</li> +<li>-D, use the mode of -Dkey=value to specify dynamic parameters, which are used to specify HDFS configuration items when restoring graphs from HDFS, for example: -Dfs.default.name=hdfs://localhost:9000</li> </ul> <blockquote> -<p>只有当 &ndash;format 为 json 执行 backup 时,才可以使用 restore 命令恢复</p> +<p>restore command can be used only if &ndash;format is executed as backup for json</p> </blockquote> </li> -<li>migrate, 将当前连接的图迁移至另一个 HugeGraphServer 中 +<li>migrate, migrate the currently connected graph to another HugeGraphServer <ul> -<li>&ndash;target-graph,目标图的名字,默认为 hugegraph</li> -<li>&ndash;target-url,目标图所在的 HugeGraphServer,默认为 http://127.0.0.1:8081</li> -<li>&ndash;target-username,访问目标图的用户名</li> -<li>&ndash;target-password,访问目标图的密码</li> -<li>&ndash;target-timeout,访问目标图的超时时间</li> -<li>&ndash;target-trust-store-file,访问目标图使用的 truststore 文件</li> -<li>&ndash;target-trust-store-password,访问目标图使用的 truststore 的密码</li> -<li>&ndash;directory 或者 -d,迁移过程中,存储源图的 schema 或者 data 的目录,本地目录时,默认为&rsquo;./{graphName}&rsquo;,HDFS 时,默认为 &lsquo;{fs.default.name}/{graphName}&rsquo;</li> -<li>&ndash;huge-types 或者 -t,要迁移的数据类型,逗号分隔,可选值为 &lsquo;all&rsquo; 或者 一个或多个 [vertex,edge,vertex_label,edge_label,property_key,index_label] 的组合,&lsquo;all&rsquo; 代表全部6种类型,即顶点、边和所有schema</li> -<li>&ndash;log 或者 -l,指定日志目录,默认为当前目录</li> -<li>&ndash;retry,指定失败重试次数,默认为 3</li> -<li>&ndash;split-size 或者 -s,指定迁移过程中对源图进行备份时顶点或者边分块的大小,默认为 1048576</li> -<li>-D,用 -Dkey=value 的模式指定动态参数,用来在迁移图过程中需要备份数据到 HDFS 时,指定 HDFS 的配置项,例如:-Dfs.default.name=hdfs://localhost:9000</li> -<li>&ndash;graph-mode 或者 -m,将源图恢复到目标图时将目标图设置的模式,合法值包括 [RESTORING, MERGING]</li> -<li>&ndash;keep-local-data,是否保留在迁移图的过程中产生的源图的备份,默认为 false,即默认迁移图结束后不保留产生的源图备份</li> +<li>&ndash;target-graph, the name of the target graph, the default is hugegraph</li> +<li>&ndash;target-url, the HugeGraphServer where the target graph is located, the default is http://127.0.0.1:8081</li> +<li>&ndash;target-username, the username to access the target map</li> +<li>&ndash;target-password, the password to access the target map</li> +<li>&ndash;target-timeout, the timeout for accessing the target map</li> +<li>&ndash;target-trust-store-file, access the truststore file used by the target graph</li> +<li>&ndash;target-trust-store-password, the password to access the truststore used by the target map</li> +<li>&ndash;directory or -d, during the migration process, the directory where the schema or data of the source graph is stored. For a local directory, the default is &lsquo;./{graphName}&rsquo;; for HDFS, the default is &lsquo;{fs.default.name}/ {graphName}&rsquo;</li> +<li>&ndash;huge-types or -t, the data types to be migrated, separated by commas, the optional value is &lsquo;all&rsquo; or a combination of one or more [vertex, edge, vertex_label, edge_label, property_key, index_label], &lsquo;all&rsquo; Represents all 6 types, namely vertices, edges and all schemas</li> +<li>&ndash;log or -l, specify the log directory, the default is the current directory</li> +<li>&ndash;retry, specify the number of failed retries, the default is 3</li> +<li>&ndash;split-size or -s, specify the size of the vertex or edge block when backing up the source graph during the migration process, the default is 1048576</li> +<li>-D, use the mode of -Dkey=value to specify dynamic parameters, which are used to specify HDFS configuration items when the data needs to be backed up to HDFS during the migration process, for example: -Dfs.default.name=hdfs://localhost: 9000</li> +<li>&ndash;graph-mode or -m, the mode to set the target graph when restoring the source graph to the target graph, legal values include [RESTORING, MERGING]</li> +<li>&ndash;keep-local-data, whether to keep the backup of the source map generated in the process of migrating the map, the default is false, that is, the backup of the source map is not kept after the default migration map ends</li> </ul> </li> -<li>schedule-backup,周期性对图执行备份操作,并保留一定数目的最新备份(目前仅支持本地文件系统) +<li>schedule-backup, periodically back up the graph and keep a certain number of the latest backups (currently only supports local file systems) <ul> -<li>&ndash;directory 或者 -d,必填项,指定备份数据的目录</li> -<li>&ndash;backup-num,选填项,指定保存的最新的备份的数目,默认为 3</li> -<li>&ndash;interval,选填项,指定进行备份的周期,格式同 Linux crontab 格式</li> +<li>&ndash;directory or -d, required, specifies the directory of the backup data</li> +<li>&ndash;backup-num, optional, specifies the number of latest backups to save, defaults to 3</li> +<li>&ndash;interval, an optional item, specifies the backup cycle, the format is the same as the Linux crontab format</li> </ul> </li> -<li>dump,把整张图的顶点和边全部导出,默认以<code>vertex vertex-edge1 vertex-edge2...</code>JSON格式存储。 -用户也可以自定义存储格式,只需要在<code>hugegraph-tools/src/main/java/com/baidu/hugegraph/formatter</code> -目录下实现一个继承自<code>Formatter</code>的类,例如<code>CustomFormatter</code>,使用时指定该类为formatter即可,例如 +<li>dump, export all the vertices and edges of the entire graph, and store them in <code>vertex vertex-edge1 vertex-edge2...</code>JSON format by default. +Users can also customize the storage format, just need to be in <code>hugegraph-tools/src/main/java/com/baidu/hugegraph/formatter</code> +Implement a class inherited from <code>Formatter</code> in the directory, such as <code>CustomFormatter</code>, and specify this class as formatter when using it, for example <code>bin/hugegraph dump -f CustomFormatter</code> <ul> -<li>&ndash;formatter 或者 -f,指定使用的 formatter,默认为 JsonFormatter</li> -<li>&ndash;directory 或者 -d,存储 schema 或者 data 的目录,默认为当前目录</li> -<li>&ndash;log 或者 -l,指定日志目录,默认为当前目录</li> -<li>&ndash;retry,指定失败重试次数,默认为 3</li> -<li>&ndash;split-size 或者 -s,指定在备份时对顶点或者边分块的大小,默认为 1048576</li> -<li>-D,用 -Dkey=value 的模式指定动态参数,用来备份数据到 HDFS 时,指定 HDFS 的配置项,例如:-Dfs.default.name=hdfs://localhost:9000</li> +<li>&ndash;formatter or -f, specify the formatter to use, the default is JsonFormatter</li> +<li>&ndash;directory or -d, the directory where schema or data is stored, the default is the current directory</li> +<li>&ndash;log or -l, specify the log directory, the default is the current directory</li> +<li>&ndash;retry, specify the number of failed retries, the default is 3</li> +<li>&ndash;split-size or -s, specifies the size of splitting vertices or edges when backing up, the default is 1048576</li> +<li>-D, use the mode of -Dkey=value to specify dynamic parameters, and specify HDFS configuration items when backing up data to HDFS, for example: -Dfs.default.name=hdfs://localhost:9000</li> </ul> </li> </ul> -<h5 id="37-安装部署类">3.7 安装部署类</h5> +<h5 id="37-install-the-deployment-type">3.7 Install the deployment type</h5> <ul> -<li>deploy,一键下载、安装和启动 HugeGraph-Server 和 HugeGraph-Studio +<li>deploy, one-click download, install and start HugeGraph-Server and HugeGraph-Studio <ul> -<li>-v,必填项,指明安装的 HugeGraph-Server 和 HugeGraph-Studio 的版本号,最新的是 0.9</li> -<li>-p,必填项,指定安装的 HugeGraph-Server 和 HugeGraph-Studio 目录</li> -<li>-u,选填项,指定下载 HugeGraph-Server 和 HugeGraph-Studio 压缩包的链接</li> +<li>-v, required, specifies the version number of HugeGraph-Server and HugeGraph-Studio installed, the latest is 0.9</li> +<li>-p, required, specifies the installed HugeGraph-Server and HugeGraph-Studio directories</li> +<li>-u, optional, specifies the link to download the HugeGraph-Server and HugeGraph-Studio compressed packages</li> </ul> </li> -<li>clear,清理 HugeGraph-Server 和 HugeGraph-Studio 目录和tar包 +<li>clear, clean up HugeGraph-Server and HugeGraph-Studio directories and tarballs <ul> -<li>-p,必填项,指定要清理的 HugeGraph-Server 和 HugeGraph-Studio 的目录</li> +<li>-p, required, specifies the directory of HugeGraph-Server and HugeGraph-Studio to be cleaned</li> </ul> </li> -<li>start-all,一键启动 HugeGraph-Server 和 HugeGraph-Studio,并启动监控,服务死掉时自动拉起服务 +<li>start-all, start HugeGraph-Server and HugeGraph-Studio with one click, and start monitoring, automatically pull up the service when the service dies <ul> -<li>-v,必填项,指明要启动的 HugeGraph-Server 和 HugeGraph-Studio 的版本号,最新的是 0.9</li> -<li>-p,必填项,指定安装了 HugeGraph-Server 和 HugeGraph-Studio 的目录</li> +<li>-v, required, specifies the version number of HugeGraph-Server and HugeGraph-Studio to be started, the latest is 0.9</li> +<li>-p, required, specifies the directory where HugeGraph-Server and HugeGraph-Studio are installed</li> </ul> </li> -<li>stop-all,一键关闭 HugeGraph-Server 和 HugeGraph-Studio</li> +<li>stop-all, close HugeGraph-Server and HugeGraph-Studio with one click</li> </ul> <blockquote> -<p>deploy命令中有可选参数 -u,提供时会使用指定的下载地址替代默认下载地址下载 tar 包,并且将地址写入<code>~/hugegraph-download-url-prefix</code>文件中;之后如果不指定地址时,会优先从<code>~/hugegraph-download-url-prefix</code>指定的地址下载 tar 包;如果 -u 和<code>~/hugegraph-download-url-prefix</code>都没有时,会从默认下载地址进行下载</p> +<p>There is an optional parameter -u in the deploy command. When provided, the specified download address will be used instead of the default download address to download the tar package, and the address will be written into the <code>~/hugegraph-download-url-prefix</code> file; if no address is specified later When -u and <code>~/hugegraph-download-url-prefix</code> are not specified, the tar package will be downloaded from the address specified by <code>~/hugegraph-download-url-prefix</code>; if there is neither -u nor <code>~/hugegraph-download-url-prefix</code>, it will be downloaded from the default download address</p> </blockquote> -<h5 id="38-具体命令参数">3.8 具体命令参数</h5> -<p>各子命令的具体参数如下:</p> +<h5 id="38-specific-command-parameters">3.8 Specific command parameters</h5> +<p>The specific parameters of each subcommand are as follows:</p> <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>Usage: hugegraph <span style="color:#ce5c00;font-weight:bold">[</span>options<span style="color:#ce5c00;font-weight:bold">]</span> <span style="color:#ce5c00;font-weight:bold">[</span>command<span style="color:#ce5c00;font-weight:bold">]</span> <span style="color:#ce5c00;font-weight:bold">[</span><span style="color:#204a87">command</span> options<span style="color:#ce5c00;font-weight:bold">]</span> </span></span><span style="display:flex;"><span> Options: </span></span><span style="display:flex;"><span> --graph @@ -1854,20 +1854,20 @@ And there is no need to guarantee the order between the two parameters.</p> </span></span><span style="display:flex;"><span> </span></span><span style="display:flex;"><span> <span style="color:#204a87">help</span> Print usage </span></span><span style="display:flex;"><span> Usage: <span style="color:#204a87">help</span> -</span></span></code></pre></div><h5 id="39-具体命令示例">3.9 具体命令示例</h5> -<h6 id="1-gremlin语句">1. gremlin语句</h6> -<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># 同步执行gremlin</span> +</span></span></code></pre></div><h5 id="39-specific-command-example">3.9 Specific command example</h5> +<h6 id="1-gremlin-statement">1. gremlin statement</h6> +<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># Execute gremlin synchronously</span> </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph gremlin-execute --script <span style="color:#4e9a06">&#39;g.V().count()&#39;</span> </span></span><span style="display:flex;"><span> -</span></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># 异步执行gremlin</span> +</span></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># Execute gremlin asynchronously</span> </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph gremlin-schedule --script <span style="color:#4e9a06">&#39;g.V().count()&#39;</span> -</span></span></code></pre></div><h6 id="2-查看task情况">2. 查看task情况</h6> +</span></span></code></pre></div><h6 id="2-show-task-status">2. Show task status</h6> <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list </span></span><span style="display:flex;"><span> </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list --limit <span style="color:#0000cf;font-weight:bold">5</span> </span></span><span style="display:flex;"><span> </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph task-list --status success -</span></span></code></pre></div><h6 id="3-图模式查看和设置">3. 图模式查看和设置</h6> +</span></span></code></pre></div><h6 id="3-set-and-show-graph-mode">3. Set and show graph mode</h6> <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING MERGING NONE </span></span><span style="display:flex;"><span> </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING @@ -1875,22 +1875,22 @@ And there is no need to guarantee the order between the two parameters.</p> </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-get </span></span><span style="display:flex;"><span> </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-list -</span></span></code></pre></div><h6 id="4-清理图">4. 清理图</h6> +</span></span></code></pre></div><h6 id="4-cleanup-graph">4. Cleanup Graph</h6> <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-clear -c <span style="color:#4e9a06">&#34;I&#39;m sure to delete all data&#34;</span> -</span></span></code></pre></div><h6 id="5-图备份">5. 图备份</h6> +</span></span></code></pre></div><h6 id="5-backup-graph">5. Backup Graph</h6> <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph backup -t all --directory ./backup-test -</span></span></code></pre></div><h6 id="6-周期性的备份">6. 周期性的备份</h6> +</span></span></code></pre></div><h6 id="6-periodic-backup-graph">6. Periodic Backup Graph</h6> <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph --interval */2 * * * * schedule-backup -d ./backup-0.10.2 -</span></span></code></pre></div><h6 id="7-图恢复">7. 图恢复</h6> -<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># 设置图模式</span> +</span></span></code></pre></div><h6 id="7-recovery-graph">7. Recovery Graph</h6> +<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># set graph mode</span> </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m RESTORING </span></span><span style="display:flex;"><span> -</span></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># 恢复图</span> +</span></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># recovery graph</span> </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph restore -t all --directory ./backup-test </span></span><span style="display:flex;"><span> -</span></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># 恢复图模式</span> +</span></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># restore graph mode</span> </span></span><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph graph-mode-set -m NONE -</span></span></code></pre></div><h6 id="8-图迁移">8. 图迁移</h6> +</span></span></code></pre></div><h6 id="8-graph-migration">8. Graph Migration</h6> <div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./bin/hugegraph --url http://127.0.0.1:8080 --graph hugegraph migrate --target-url http://127.0.0.1:8090 --target-graph hugegraph </span></span></code></pre></div>Docs: HugeGraph-Hubble Quick Start/docs/quickstart/hugegraph-hubble/Mon, 01 Jan 0001 00:00:00 +0000/docs/quickstart/hugegraph-hubble/ <h3 id="1-hugegraph-hubble-overview">1 HugeGraph-Hubble Overview</h3> diff --git a/en/sitemap.xml b/en/sitemap.xml index 9e2ea5306..21a4059b3 100644 --- a/en/sitemap.xml +++ b/en/sitemap.xml @@ -1 +1 @@ -/docs/guides/architectural/2022-11-27T21:05:55+08:00/docs/config/config-guide/2022-04-17T11:36:55+08:00/docs/language/hugegraph-gremlin/2023-01-01T16:16:43+08:00/docs/contribution-guidelines/contribute/2022-09-15T12:59:59+08:00/docs/performance/hugegraph-benchmark-0.5.6/2022-09-15T12:59:59+08:00/docs/quickstart/hugegraph-server/2023-01-01T16:16:43+08:00/docs/introduction/readme/2022-11-27T21:44:37+08:00/docs/changelog/hugegraph-1.0.0-release-notes/2023-01-01T16:16:43+08:00/docs/clients/restful-api/2022-04-17T11:36:55+08:00/docs/clients/restful-api/schema/2022-04-17T11:36:55+08:00/docs/performance/api-preformance/hugegraph-api-0.5.6-rocksdb/2022-04-17T11:36:55+08:00/docs/config/config-option/2023-01-01T16:16:43+08:00/docs/guides/desgin-concept/2022-04-17T11:36:55+08:00/docs/download/download/2023-01-01T22:24:37+08:00/docs/language/hugegraph-example/2023-01-01T16:16:43+08:00/docs/clients/hugegraph-client/2023-01-01T16:16:43+08:00/docs/performance/api-preformance/2022-04-17T11:36:55+08:00/docs/quickstart/hugegraph-loader/2023-01-01T16:16:43+08:00/docs/clients/restful-api/propertykey/2022-05-12T21:24:05+08:00/docs/changelog/hugegraph-0.12.0-release-notes/2023-01-01T16:16:43+08:00/docs/contribution-guidelines/subscribe/2022-09-15T12:59:59+08:00/docs/performance/api-preformance/hugegraph-api-0.5.6-cassandra/2022-04-17T11:36:55+08:00/docs/config/config-authentication/2022-04-17T11:36:55+08:00/docs/clients/gremlin-console/2022-05-25T21:16:41+08:00/docs/guides/custom-plugin/2022-09-15T12:59:59+08:00/docs/performance/hugegraph-loader-performance/2022-04-17T11:36:55+08:00/docs/quickstart/hugegraph-tools/2022-09-15T12:59:59+08:00/docs/quickstart/2022-04-17T11:36:55+08:00/docs/performance/api-preformance/hugegraph-api-0.4.4/2022-04-17T11:36:55+08:00/docs/contribution-guidelines/validate-release/2023-01-01T16:16:43+08:00/docs/clients/restful-api/vertexlabel/2022-04-17T11:36:55+08:00/docs/guides/backup-restore/2022-04-17T11:36:55+08:00/docs/config/2022-04-17T11:36:55+08:00/docs/config/config-https/2022-04-17T11:36:55+08:00/docs/clients/restful-api/edgelabel/2022-04-17T11:36:55+08:00/docs/performance/api-preformance/hugegraph-api-0.2/2022-04-17T11:36:55+08:00/docs/quickstart/hugegraph-hubble/2022-09-15T12:59:59+08:00/docs/clients/2022-04-17T11:36:55+08:00/docs/config/config-computer/2023-01-01T16:16:43+08:00/docs/guides/faq/2023-01-01T16:16:43+08:00/docs/clients/restful-api/indexlabel/2022-04-17T11:36:55+08:00/docs/quickstart/hugegraph-client/2023-01-01T16:16:43+08:00/docs/guides/2022-04-17T11:36:55+08:00/docs/clients/restful-api/rebuild/2022-05-09T18:43:53+08:00/docs/quickstart/hugegraph-computer/2023-01-01T16:16:43+08:00/docs/language/2022-04-17T11:36:55+08:00/docs/clients/restful-api/vertex/2022-09-15T15:16:23+08:00/docs/clients/restful-api/edge/2022-09-15T15:16:23+08:00/docs/performance/2022-04-17T11:36:55+08:00/docs/contribution-guidelines/2022-12-30T19:36:31+08:00/docs/clients/restful-api/traverser/2022-04-17T11:36:55+08:00/docs/changelog/2022-04-28T21:26:41+08:00/docs/clients/restful-api/rank/2022-09-15T12:59:59+08:00/docs/clients/restful-api/variable/2022-04-17T11:36:55+08:00/docs/clients/restful-api/graphs/2022-05-27T09:27:37+08:00/docs/clients/restful-api/task/2022-09-15T12:59:59+08:00/docs/clients/restful-api/gremlin/2022-04-17T11:36:55+08:00/docs/clients/restful-api/auth/2022-04-17T11:36:55+08:00/docs/clients/restful-api/other/2022-04-17T11:36:55+08:00/docs/2022-12-30T19:57:48+08:00/blog/news/2022-03-21T18:55:33+08:00/blog/releases/2022-03-21T18:55:33+08:00/blog/2018/10/06/easy-documentation-with-docsy/2022-03-21T18:55:33+08:00/blog/2018/10/06/the-second-blog-post/2022-03-21T18:55:33+08:00/blog/2018/01/04/another-great-release/2022-03-21T18:55:33+08:00/docs/cla/2022-03-21T19:51:14+08:00/docs/performance/hugegraph-benchmark-0.4.4/2022-09-15T12:59:59+08:00/docs/summary/2022-11-27T21:05:55+08:00/blog/2022-03-21T18:55:33+08:00/categories//community/2022-03-21T18:55:33+08:00/2022-12-28T13:42:04+08:00/search/2022-03-21T18:55:33+08:00/tags/ \ No newline at end of file +/docs/guides/architectural/2022-11-27T21:05:55+08:00/docs/config/config-guide/2022-04-17T11:36:55+08:00/docs/language/hugegraph-gremlin/2023-01-01T16:16:43+08:00/docs/contribution-guidelines/contribute/2022-09-15T12:59:59+08:00/docs/performance/hugegraph-benchmark-0.5.6/2022-09-15T12:59:59+08:00/docs/quickstart/hugegraph-server/2023-01-01T16:16:43+08:00/docs/introduction/readme/2022-11-27T21:44:37+08:00/docs/changelog/hugegraph-1.0.0-release-notes/2023-01-01T16:16:43+08:00/docs/clients/restful-api/2022-04-17T11:36:55+08:00/docs/clients/restful-api/schema/2022-04-17T11:36:55+08:00/docs/performance/api-preformance/hugegraph-api-0.5.6-rocksdb/2022-04-17T11:36:55+08:00/docs/config/config-option/2023-01-01T16:16:43+08:00/docs/guides/desgin-concept/2022-04-17T11:36:55+08:00/docs/download/download/2023-01-01T22:24:37+08:00/docs/language/hugegraph-example/2023-01-01T16:16:43+08:00/docs/clients/hugegraph-client/2023-01-01T16:16:43+08:00/docs/performance/api-preformance/2022-04-17T11:36:55+08:00/docs/quickstart/hugegraph-loader/2023-01-01T16:16:43+08:00/docs/clients/restful-api/propertykey/2022-05-12T21:24:05+08:00/docs/changelog/hugegraph-0.12.0-release-notes/2023-01-01T16:16:43+08:00/docs/contribution-guidelines/subscribe/2022-09-15T12:59:59+08:00/docs/performance/api-preformance/hugegraph-api-0.5.6-cassandra/2022-04-17T11:36:55+08:00/docs/config/config-authentication/2022-04-17T11:36:55+08:00/docs/clients/gremlin-console/2022-05-25T21:16:41+08:00/docs/guides/custom-plugin/2022-09-15T12:59:59+08:00/docs/performance/hugegraph-loader-performance/2022-04-17T11:36:55+08:00/docs/quickstart/hugegraph-tools/2023-01-03T00:37:48+08:00/docs/quickstart/2022-04-17T11:36:55+08:00/docs/performance/api-preformance/hugegraph-api-0.4.4/2022-04-17T11:36:55+08:00/docs/contribution-guidelines/validate-release/2023-01-01T16:16:43+08:00/docs/clients/restful-api/vertexlabel/2022-04-17T11:36:55+08:00/docs/guides/backup-restore/2022-04-17T11:36:55+08:00/docs/config/2022-04-17T11:36:55+08:00/docs/config/config-https/2022-04-17T11:36:55+08:00/docs/clients/restful-api/edgelabel/2022-04-17T11:36:55+08:00/docs/performance/api-preformance/hugegraph-api-0.2/2022-04-17T11:36:55+08:00/docs/quickstart/hugegraph-hubble/2022-09-15T12:59:59+08:00/docs/clients/2022-04-17T11:36:55+08:00/docs/config/config-computer/2023-01-01T16:16:43+08:00/docs/guides/faq/2023-01-01T16:16:43+08:00/docs/clients/restful-api/indexlabel/2022-04-17T11:36:55+08:00/docs/quickstart/hugegraph-client/2023-01-01T16:16:43+08:00/docs/guides/2022-04-17T11:36:55+08:00/docs/clients/restful-api/rebuild/2022-05-09T18:43:53+08:00/docs/quickstart/hugegraph-computer/2023-01-01T16:16:43+08:00/docs/language/2022-04-17T11:36:55+08:00/docs/clients/restful-api/vertex/2022-09-15T15:16:23+08:00/docs/clients/restful-api/edge/2022-09-15T15:16:23+08:00/docs/performance/2022-04-17T11:36:55+08:00/docs/contribution-guidelines/2022-12-30T19:36:31+08:00/docs/clients/restful-api/traverser/2022-04-17T11:36:55+08:00/docs/changelog/2022-04-28T21:26:41+08:00/docs/clients/restful-api/rank/2022-09-15T12:59:59+08:00/docs/clients/restful-api/variable/2022-04-17T11:36:55+08:00/docs/clients/restful-api/graphs/2022-05-27T09:27:37+08:00/docs/clients/restful-api/task/2022-09-15T12:59:59+08:00/docs/clients/restful-api/gremlin/2022-04-17T11:36:55+08:00/docs/clients/restful-api/auth/2022-04-17T11:36:55+08:00/docs/clients/restful-api/other/2022-04-17T11:36:55+08:00/docs/2022-12-30T19:57:48+08:00/blog/news/2022-03-21T18:55:33+08:00/blog/releases/2022-03-21T18:55:33+08:00/blog/2018/10/06/easy-documentation-with-docsy/2022-03-21T18:55:33+08:00/blog/2018/10/06/the-second-blog-post/2022-03-21T18:55:33+08:00/blog/2018/01/04/another-great-release/2022-03-21T18:55:33+08:00/docs/cla/2022-03-21T19:51:14+08:00/docs/performance/hugegraph-benchmark-0.4.4/2022-09-15T12:59:59+08:00/docs/summary/2022-11-27T21:05:55+08:00/blog/2022-03-21T18:55:33+08:00/categories//community/2022-03-21T18:55:33+08:00/2022-12-28T13:42:04+08:00/search/2022-03-21T18:55:33+08:00/tags/ \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index e958e3042..4b833fbbd 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -/en/sitemap.xml2023-01-01T22:24:37+08:00/cn/sitemap.xml2023-01-01T16:16:43+08:00 \ No newline at end of file +/en/sitemap.xml2023-01-03T00:37:48+08:00/cn/sitemap.xml2023-01-01T16:16:43+08:00 \ No newline at end of file