skip to Main Content

I installed a Nebula Graph database with Docker as what the official doc says.

I ran docker-compose ps.

$ docker-compose ps
nebuladockercompose_console_1     sh -c sleep 3 &&                 Up
                                  nebula-co ...
nebuladockercompose_graphd1_1     /usr/local/nebula/bin/nebu ...   Up      0.0.0.0:49174->19669/tcp,:::49174->19669/tcp, 0.0.0.0:49171->19670/tcp,:::49171->19670/tcp, 0.0.0.0:49177->9669/tcp,:::49177->9669/tcp
nebuladockercompose_graphd2_1     /usr/local/nebula/bin/nebu ...   Up      0.0.0.0:49175->19669/tcp,:::49175->19669/tcp, 0.0.0.0:49172->19670/tcp,:::49172->19670/tcp, 0.0.0.0:49178->9669/tcp,:::49178->9669/tcp
nebuladockercompose_graphd_1      /usr/local/nebula/bin/nebu ...   Up      0.0.0.0:49180->19669/tcp,:::49180->19669/tcp, 0.0.0.0:49179->19670/tcp,:::49179->19670/tcp, 0.0.0.0:9669->9669/tcp,:::9669->9669/tcp
nebuladockercompose_metad0_1      /usr/local/nebula/bin/nebu ...   Up      0.0.0.0:49157->19559/tcp,:::49157->19559/tcp, 0.0.0.0:49154->19560/tcp,:::49154->19560/tcp, 0.0.0.0:49160->9559/tcp,:::49160->9559/tcp, 9560/tcp
nebuladockercompose_metad1_1      /usr/local/nebula/bin/nebu ...   Up      0.0.0.0:49156->19559/tcp,:::49156->19559/tcp, 0.0.0.0:49153->19560/tcp,:::49153->19560/tcp, 0.0.0.0:49159->9559/tcp,:::49159->9559/tcp, 9560/tcp
nebuladockercompose_metad2_1      /usr/local/nebula/bin/nebu ...   Up      0.0.0.0:49158->19559/tcp,:::49158->19559/tcp, 0.0.0.0:49155->19560/tcp,:::49155->19560/tcp, 0.0.0.0:49161->9559/tcp,:::49161->9559/tcp, 9560/tcp
nebuladockercompose_storaged0_1   /usr/local/nebula/bin/nebu ...   Up      0.0.0.0:49166->19779/tcp,:::49166->19779/tcp, 0.0.0.0:49163->19780/tcp,:::49163->19780/tcp, 9777/tcp, 9778/tcp, 0.0.0.0:49169->9779/tcp,:::49169->9779/tcp, 9780/tcp
nebuladockercompose_storaged1_1   /usr/local/nebula/bin/nebu ...   Up      0.0.0.0:49165->19779/tcp,:::49165->19779/tcp, 0.0.0.0:49162->19780/tcp,:::49162->19780/tcp, 9777/tcp, 9778/tcp, 0.0.0.0:49168->9779/tcp,:::49168->9779/tcp, 9780/tcp
nebuladockercompose_storaged2_1   /usr/local/nebula/bin/nebu ...   Up      0.0.0.0:49167->19779/tcp,:::49167->19779/tcp, 0.0.0.0:49164->19780/tcp,:::49164->19780/tcp, 9777/tcp, 9778/tcp, 0.0.0.0:49170->9779/tcp,:::49170->9779/tcp, 9780/tcp

And then tried the following command to check the version of the NebulaGraph database that I installed.

[abby.huang@abby nebula-docker-compose]$ show hosts
-bash: show: 未找到命令
[abby.huang@abby nebula-docker-compose]$ ./nebula-graph -version
-bash: ./nebula-graph: 没有那个文件或目录
[abby.huang@abby nebula-docker-compose]$ yum install show
已加载插件:fastestmirror
您需要 root 权限执行此命令。
[abby.huang@abby nebula-docker-compose]$ sudo yum install show
已加载插件:fastestmirror
Determining fastest mirrors
epel/x86_64/metalink                                                                                                                                                                                                                                                                                                         | 4.7 kB  00:00:00
 * base: ftp.jaist.ac.jp
 * centos-sclo-rh: ftp.jaist.ac.jp
 * centos-sclo-sclo: ftp.jaist.ac.jp
 * epel: mirror.01link.hk
 * extras: ftp.jaist.ac.jp
 * updates: ftp.jaist.ac.jp
