You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/05/20 09:12:35 UTC

[GitHub] [dolphinscheduler] kezhenxu94 commented on issue #10103: [Bug] [deploy on k8s] SPRING_DATASOURCE_DRIVER_CLASS_NAME need add in templates/_helpers.tpl

kezhenxu94 commented on issue #10103:
URL: https://github.com/apache/dolphinscheduler/issues/10103#issuecomment-1132668573

   > And I have another question about running the Docker image.
   > 
   > ```
   > $ docker run -d --name dolphinscheduler-tools \
   >     -e DATABASE="postgresql" \
   >     # Use "com.mysql.cj.jdbc.driver" if you use MySQL
   >     -e SPRING_DATASOURCE_DRIVER_CLASS_NAME="org.postgresql.Driver" \
   >     -e SPRING_DATASOURCE_URL="jdbc:postgresql://localhost:5432/<DATABASE>" \
   >     -e SPRING_DATASOURCE_USERNAME="<USER>" \
   >     -e SPRING_DATASOURCE_PASSWORD="<PASSWORD>" \
   >     --net host \
   >     apache/dolphinscheduler-tools:"${DOLPHINSCHEDULER_VERSION}" tools/bin/upgrade-schema.sh 
   > ```
   > 
   > Do we need to config `-e SPRING_DATASOURCE_DRIVER_CLASS_NAME="org.postgresql.Driver" \` ?
   
   `SPRING_DATASOURCE_DRIVER_CLASS_NAME` shouldn't be specified, `DATABASE` is aimed at configuring the database related info, when users set `DATABASE=postgresql` the driver should be set automatically
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org