Create a dataset by uploading a local file

Updated at:

You can import datasets from local files for use in the model canvas. This topic describes how to create a dataset by uploading a local file.

Prerequisites

  • You have created a compute resource to use as a storage data source. For more information, see Create a compute resource.

  • You have prepared the data table for upload.

Note

The data table for upload must meet the following requirements:

  • The file must be in the .xls or .xlsx format. The file size cannot exceed 35 MB.

  • When you prepare the data table, follow these instructions:

    • Enter the Chinese names of the fields in the first row.

    • Enter the English names of the fields in the second row.

    • Enter the data starting from the third row.

    • The table must contain at least one row of data. Otherwise, the upload fails.

    • If there are duplicate English field names, the upload fails.

    • The Chinese and English field names must be set to the text format. Otherwise, the upload fails.

Procedure

  1. Log on to the Data Resource Platform console.

  2. In the upper-left corner of the page, click the 导航图标 icon and select Explore.

  3. In the top menu bar, click the 选择工作组 icon, select the target workgroup, and then click Data Center.

  4. In the navigation pane on the left, choose Data Management > Datasets.

  5. Add a data directory.

    1. In the directory bar, select a directory, click the add icon, enter a name for the new directory in the input box, and then press Enter.

      A message appears, indicating that the directory has been added. The new directory is now visible in the directory bar.

    2. Note

      The system provides the following three isolated directories:

      • System Directory: If you place a resource in this directory, users with tenant administrator permissions can use the resource. Other users can only view the resource.

      • Current Workgroup Directory: If you place a resource in this directory, all members of the workgroup can use the resource.

      • Personal Directory: If you place a resource in this directory, only the current user can use the resource.

    3. (Optional) In the directory bar, select a manually added directory, click the add2 icon, and add a child directory.

  6. Import the data table.

    1. In the upper-right corner of the Datasets page, click New Dataset and select Upload Local File.

    2. In the Upload Local File panel that appears on the right, upload the file.

      Note

      Click Download Template to download the template file. Complete the template as instructed and then upload it.

    3. After the upload is complete, on the Output Field Configuration wizard page, view the data sample and click Next.

    4. On the Basic Information Configuration wizard page, configure the basic information.

      Parameter

      Description

      Data Name

      Customize the name for the imported data.

      Target Data Source

      Select a data source to use as the data store for the imported data.

      Note

      Supported resource types are MaxCompute, Hive, RDS MySQL, Tablestore (OTS), and AnalyticDB for MySQL (ADB).

      Data Directory

      Select a directory to categorize and display the data table.

      Description

      Enter a custom description for the imported data.

    5. Click OK.

      A message appears, indicating that the data was uploaded successfully. You can now view the imported data table in the dataset list.

Related operations

Operation

Description

Edit directory name

In the directory bar, select the directory you want to edit, click the 编辑 icon, modify the directory name in the input box, and then press Enter.

Note

Preset system directories cannot be edited.

Delete directory

In the directory bar, select the directory you want to delete and click the 删除目录 icon.

Note
  • Preset system directories cannot be deleted.

  • A directory that contains child nodes cannot be deleted.

Set data table directory

In the dataset list, select the target data table. In the lower-left corner of the page, choose Batch Operations > Batch Modify Directory. In the Batch Modify Directory panel that appears, select a directory and click OK.

View data details

In the dataset list, click View in the Actions column of the target data. In the Data Details panel that appears on the right, you can view the imported data content and upload history.

Import data

In the dataset list, click Import in the Actions column of the target data. You can update the imported data table. Incremental import and full import are supported.

  • Incremental import: Adds the new data to the original data without overwriting it.

  • Full import: Overwrites the original data with the new data.

Export data

  • Method 1: In the dataset list, click Export in the Actions column of the target data.

  • Method 2: In the dataset list, click View in the Actions column of the target data. In the Data Details panel that appears on the right, click Export Data.

Delete data

  • Single delete: In the dataset list, click Delete in the Actions column of the target data. In the dialog box that appears, click OK.

  • Batch delete: In the dataset list, check the data you want to delete. In the lower-left corner of the page, choose Batch Operations > Batch Delete. In the dialog box that appears, click Confirm.

Important

After data is deleted, it is no longer displayed in the model canvas and cannot be used for modeling. Delete data with caution.