This article describes how to integrate BytePlus's EMR Serverless Spark to create datasets.
Go to BytePlus, enter a specific project, click Data Preparation, find Data Connection in the drop-down list, and create a new data connection.
Select EMR Serverless Spark on the page.
The parameter configuration instructions for the SaaS version are as follows:
Parameters | Configuration description |
|---|---|
Data connection name | Name for the new data connection, used to distinguish between different database connections in the system. The default is Emr_Serverless_Spark_timestamp. The name can be modified, but please enter a standardized name. Only combinations of Chinese, English, numbers, and underscores are allowed, and spaces cannot be included at the beginning or end. |
Connection method | Two options: IP/Port and JDBC connection string. |
Server | Required when the connection method is IP/Port. |
Port | Required when the connection method is IP/Port. |
Username | The tenant's AccessKey. |
Password | The tenant's SecretKey. |
Queue | Name of the queue used for the connection. Currently, only dedicated queues are supported; public queues are not supported. |
Compute group | Compute group name. warning The default compute group is not supported. You need to create a separate compute group of type Spark. |
EMR cluster region | Specify the region where the EMR cluster is located. Options include North China (Beijing), East China (Shanghai), South China (Guangzhou), or Asia Pacific (Johor). |
Bucket name | To accelerate extraction using TOS, enter the TOS bucket name here. For details, see Optional: Extraction acceleration. |
The parameter configuration instructions for the on-premises version are as follows:
Parameters | Configuration description |
|---|---|
Data connection name | Name of the new data connection, used to distinguish different database connections in the system. Emr_Serverless_Spark_timestamp. The name can be modified, but please enter a valid name. Only Chinese characters, English letters, numbers, and underscores are allowed, and there must be no spaces at the beginning or end. |
Server | This field is required when the connection method is set to IP/Port. |
Port | This field is required when the connection method is set to IP/Port. The instance port of EMR. For public cloud, it is typically 10009. |
Username | The tenant's AccessKey. For instructions, refer to the documentation: Access Key (Key) Management. |
Password | The tenant's SecretKey. For instructions, refer to the documentation: Access Key (Key) Management. |
Connection method | Two options: IP/Port and JDBC connection string.
|
JDBC connection string | This field is required when the connection method is set to JDBC connection string. For details, refer to the documentation: JDBC usage. |
Queue | Name of the queue used for the connection. Currently, only dedicated queues are supported; public queues are not supported. |
Compute group | Name of the compute group. warning Currently, the default compute group is not supported. A compute group of type spark must be created separately. |
EMR cluster region | Specify the region where the EMR cluster is located. Options are North China (Beijing), East China (Shanghai), South China (Guangzhou), or Asia Pacific (Johor). |
Bucket name | When you need to accelerate extraction using TOS, you can enter the TOS bucket name here. For details, see Optional: Extraction acceleration. |
Go to BytePlus, click Data Preparation --> Dataset, and click the "New" button in the upper left corner to create a new dataset.
When selecting a data connection, click the Other button.
The subsequent steps are the same as steps 2 and 3 of Create from data connection. After completing the configuration, you will remain in the pop-up window for selecting a data connection for the dataset, where you can proceed directly to the next step of dataset creation.
Use the previously created data connection to create a dataset: Click Data Preparation --> Dataset, and click the "New" button in the upper left corner to create a new dataset.
Search for or select from the drop-down list the previously created data connection.
Currently, DataWind connects to EMR Serverless Spark using a query gateway approach, which has limitations in scenarios involving large-scale data extraction. To extract large volumes of data, TOS can be used to transfer and store result sets.
DataWind supports acceleration by reading result data from TOS, with extraction speeds expected to increase by tens of times.
warning
Currently, if the SaaS version of DataWind and TOS are in the same region, or if the privatized version deployed on BytePlus ECS and TOS are in the same region, TOS can be accessed via the internal network without additional traffic charges. In all other scenarios (that is, when DataWind and TOS are not in the same region), downloads must be performed over the public network, which will incur additional traffic charges. For details, refer to the TOS traffic fee description.
After creating the storage bucket, refer to Create a storage bucket for detailed steps.
warning
Please select the same region as EMR. Currently, hierarchical namespace buckets (HNS) are not supported.
After creating the storage bucket authorization policy, refer to Cross-account authorization for detailed steps.
When DataWind connects to EMR Serverless Spark, enter the created TOS bucket name in the connection parameters to enable acceleration.