Importing Data

Scenario

GES allows you to select initial data during graph creation or incrementally import data after the graph is created.

  • Select initial data during cluster creation.

    If you select the initial data when creating a graph, the data is imported to the graph by default. You do not need to import it again.

  • Incrementally import data after the graph is created.

    If you need to add data after a graph is created, click Import in the graph list to import the data incrementally.

  • Currently, only graphs of version 1.1.8 and later support this function.
  • To prevent failures in restoring the imported graph data during system restart, do not delete the data stored on OBS when the graph is in use.
  • The default separator of data columns is comma (,). You cannot define a separator.

The following provides the procedure for incrementally importing data:

Procedure

  1. Log in to the GES management console.
  2. In the navigation tree on the left, select Graph Management.
  3. Locate the target graph in the graph list and select Import in the Operation column.
  4. In the Import dialog box that is displayed, set the following parameters:

    • Metadata: Select an existing metadata file or create one. For details, see Metadata Management.
    • Edge Data: Select the corresponding edge data set.
    • Vertex Data: Select the corresponding vertex data set. If you leave it blank, the vertices in the Edge Data set are used as the source of Vertex Data.
    • Log Storage Path: Stores vertex and edge data sets that do not comply with the metadata definition, as well as detailed logs generated during graph import. Storage on OBS may incur fees, so delete the data in time.
    • Edge Processing: Includes Allow repetitive edges, Ignore subsequent repetitive edges, Overwrite previous repetitive edges, and Ignore labels on repetitive edges. For details, see Edge Processing.
    • Import Type: The value can be Online import or Offline import.
    Figure 1 Importing data

  5. Click OK.