imbajin commented on code in PR #281:
URL: 
https://github.com/apache/incubator-hugegraph-doc/pull/281#discussion_r1320945679


##########
content/cn/docs/quickstart/hugegraph-hubble.md:
##########
@@ -32,7 +32,115 @@ HugeGraph是一款面向分析型,支持批量操作的图数据库系统,
 
 对于需要遍历全图的Gremlin任务,索引的创建与重建等耗时较长的异步任务,平台提供相应的任务管理功能,实现异步任务的统一的管理与结果查看。
 
-### 2  平台使用流程
+#### 2 部署
+
+有三种方式可以部署`hugegraph-hubble`
+- 下载 toolchain 二进制包
+- 源码编译
+- 使用docker
+
+#### 2.1 下载 toolchain 二进制包
+
+`hubble`项目在`toolchain`项目中, 首先下载`toolchain`的tar包
+
+```bash
+wget 
https://downloads.apache.org/incubator/hugegraph/1.0.0/apache-hugegraph-toolchain-incubating-{version}.tar.gz
+tar -xvf apache-hugegraph-toolchain-incubating-{version}.tar.gz 
+cd 
apache-hugegraph-toolchain-incubating-{version}.tar.gz/apache-hugegraph-hubble-incubating-{version}
+```
+
+运行`hubble`
+
+```bash
+bin/start-hubble.sh
+```
+
+随后我们可以看到
+
+```shell
+starting HugeGraphHubble ..............timed out with http status 502
+2023-08-30 20:38:34 [main] [INFO ] o.a.h.HugeGraphHubble [] - Starting 
HugeGraphHubble v1.0.0 on cpu05 with PID xxx 
(~/apache-hugegraph-toolchain-incubating-1.0.0/apache-hugegraph-hubble-incubating-1.0.0/lib/hubble-be-1.0.0.jar
 started by $USER in 
~/apache-hugegraph-toolchain-incubating-1.0.0/apache-hugegraph-hubble-incubating-1.0.0)
+...
+2023-08-30 20:38:38 [main] [INFO ] c.z.h.HikariDataSource [] - 
hugegraph-hubble-HikariCP - Start completed.
+2023-08-30 20:38:41 [main] [INFO ] o.a.c.h.Http11NioProtocol [] - Starting 
ProtocolHandler ["http-nio-0.0.0.0-8088"]
+2023-08-30 20:38:41 [main] [INFO ] o.a.h.HugeGraphHubble [] - Started 
HugeGraphHubble in 7.379 seconds (JVM running for 8.499)
+```
+
+然后使用浏览器访问 `ip:8088` 可看到`hubble`页面, 通过`bin/stop-hubble.sh`则可以停止服务
+
+#### 2.2 源码编译
+
+需要用户提前安装`nodejs==16.x` 与 `yarn`
+
+```bash
+apt install curl build-essential
+curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
+source ~/.bashrc
+nvm install 16
+```
+
+然后确认安装版本是否为16.x
+
+```bash
+node -v
+```
+
+使用下列命令安装 `yarn`
+
+```bash
+npm install -g yarn
+```
+
+下载toolchain源码包
+
+```shell
+git clone https://github.com/apache/hugegraph-toolchain.git
+```
+
+编译`hubble`

Review Comment:
   ```suggestion
   编译`hubble`, 它依赖 loader 和 client, 编译时需提前构建这些依赖 (后续可跳)
   ```



##########
content/cn/docs/quickstart/hugegraph-hubble.md:
##########
@@ -32,7 +32,115 @@ HugeGraph是一款面向分析型,支持批量操作的图数据库系统,
 
 对于需要遍历全图的Gremlin任务,索引的创建与重建等耗时较长的异步任务,平台提供相应的任务管理功能,实现异步任务的统一的管理与结果查看。
 
