Skip to content

Commit

Permalink
fix comments and rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
whitewum committed May 8, 2020
1 parent e81c7d7 commit e1fc0ca
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions docs/manual-CN/1.overview/2.quick-start/1.get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
================================================================================================
| 192.168.8.210 | 44500 | online | | | |
------------------------------------------------------------------------------------------------
| 192.168.8.210 | 44500 | online | | | |
| 192.168.8.211 | 44500 | online | | | |
```

状态 `online` 表示**存储服务进程** `storaged` 已经成功连接上**元数据服务进程** `metad`

1. 输入以下语句创建图空间:

```ngql
nebula> CREATE SPACE nba; (partition_num=10, replica_factor=1);
nebula> CREATE SPACE nba (partition_num=10, replica_factor=1);
```

**这里**
Expand All @@ -65,7 +65,7 @@
================================================================================================
| 192.168.8.210 | 44500 | online | 8 | nba: 8 | test: 8 |
------------------------------------------------------------------------------------------------
| 192.168.8.210 | 44500 | online | 2 | nba: 2 | test: 2 |
| 192.168.8.211 | 44500 | online | 2 | nba: 2 | test: 2 |
```

若发现机器都已在线 (online),但 Leader distribution 分布不均(如上),则可以通过命令 (`BALANCE LEADER`) 来触发 partition 重分布:
Expand All @@ -77,8 +77,9 @@
================================================================================================
| 192.168.8.210 | 44500 | online | 5 | nba: 5 | test: 5 |
------------------------------------------------------------------------------------------------
| 192.168.8.210 | 44500 | online | 5 | nba: 5 | test: 5 |
| 192.168.8.211 | 44500 | online | 5 | nba: 5 | test: 5 |
```

具体解释可以见[这里](../../2.query-language/4.statement-syntax/1.data-definition-statements/create-space-syntax.md)

2. 输入以下语句来指定使用的图空间:
Expand All @@ -87,7 +88,7 @@
nebula> USE nba;
```

现在,您可以通过以下语句查看刚创建的空间:
3. 现在,您可以通过以下语句查看刚创建的空间:

```ngql
nebula> SHOW SPACES;
Expand Down Expand Up @@ -135,7 +136,7 @@

5. 现在,您可以查看刚刚创建的标签和边类型。

5.1 要获取刚创建的标签,请输入以下语句:
5.1. 要获取刚创建的标签,请输入以下语句:

```ngql
nebula> SHOW TAGS;
Expand All @@ -153,7 +154,7 @@
------------
```

5.2 要显示刚创建的边类型,请输入以下语句:
5.2. 要显示刚创建的边类型,请输入以下语句:

```ngql
nebula> SHOW EDGES;
Expand All @@ -171,7 +172,7 @@
----------
```

5.3 要显示 **player** 标签的属性,请输入以下语句:
5.3. 要显示 **player** 标签的属性,请输入以下语句:

```ngql
nebula> DESCRIBE TAG player;
Expand All @@ -189,7 +190,7 @@
-------------------
```

5.4 要获取 **follow** 边类型的属性,请输入以下语句:
5.4. 要获取 **follow** 边类型的属性,请输入以下语句:

```ngql
nebula> DESCRIBE EDGE follow;
Expand Down Expand Up @@ -363,9 +364,11 @@ nebula> FETCH PROP ON follow 100 -> 101;
------------------------------------------------------------
```

### upsert
<!--
### UPSERT
<!-- TODO -->
TODO
-->

### 删除数据

Expand Down

0 comments on commit e1fc0ca

Please sign in to comment.