base                                                                                                                                                                                                                                                                                                                         | 3.6 kB  00:00:00
centos-sclo-rh                                                                                                                                                                                                                                                                                                               | 3.0 kB  00:00:00
centos-sclo-sclo                                                                                                                                                                                                                                                                                                             | 3.0 kB  00:00:00
docker-ce-stable                                                                                                                                                                                                                                                                                                             | 3.5 kB  00:00:00
epel                                                                                                                                                                                                                                                                                                                         | 4.7 kB  00:00:00
extras                                                                                                                                                                                                                                                                                                                       | 2.9 kB  00:00:00
updates                                                                                                                                                                                                                                                                                                                      | 2.9 kB  00:00:00
epel/x86_64/updateinfo         FAILED                                                                                                                       0% [                                                                                                                                                  ]  0.0 B/s |  86 kB  --:--:-- ETA
https://mirror.01link.hk/epel/7/x86_64/repodata/d10138625753680f1740d2f9bb5e45a7bbe2ee93895096e9a65f21d69e59f99d-updateinfo.xml.bz2: [Errno 14] HTTPS Error 404 - Not Found                                                                                                                                       ]  0.0 B/s |  86 kB  --:--:-- ETA
正在尝试其它镜像。
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

(1/6): epel/x86_64/group_gz                                                                                                                                                                                                                                                                                                  |  99 kB  00:00:00
(2/6): docker-ce-stable/7/x86_64/primary_db                                                                                                                                                                                                                                                                                  |  91 kB  00:00:00
(3/6): epel/x86_64/updateinfo                                                                                                                                                                                                                                                                                                | 1.0 MB  00:00:07
(4/6): centos-sclo-rh/x86_64/primary_db                                                                                                                                                                                                                                                                                      | 3.4 MB  00:00:14
(5/6): epel/x86_64/primary_db                                                                                                                                                                                                                                                                                                | 7.0 MB  00:01:28
(6/6): updates/7/x86_64/primary_db                                                                                                                                                                                                                                                                                           |  19 MB  00:01:47
没有可用软件包 show。
错误:无须任何处理
[abby.huang@abby nebula-docker-compose]$ show hosts
-bash: show: 未找到命令

How do I check the version of the NebulaGraph database with Docker?

2

Answers


  1. Chosen as BEST ANSWER

    First enter the nebuladockercompose_console_1 container .

    $ docker exec -it nebuladockercompose_console_1 /bin/sh
    / #
    

    Then executed

    / # ./usr/local/bin/nebula-console -u root -p nebula --address=graphd --port=9669
    
    / # SHOW HOSTS;
    +-------------+------+-----------+----------+--------------+----------------------+------------------------+---------+
    | Host        | Port | HTTP port | Status   | Leader count | Leader distribution  | Partition distribution | Version |
    +-------------+------+-----------+----------+--------------+----------------------+------------------------+---------+
    | "storaged0" | 9779 | 19779     | "ONLINE" | 0            | "No valid partition" | "No valid partition"   | "x.x.x" |
    | "storaged1" | 9779 | 19779     | "ONLINE" | 0            | "No valid partition" | "No valid partition"   | "x.x.x" |
    | "storaged2" | 9779 | 19779     | "ONLINE" | 0            | "No valid partition" | "No valid partition"   | "x.x.x" |
    +-------------+------+-----------+----------+--------------+----------------------+------------------------+---------+
    

  2. I’m making some assumtions about your setup so If you diviated from the official docs it might not work but here goes.

    The fastest way would be:

    docker exec nebuladockercompose_graphd1_1 /usr/local/nebula/bin/nebula-graphd --version
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search