hexuxu110 commented on issue #2571:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2571#issuecomment-2213269254

   > > 首先建议使用 1.5 的最新版分布式存储, 有专门的同学可以解答问题, 参考 #2265 (旧版的存储已进入封存期不再更新维护)
   > 
   > 要将新机器添加到 HugeGraph 集群中,请确保以下几点:
   > 
   > 1. **服务可用性**:确保 HugeGraph 服务在指定的主机和端口上运行并可访问。可以使用 `curl` 或浏览器尝试连接服务。
   > 2. **主机详细信息**:验证主机名是否正确且可达。可以通过 ping 主机或使用网络诊断工具进行检查。
   > 3. **协议和端口**:确保使用正确的协议(HTTP/HTTPS)和端口。默认协议是 HTTP,但如果需要,可以配置为 HTTPS。
   > 4. **信任库配置**:如果使用 HTTPS,请确保正确配置了信任库文件和密码。
   > 5. **用户名和密码**:如果需要身份验证,请确保正确指定了用户名和密码。
   > 6. **Raft 工具**:确保在 Raft 组的主节点上执行 `raft-tools.sh` 脚本,并使用正确的命令格式添加新节点。
   > 
   > ### 具体步骤
   > 1. **在新机器上启动 HugeGraph 服务**:
   >    ```shell
   >    bin/init-store.sh
   >    bin/start-hugegraph.sh
   >    ```
   > 2. **在主节点上使用 `raft-tools.sh` 添加新节点**:
   >    ```shell
   >    bin/raft-tools.sh --add-peer g_rocksdb 新机器ip:port
   >    ```
   > 
   > ### 常见问题及解决方案
   > 1. **身份验证问题**:
   >    
   >    * **问题**:如果未设置 `HUGEGRAPH_USERNAME` 和 `HUGEGRAPH_PASSWORD`,脚本将无法进行身份验证。
   >    * **解决方案**:确保环境变量 `HUGEGRAPH_USERNAME` 和 `HUGEGRAPH_PASSWORD` 设置了正确的凭据。
   > 2. **URL 配置**:
   >    
   >    * **问题**:如果未设置 `HUGEGRAPH_URL`,脚本将不知道发送请求的地址。
   >    * **解决方案**:确保设置了 `HUGEGRAPH_URL` 环境变量,或者脚本将尝试从 `rest-server.properties` 
文件中读取。
   > 3. **主节点要求**:
   >    
   >    * **问题**:`add-peer` 命令必须在 Raft 组的主节点上执行。
   >    * **解决方案**:确保在 Raft 组的主节点上运行 `raft-tools.sh` 脚本。
   > 4. **端点格式**:
   >    
   >    * **问题**:提供的端点格式可能不正确。
   >    * **解决方案**:确保端点格式正确,如 HugeGraph 服务器所期望的那样。
   > 
   > ### 示例命令
   > ```shell
   > ./raft-tools.sh --add-peer g_rocksdb http://new-node-endpoint:8080
   > ```
   > 
   > 此命令将把端点 `http://new-node-endpoint:8080` 添加到 Raft 组 `g_rocksdb` 中。
   > 
   > 请检查服务的可用性和主机详细信息,以解决问题 
[[1]](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-hubble/hubble-be/src/main/resources/i18n/messages.properties)[[2]](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/util/HugeClientUtil.java)[[3]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-dist/src/assembly/static/bin/raft-tools.sh).
   > 
   > _To continue talking to [Dosu](https://dosu.dev), mention @dosu._
   
   并没有解答我的问题


-- 
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