Help Center > > Developer Guide> Developing a DLI Datasource Connection Using a Spark Job> Preparations to Connect to a CSS Security Cluster

Preparations to Connect to a CSS Security Cluster

Updated at: Mar 17, 2020 GMT+08:00

The Elasticsearch 6.5.4 provided by CSS provides the security settings. Once the function is enabled, CSS provides identity authentication, authorization, and encryption for users.

Before connecting DLI to the CSS security cluster, you need to perform certain preparations.

Initial Preparations

  1. Select CSS Elasticsearch 6.5.4 or a later cluster version, create a CSS security cluster, and download the security cluster certificate (CloudSearchService.cer).
  2. Create a datasource connection.
  3. Use the keytools tool to generate the keystore and truststore files.
    1. While generating the required files, the security certificate (CloudSearchService.cer) of the security cluster is required. Run the following commands to generate the files. Other parameters of the keytools tool can be set as required.
      keytool -genkeypair -alias certificatekey -keyalg RSA -keystore transport-keystore.jks
      keytool -list -v -keystore transport-keystore.jks
      keytool -import -alias certificatekey -file CloudSearchService.cer  -keystore truststore.jks
      keytool -list -v -keystore truststore
    2. Upload the generated keystore and truststore files to an OBS bucket.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel