Create a CSS datasource authentication on the DLI console to store the authentication information of the CSS security cluster to DLI. This will allow you to access to the CSS security cluster without having to configure a username and password in SQL jobs.
Create a datasource authentication for a CSS security cluster on the DLI console.
Configure CSS authentication parameters according to Table 1.
Parameter |
Description |
---|---|
Authentication Certificate |
Name of the datasource authentication information to be created.
|
Type |
Select CSS. |
Username |
Username for logging in to the security cluster. |
Password |
The password of the security cluster |
Certificate Path |
Enter the OBS path to which the security certificate is uploaded, that is, the OBS bucket address in 2. |
When creating a table, associate the table with the created datasource authentication to access the CSS cluster.
For example, when using Spark SQL to create a table for accessing the CSS cluster, configure es.certificate.name to set the datasource authentication name and then connect to the CSS security cluster.