-### 2  平台使用流程
+#### 2 部署
+
+有三种方式可以部署`hugegraph-hubble`
+- 下载 toolchain 二进制包
+- 源码编译
+- 使用docker
+
+#### 2.1 下载 toolchain 二进制包
+
+`hubble`项目在`toolchain`项目中, 首先下载`toolchain`的tar包
+
+```bash
+wget 
https://downloads.apache.org/incubator/hugegraph/1.0.0/apache-hugegraph-toolchain-incubating-{version}.tar.gz
+tar -xvf apache-hugegraph-toolchain-incubating-{version}.tar.gz 
+cd 
apache-hugegraph-toolchain-incubating-{version}.tar.gz/apache-hugegraph-hubble-incubating-{version}
+```
+
+运行`hubble`
+
+```bash
+bin/start-hubble.sh
+```
+
+随后我们可以看到
+
+```shell
+starting HugeGraphHubble ..............timed out with http status 502
+2023-08-30 20:38:34 [main] [INFO ] o.a.h.HugeGraphHubble [] - Starting 
HugeGraphHubble v1.0.0 on cpu05 with PID xxx 
(~/apache-hugegraph-toolchain-incubating-1.0.0/apache-hugegraph-hubble-incubating-1.0.0/lib/hubble-be-1.0.0.jar
 started by $USER in 
~/apache-hugegraph-toolchain-incubating-1.0.0/apache-hugegraph-hubble-incubating-1.0.0)
+...
+2023-08-30 20:38:38 [main] [INFO ] c.z.h.HikariDataSource [] - 
hugegraph-hubble-HikariCP - Start completed.
+2023-08-30 20:38:41 [main] [INFO ] o.a.c.h.Http11NioProtocol [] - Starting 
ProtocolHandler ["http-nio-0.0.0.0-8088"]
+2023-08-30 20:38:41 [main] [INFO ] o.a.h.HugeGraphHubble [] - Started 
HugeGraphHubble in 7.379 seconds (JVM running for 8.499)
+```
+
+然后使用浏览器访问 `ip:8088` 可看到`hubble`页面, 通过`bin/stop-hubble.sh`则可以停止服务
+
+#### 2.2 源码编译
+
+需要用户提前安装`nodejs==16.x` 与 `yarn`
+
+```bash
+apt install curl build-essential
+curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
+source ~/.bashrc
+nvm install 16
+```
+
+然后确认安装版本是否为16.x

Review Comment:
   ```suggestion
   然后确认安装版本是否为 `16.x` (请注意过高的 Node 版本会产生冲突)
   ```



##########
content/cn/docs/quickstart/hugegraph-hubble.md:
##########
@@ -32,7 +32,115 @@ HugeGraph是一款面向分析型,支持批量操作的图数据库系统,
 
 对于需要遍历全图的Gremlin任务,索引的创建与重建等耗时较长的异步任务,平台提供相应的任务管理功能,实现异步任务的统一的管理与结果查看。
 
-### 2  平台使用流程
+#### 2 部署
+
+有三种方式可以部署`hugegraph-hubble`
+- 下载 toolchain 二进制包
+- 源码编译
+- 使用docker
+
+#### 2.1 下载 toolchain 二进制包
+
+`hubble`项目在`toolchain`项目中, 首先下载`toolchain`的tar包
+
+```bash
+wget 
https://downloads.apache.org/incubator/hugegraph/1.0.0/apache-hugegraph-toolchain-incubating-{version}.tar.gz
+tar -xvf apache-hugegraph-toolchain-incubating-{version}.tar.gz 
+cd 
apache-hugegraph-toolchain-incubating-{version}.tar.gz/apache-hugegraph-hubble-incubating-{version}
+```
+
+运行`hubble`
+
+```bash
+bin/start-hubble.sh
+```
+
+随后我们可以看到
+
+```shell
+starting HugeGraphHubble ..............timed out with http status 502
+2023-08-30 20:38:34 [main] [INFO ] o.a.h.HugeGraphHubble [] - Starting 
HugeGraphHubble v1.0.0 on cpu05 with PID xxx 
(~/apache-hugegraph-toolchain-incubating-1.0.0/apache-hugegraph-hubble-incubating-1.0.0/lib/hubble-be-1.0.0.jar
 started by $USER in 
~/apache-hugegraph-toolchain-incubating-1.0.0/apache-hugegraph-hubble-incubating-1.0.0)
+...
+2023-08-30 20:38:38 [main] [INFO ] c.z.h.HikariDataSource [] - 
hugegraph-hubble-HikariCP - Start completed.
+2023-08-30 20:38:41 [main] [INFO ] o.a.c.h.Http11NioProtocol [] - Starting 
ProtocolHandler ["http-nio-0.0.0.0-8088"]
+2023-08-30 20:38:41 [main] [INFO ] o.a.h.HugeGraphHubble [] - Started 
HugeGraphHubble in 7.379 seconds (JVM running for 8.499)
+```
+
+然后使用浏览器访问 `ip:8088` 可看到`hubble`页面, 通过`bin/stop-hubble.sh`则可以停止服务
+
+#### 2.2 源码编译
+
+需要用户提前安装`nodejs==16.x` 与 `yarn`

Review Comment:
   ```suggestion
   **注意:** 编译 hubble 需要用户本地环境有安装 `Nodejs V16.x` 与 `yarn` 环境
   ```



