All Products
Search
Document Center

Platform For AI:Configure data stores

Last Updated:Jul 31, 2024

FeatureStore supports online and offline data stores. Before you create a FeatureStore project, you must configure the online and offline data stores to allow the project to access data storage services. This topic describes how to configure data stores.

Prerequisites

  • Platform for AI (PAI) is activated and a workspace is created. For more information, see Activate PAI and create a default workspace.

  • A project or an instance is prepared based on the type of data store.

    • Offline data stores

      If you want to use a MaxCompute data store, you must create a MaxCompute project. For more information, see Create a MaxCompute project.

    • Online data stores

      • If you want to use a Hologres data store, you must purchase a Hologres instance. For more information, see Purchase a Hologres instance.

        You must enable Internet access for the Hologres instance. For more information, see Instance configurations.

        You must create a database on the Hologres instance. For more information, see Create a database.

      • If you want to use a GraphCompute data store, you must purchase a GraphCompute instance. For more information, see Create a GraphCompute instance.

Procedure

  1. Go to the FeatureStore page.

    1. Log on to the PAI console. In the left-side navigation pane, choose Data Preparation > FeatureStore.

    2. Select a workspace from the drop-down list and click Enter FeatureStore.

  2. Click Manage Store. On the Store page, click Create Store. Configure the parameters for the data store in the Create Store panel.

    image.png

Configure an offline data store: MaxCompute

  1. Configure parameters for the MaxCompute data store.

    • Set the Type parameter to MaxCompute.

    • Specify the name of the data store in the Name field.

    • Select the MaxCompute project that you want to associate with the data store from the MaxCompute Project Name drop-down list.

  2. (Optional) Use one of the following methods to synchronize data from the offline MaxCompute data store to the online Hologres data store:

    • Method 1: Copy the authorization statement in the Create Store panel, go to the DataWorks platform by clicking Go to, and then paste and execute the statement to complete the authorization.

    • Method 2: Copy the authorization statement in the Create Store panel and execute the statement in the MaxCompute client for authorization.

      1. Log on to the MaxCompute console, click Command Line in the upper-right corner, select the MaxCompute project that you configured in the preceding step, and then click OK.

      2. In the MaxCompute Cloud CMD dialog box, the odpscmd tool is automatically installed. Then, paste and execute the authorization statement to complete the authorization.

  3. Click Submit.

Configure an online data store: Hologres

  1. Configure parameters for the Hologres data store.

    • Set the Type parameter to Hologres.

    • Specify the name of the data store in the Name field.

    • Select a Hologres instance from the Instance ID drop-down list.

    • Select a database on the Hologres instance that you configured from the Database Name drop-down list.

    • (Optional) If you are prompted that you do not have permissions to access the Hologres instance, perform the following steps to complete the authorization:

      1. Log on to the Hologres console, click Instances in the left-side navigation pane, and then click the Hologres instance that you want to access. On the instance details page, click Account Management.

      2. On the User Management page, click Add User in the upper-right corner. In the prompted dialog box, select AliyunServiceRoleForPaiFeatureStore under Roles, select Examples of the Super Administrator (SuperUser), and then click OK.

  2. Click Submit.

Configure an online data store: GraphCompute

  1. Configure parameters for the GraphCompute data store.

    • Set the Type parameter to GraphCompute.

    • Specify the name of the data store in the Name field.

    • Select a GraphCompute instance from the Instance ID drop-down list.

    • Set the Store Address, Username, and Password parameters to the values of the Endpoint, Username, and Password parameters of the GraphCompute instance. For more information, see the "API Information" section of the Instance information topic.

  2. Click Submit.

Configure an online data store: Tablestore

  1. Configure parameters for the Tablestore data store.

    • Set the Type parameter to Tablestore.

    • Specify the name of the data store in the Name field.

    • Select a Tablestore instance from the Instance ID drop-down list.

  2. Click Submit.

    If the Authorize Now dialog box appears, click Authorize.

What to do next

After you configure the data stores, you can create a FeatureStore project. For more information, see Configure FeatureStore projects.