SHOW 语法

  1. SHOW {SPACES | TAGS | EDGES | HOSTS | PARTS}
  2. SHOW CONFIGS [graph|meta|storage]

SHOW SPACES 列出 Nebula Graph 集群中的所有图空间。

SHOW TAGSSHOW EDGES 则返回当前图空间中被定义的 tag 和 edge type。

SHOW HOSTS 列出元服务器注册的所有存储主机。

SHOW PARTS 列出指定 SPACE 的 partition 信息。

更多关于 SHOW CONFIGS [graph|meta|storage] 的信息,参见 configs syntax

示例

  1. nebula> SHOW SPACES;
  2. ========
  3. | Name |
  4. ========
  5. | test |
  6. --------
  7. nebula> USE test;
  8. nebula> SHOW PARTS;
  9. ======================================================================================================
  10. | Partition ID | Leader | Peers | Losts |
  11. ======================================================================================================
  12. | 1 | 172.25.61.1:44600 | 172.25.61.1:44700, 172.25.61.1:44500, 172.25.61.1:44600 | |
  13. ------------------------------------------------------------------------------------------------------
  14. | 2 | 172.25.61.1:44600 | 172.25.61.1:44500, 172.25.61.1:44600, 172.25.61.1:44700 | |
  15. ------------------------------------------------------------------------------------------------------
  16. | 3 | 172.25.61.1:44600 | 172.25.61.1:44600, 172.25.61.1:44700, 172.25.61.1:44500 | |
  17. ------------------------------------------------------------------------------------------------------
  18. nebula> SHOW TAGS;
  19. =================
  20. | ID | Name |
  21. =================
  22. | 2 | course |
  23. -----------------
  24. | 3 | building |
  25. -----------------
  26. | 4 | student |
  27. -----------------
  28. nebula> SHOW EDGES;
  29. ===============
  30. | ID | Name |
  31. ===============
  32. | 5 | follow |
  33. ---------------
  34. | 6 | choose |
  35. ---------------