Preparations

Updated at:

Before importing data files (vertex files and edge files) into a Graph Database (GDB) instance, prepare the data files and obtain the necessary instance information. This ensures a smooth import process.

Prerequisites

  • You have created a Graph Database (GDB) instance. For more information, see Create an instance.

  • You have created a bucket. For more information, see Create a bucket.

    Note

    If you create the bucket in the Object Storage Service (OSS) console, it must be in the same region as the GDB instance.

  • If your application is on an ECS instance, make sure the GDB instance and the ECS instance are in the same region and use the same network type. For the best network connectivity, place them in the same zone. To view the region, zone, and network type of an ECS instance, see View instance information.

    Note

    If the ECS instance uses the classic network, you can migrate it to a virtual private cloud (VPC). For more information, see Migrate an ECS instance from a classic network to a VPC.

Prepare CSV data files

Get information about the GDB instance

  1. Log on to the Graph Database (GDB) console.

  2. In the upper-left corner of the page, select the region where the target instance is located.

  3. In the instance list, click the ID of the target instance or click Manage in the Actions column for the target instance.

  4. Perform the corresponding operation based on the information you receive.

    • Connection address and port

      On the Basic Information page, in the Basic Information section, view the connection address (internal or public) and port (internal or public) of the target instance.

    • Account

      In the navigation pane on the left, click Account Management.

      In the account list, view the information of the target account.

      • If you forgot the password of the target account, click Reset Password in the Actions column for the account. For more information, see Reset a password.

      • If you have not created an account, click Create Account in the upper-left corner of the account list to create an account for the target instance. For more information, see Create an account.

Get information about the OSS bucket

  1. Log on to the OSS console.

  2. In the navigation pane on the left, click Buckets.

  3. In the bucket list, find the name and region of the target bucket. Then, find the endpoint for that region. For more information, see Endpoints and data centers.

    Note

    If you use a URI in the format `http://<endpoint-name>/<bucket-name>/<object-key-name>` for the source parameter when you import data, you must replace <endpoint-name> with the bucket endpoint.