An Elasticsearch connection allows you to read data from and write data to Elasticsearch by using Elasticsearch Reader and Writer. You can configure sync nodes for Elasticsearch by using the codeless user interface (UI) or code editor.

Procedure

  1. Go to the Data Source page.
    1. Log on to the DataWorks console.
    2. In the left-side navigation pane, click Workspaces.
    3. In the top navigation bar, select the region where the target workspace resides. Find the target workspace and click Data Integration in the Actions column.
    4. On the page that appears, click Connection in the left-side navigation pane. The Data Source page appears.
  2. On the Data Source page, click Add a Connection in the upper-right corner.
  3. In the Add data source dialog box, click Elasticsearch in the NoSQL section.
  4. In the Add Elasticsearch data source dialog box, set the parameters as required.
    ES
    Parameter Description
    Data Source Name The name of the connection. The name can contain letters, digits, and underscores (_). It must start with a letter.
    Description The description of the connection. The description can be up to 80 characters in length.
    Environment The environment in which the connection is used. Valid values: Development and Production.
    Note This parameter is available only when the workspace is in the standard mode.
    Endpoint The endpoint of Elasticsearch, in the format of http://esxxxx.elasticsearch.aliyuncs.com:9200.
    User name The username that you can use to connect to the database.
    Password The password that you can use to connect to the database.
  5. Click Test Connection in the Actions column of each resource group.
    A sync node only uses one resource group. Therefore, you must test the connectivity of all the resource groups for Data Integration that your sync nodes use to connect to the data store so that sync nodes can run properly. For more information, see Test data store connectivity.
  6. After the connection passes the connectivity test, click Complete.

What to do next

Now you have learned how to configure an Elasticsearch connection. You can proceed with the next tutorial. In the next tutorial, you will learn how to configure Elasticsearch Reader and Writer. For more information, see Configure Elasticsearch Reader and Configure Elasticsearch Writer.