SHOW 语法
SHOW {SPACES | TAGS | EDGES | HOSTS | PARTS}
SHOW CONFIGS [graph|meta|storage]
SHOW SPACES
列出 Nebula Graph 集群中的所有图空间。
SHOW TAGS
和 SHOW EDGES
则返回当前图空间中被定义的 tag 和 edge type。
SHOW HOSTS
列出元服务器注册的所有存储主机。
SHOW PARTS
列出指定 SPACE 的 partition 信息。
更多关于 SHOW CONFIGS [graph|meta|storage]
的信息,参见 configs syntax。
示例
nebula> SHOW SPACES;
========
| Name |
========
| test |
--------
nebula> USE test;
nebula> SHOW PARTS;
======================================================================================================
| Partition ID | Leader | Peers | Losts |
======================================================================================================
| 1 | 172.25.61.1:44600 | 172.25.61.1:44700, 172.25.61.1:44500, 172.25.61.1:44600 | |
------------------------------------------------------------------------------------------------------
| 2 | 172.25.61.1:44600 | 172.25.61.1:44500, 172.25.61.1:44600, 172.25.61.1:44700 | |
------------------------------------------------------------------------------------------------------
| 3 | 172.25.61.1:44600 | 172.25.61.1:44600, 172.25.61.1:44700, 172.25.61.1:44500 | |
------------------------------------------------------------------------------------------------------
nebula> SHOW TAGS;
=================
| ID | Name |
=================
| 2 | course |
-----------------
| 3 | building |
-----------------
| 4 | student |
-----------------
nebula> SHOW EDGES;
===============
| ID | Name |
===============
| 5 | follow |
---------------
| 6 | choose |
---------------
当前内容版权归 Nebula Graph 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Nebula Graph .