apache / doris-spark-connector

Spark Connector for Apache Doris
https://doris.apache.org/
Apache License 2.0
79 stars 92 forks source link

[feature] support fe https request #189

Closed gnehil closed 8 months ago

gnehil commented 8 months ago

Proposed changes

Issue Number: #124

Problem Summary:

  1. Support FE https request. You can set the following options to enable https:

    • Set doris.enable.https to true
    • Set doris.https.key-store-path to the file path of a valid ssl certificate
    • Set doris.https.key-store-type to the certificate type, the default value is JKS
    • Set doris.https.key-store-password to certificate file password Note:
      • Since BE does not currently support https, stream load through https only supports redirection by FE (setting the doris.sink.auto-redirect option to true, which is the default value)
  2. Refactor RestService

Checklist(Required)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...