##########
content/cn/docs/quickstart/hugegraph-hubble.md:
##########
@@ -32,7 +32,115 @@ HugeGraph是一款面向分析型,支持批量操作的图数据库系统,
 
 对于需要遍历全图的Gremlin任务,索引的创建与重建等耗时较长的异步任务,平台提供相应的任务管理功能,实现异步任务的统一的管理与结果查看。
 
-### 2  平台使用流程
+#### 2 部署
+
+有三种方式可以部署`hugegraph-hubble`
+- 下载 toolchain 二进制包
+- 源码编译
+- 使用docker
+
+#### 2.1 下载 toolchain 二进制包
+
+`hubble`项目在`toolchain`项目中, 首先下载`toolchain`的tar包
+
+```bash
+wget 
https://downloads.apache.org/incubator/hugegraph/1.0.0/apache-hugegraph-toolchain-incubating-{version}.tar.gz
+tar -xvf apache-hugegraph-toolchain-incubating-{version}.tar.gz 
+cd 
apache-hugegraph-toolchain-incubating-{version}.tar.gz/apache-hugegraph-hubble-incubating-{version}
+```
+
+运行`hubble`
+
+```bash
+bin/start-hubble.sh
+```
+
+随后我们可以看到
+
+```shell
+starting HugeGraphHubble ..............timed out with http status 502
+2023-08-30 20:38:34 [main] [INFO ] o.a.h.HugeGraphHubble [] - Starting 
HugeGraphHubble v1.0.0 on cpu05 with PID xxx 
(~/apache-hugegraph-toolchain-incubating-1.0.0/apache-hugegraph-hubble-incubating-1.0.0/lib/hubble-be-1.0.0.jar
 started by $USER in 
~/apache-hugegraph-toolchain-incubating-1.0.0/apache-hugegraph-hubble-incubating-1.0.0)
+...
+2023-08-30 20:38:38 [main] [INFO ] c.z.h.HikariDataSource [] - 
hugegraph-hubble-HikariCP - Start completed.
+2023-08-30 20:38:41 [main] [INFO ] o.a.c.h.Http11NioProtocol [] - Starting 
ProtocolHandler ["http-nio-0.0.0.0-8088"]
+2023-08-30 20:38:41 [main] [INFO ] o.a.h.HugeGraphHubble [] - Started 
HugeGraphHubble in 7.379 seconds (JVM running for 8.499)
+```
+
+然后使用浏览器访问 `ip:8088` 可看到`hubble`页面, 通过`bin/stop-hubble.sh`则可以停止服务
+
+#### 2.2 源码编译
+
+需要用户提前安装`nodejs==16.x` 与 `yarn`
+
+```bash
+apt install curl build-essential
+curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
+source ~/.bashrc
+nvm install 16
+```
+
+然后确认安装版本是否为16.x
+
+```bash
+node -v
+```
+
+使用下列命令安装 `yarn`
+
+```bash
+npm install -g yarn
+```
+
+下载toolchain源码包
+
+```shell
+git clone https://github.com/apache/hugegraph-toolchain.git
+```
+
+编译`hubble`

Review Comment:
   ```suggestion
   编译`hubble`, 它依赖 loader 和 client, 编译时需提前构建这些依赖 (后续可跳)
   ```



##########
content/cn/docs/quickstart/hugegraph-hubble.md:
##########
@@ -32,7 +32,115 @@ HugeGraph是一款面向分析型,支持批量操作的图数据库系统,
 
 对于需要遍历全图的Gremlin任务,索引的创建与重建等耗时较长的异步任务,平台提供相应的任务管理功能,实现异步任务的统一的管理与结果查看。
 
