Create A Data Lake Formation Data Source
Create a Data Lake Formation data source to enable Dataphin to read business data from or write data to Data Lake Formation. This topic shows you how.
Permissions
Only a super administrator, data source administrator, domain architect, project administrator, or a custom global role with the add data source permission can create data sources.
Procedure
On the Dataphin homepage, in the top navigation bar, click Management Center > data source management.
On the Data Sources page, click + New Data Source.
On the New Data Source page, in the big data storage section, select Data Lake Formation.
If you have recently used Data Lake Formation, you can also select it in the Recently Used section. Alternatively, enter "Data Lake Formation" in the search box to find it.
On the New Data Lake Formation Data Source page, configure the connection parameters.
Configure basic information
Parameter
Description
Data source name
Enter a name for the data source. The name must meet the following requirements:
Can contain only Chinese characters, letters, digits, underscores (_), and hyphens (-).
Can be up to 64 characters long.
Data source code
The data source code allows you to directly access Dataphin data source tables in a Flink SQL job or by using the Dataphin JDBC client in the format
DataSourceCode.TableNameorDataSourceCode.Schema.TableName. To automatically switch data sources based on the job execution environment, use the variable format${DataSourceCode}.tableor${DataSourceCode}.schema.table. For more information, see Develop with Dataphin data source tables.ImportantThe data source code cannot be changed once configured.
Data preview on object details pages in the asset catalog and asset inventory is available only after you configure the data source code.
Currently, Flink SQL supports only MySQL, Hologres, MaxCompute, Oracle, StarRocks, Hive, SelectDB, and GaussDB (DWS) data sources.
Data source description
Enter a brief description of the data source. The description can be up to 128 characters long.
Data source configuration
Select the type of data source to configure:
If your business distinguishes between a production data source and a development data source, select production and development data source.
If your business does not distinguish between a production data source and a development data source, select production data source.
Tag
Use tags to classify the data source. To learn how to create tags, see Manage data source tags.
Configure connection parameters
If you select Production and development data source, you must configure the connection information for the production and development data source. If you select Production data source, you only need to configure the connection information for the production data source.
NoteTo achieve environment isolation and prevent development activities from impacting the production environment, configure the production and development data sources separately. However, Dataphin also allows you to use the same data source for both by providing identical parameter values.
Parameter
Description
Endpoint
Enter the Data Lake Formation endpoint. Example:
dlfnext.cn-hangzhou.aliyuncs.com.Region
The region is required for Iceberg tables.
AccessKey ID, AccessKey Secret
Enter the AccessKey ID and AccessKey Secret for authentication. To ensure that jobs run correctly, make sure the credentials have the required data permissions.
DLF data catalog
Enter the DLF data catalog.
Database name
Enter the database name under the specified catalog.
Select a default resource group. This resource group runs tasks related to the data source, such as database SQL execution, offline full-database migration, and data preview.
Click test connection to validate the settings, or click OK to save the configuration and create the Data Lake Formation data source.
When you click test connection, Dataphin tests the data source's connectivity. If you click OK directly, Dataphin automatically tests all selected clusters. You can still create the data source even if these connection tests fail.