Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD HOSTS in docker deployment #1514

Merged
merged 1 commit into from
Mar 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@

默认情况下,身份认证功能是关闭的,只能使用已存在的用户名(默认为`root`)和任意密码登录。如果想使用身份认证,请参见[身份认证](../../7.data-security/1.authentication/1.authentication.md)。

3. 执行如下命令检查`nebula-storaged`进程状态
3. 执行如下命令将 `nebula-storaged` 进程增加为可用状态

```bash
nebula> ADD HOSTS "storaged0":9779,"storaged1":9779,"storaged2":9779;

nebula> SHOW HOSTS;
+-------------+------+----------+--------------+----------------------+------------------------+---------+
| Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version |
Expand All @@ -106,8 +108,10 @@
| "storaged2" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" |
+-------------+------+----------+--------------+----------------------+------------------------+---------+
```
!!! Note
从 3.0 开始,上报到 metad 的 `nebula-storaged` 服务需要人为 `ADD HOSTS` 之后才可以被使用。

5. 执行两次`exit` 可以退出容器。
5. 执行两次`exit`可以退出容器。

## 查看 Nebula Graph 服务的状态和端口

Expand Down Expand Up @@ -273,4 +277,4 @@ docker pull vesoft/nebula-console:{{console.branch}}
[使用 docker compose 部署 Nebula Graph 2.0 和 Web Studio](https://www.bilibili.com/video/BV1T54y1b7pa)(18 分 10 秒)

<iframe src="//player.bilibili.com/player.html?aid=844979052&bvid=BV1T54y1b7pa&cid=319036307&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width="720px" height="480px"> </iframe>
-->
-->