-### 2  平台使用流程
+#### 2 部署
+
+有三种方式可以部署`hugegraph-hubble`
+- 下载 toolchain 二进制包
+- 源码编译
+- 使用docker
+
+#### 2.1 下载 toolchain 二进制包
+
+`hubble`项目在`toolchain`项目中, 首先下载`toolchain`的tar包
+
+```bash
+wget 
https://downloads.apache.org/incubator/hugegraph/1.0.0/apache-hugegraph-toolchain-incubating-{version}.tar.gz
+tar -xvf apache-hugegraph-toolchain-incubating-{version}.tar.gz 
+cd 
apache-hugegraph-toolchain-incubating-{version}.tar.gz/apache-hugegraph-hubble-incubating-{version}
+```
+
+运行`hubble`
+
+```bash
+bin/start-hubble.sh
+```
+
+随后我们可以看到
+
+```shell
+starting HugeGraphHubble ..............timed out with http status 502
+2023-08-30 20:38:34 [main] [INFO ] o.a.h.HugeGraphHubble [] - Starting 
HugeGraphHubble v1.0.0 on cpu05 with PID xxx 
(~/apache-hugegraph-toolchain-incubating-1.0.0/apache-hugegraph-hubble-incubating-1.0.0/lib/hubble-be-1.0.0.jar
 started by $USER in 
~/apache-hugegraph-toolchain-incubating-1.0.0/apache-hugegraph-hubble-incubating-1.0.0)
+...
+2023-08-30 20:38:38 [main] [INFO ] c.z.h.HikariDataSource [] - 
hugegraph-hubble-HikariCP - Start completed.
+2023-08-30 20:38:41 [main] [INFO ] o.a.c.h.Http11NioProtocol [] - Starting 
ProtocolHandler ["http-nio-0.0.0.0-8088"]
+2023-08-30 20:38:41 [main] [INFO ] o.a.h.HugeGraphHubble [] - Started 
HugeGraphHubble in 7.379 seconds (JVM running for 8.499)
+```
+
+然后使用浏览器访问 `ip:8088` 可看到`hubble`页面, 通过`bin/stop-hubble.sh`则可以停止服务
+
+#### 2.2 源码编译
+
+需要用户提前安装`nodejs==16.x` 与 `yarn`

Review Comment:
   ```suggestion
   **注意:** 编译 hubble 需要用户本地环境有安装 `Nodejs V16.x` 与 `yarn` 环境
   ```



##########
content/cn/docs/quickstart/hugegraph-hubble.md:
##########
@@ -32,7 +32,115 @@ HugeGraph是一款面向分析型,支持批量操作的图数据库系统,
 
 对于需要遍历全图的Gremlin任务,索引的创建与重建等耗时较长的异步任务,平台提供相应的任务管理功能,实现异步任务的统一的管理与结果查看。
 
-### 2  平台使用流程
+#### 2 部署
+
+有三种方式可以部署`hugegraph-hubble`
+- 下载 toolchain 二进制包
+- 源码编译
+- 使用docker
+
+#### 2.1 下载 toolchain 二进制包
+
+`hubble`项目在`toolchain`项目中, 首先下载`toolchain`的tar包
+
+```bash
+wget 
https://downloads.apache.org/incubator/hugegraph/1.0.0/apache-hugegraph-toolchain-incubating-{version}.tar.gz
+tar -xvf apache-hugegraph-toolchain-incubating-{version}.tar.gz 
+cd 
apache-hugegraph-toolchain-incubating-{version}.tar.gz/apache-hugegraph-hubble-incubating-{version}
+```
+
+运行`hubble`
+
+```bash
+bin/start-hubble.sh
+```
+
+随后我们可以看到
+
+```shell
+starting HugeGraphHubble ..............timed out with http status 502
+2023-08-30 20:38:34 [main] [INFO ] o.a.h.HugeGraphHubble [] - Starting 
HugeGraphHubble v1.0.0 on cpu05 with PID xxx 
(~/apache-hugegraph-toolchain-incubating-1.0.0/apache-hugegraph-hubble-incubating-1.0.0/lib/hubble-be-1.0.0.jar
 started by $USER in 
~/apache-hugegraph-toolchain-incubating-1.0.0/apache-hugegraph-hubble-incubating-1.0.0)
+...
+2023-08-30 20:38:38 [main] [INFO ] c.z.h.HikariDataSource [] - 
hugegraph-hubble-HikariCP - Start completed.
+2023-08-30 20:38:41 [main] [INFO ] o.a.c.h.Http11NioProtocol [] - Starting 
ProtocolHandler ["http-nio-0.0.0.0-8088"]
+2023-08-30 20:38:41 [main] [INFO ] o.a.h.HugeGraphHubble [] - Started 
HugeGraphHubble in 7.379 seconds (JVM running for 8.499)
+```
+
+然后使用浏览器访问 `ip:8088` 可看到`hubble`页面, 通过`bin/stop-hubble.sh`则可以停止服务
+
+#### 2.2 源码编译
+
+需要用户提前安装`nodejs==16.x` 与 `yarn`
+
+```bash
+apt install curl build-essential
+curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
+source ~/.bashrc
+nvm install 16
+```
+
+然后确认安装版本是否为16.x

Review Comment:
   ```suggestion
   然后确认安装版本是否为 `16.x` (请注意过高的 Node 版本会产生冲突)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to