Skip to content

Import clusters

This topic introduces how to import clusters using Dashboard. The current version only supports importing clusters deployed by the official DEB or RPM packages and clusters created by Dashboard. Currently, importing clusters deployed by Docker and Kubernetes is not supported.

Steps

Caution

In the same cluster, the service versions need to be unified. Importing Nebula Graph examples from different versions in the same cluster is not supported.

  1. In the configuration files of each service, change the IP in <meta|graph|storage>_server_addrs and local_ip to the server's IP, and then start Nebula Graph.

    For details, see Configurations and Manage Nebula Graph services.

  2. On the Cluster management page, click Import cluster.

  3. On the Import cluster page, enter the information of Connect to Nebula Graph.

    • Graphd Host: :n. In this example, the IP is 192.168.8.157:9669.
    • Username: The account to connect to Nebula Graph. In this example, the username is vesoft.
    • Password: The password to connect to Nebula Graph. In this example, the password is nebula.

    Note

    By default, authentication is disabled in Nebula Graph. Therefore, you can use root as the username and any password to connect to Nebula Graph. When authentication is enabled in Nebula Graph, you need to use the specified username and password to connect to Nebula Graph. For details of authentication, see Nebula Graph manual.

  4. On the Nebula Graph connection panel, fill in the following:

    • Enter the cluster name, 15 characters at most. In this example, the cluster name is create_1027, and choose whether to use sudo to connect to the cluster.

      Notice

      If your SSH account does not have permission for the Nebula Graph cluster, you can use sudo to connect to it.

    • Authorize the node. The SSH username and password of each node are required, and choose to run sudo or not.

      Notice

      If your SSH account has no permission to operate Nebula Graph, but can execute sudo commands without password, set use sudo to yes.

    • Batch authorization requires uploading the CSV file. Edit the authentication information of each node according to the downloaded CSV file. Ensure that the node information is correct, otherwise upload failure may happen.
    • If the node status on the page becomes authorized, the node authentication is successful.

      Authorize

  5. Ensure that all nodes are authorized successfully. Click Import cluster.

Next to do

After the cluster is successfully imported, you can operate the cluster. For details, see Overview.


Last update: April 22, 2022