Create a dataset by uploading a local file
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.
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
Log on to the Data Resource Platform console.
In the upper-left corner of the page, click the
icon and select Explore.In the top menu bar, click the
icon, select the target workgroup, and then click Data Center.In the navigation pane on the left, choose Data Management > Datasets.
Add a data directory.
In the directory bar, select a directory, click the
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.
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.
(Optional) In the directory bar, select a manually added directory, click the
icon, and add a child directory.
NoteThe system provides the following three isolated directories:
Import the data table.
In the upper-right corner of the Datasets page, click New Dataset and select Upload Local File.
In the Upload Local File panel that appears on the right, upload the file.
NoteClick Download Template to download the template file. Complete the template as instructed and then upload it.
After the upload is complete, on the Output Field Configuration wizard page, view the data sample and click Next.
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.
NoteSupported 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.
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
Note
Preset system directories cannot be edited. |
Delete directory |
In the directory bar, select the directory you want to delete and click the
Note
|
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.
|
Export data |
|
Delete data |
Important
After data is deleted, it is no longer displayed in the model canvas and cannot be used for modeling. Delete data with caution. |
icon, modify the directory name in the input box, and then press Enter.
icon.