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/06/13 09:22:37 UTC
[GitHub] [dolphinscheduler] liqingwang commented on pull request #10399: [Bug][Tools] Add datasource url for mysql profile in tools application.yaml
liqingwang commented on PR #10399:
URL: https://github.com/apache/dolphinscheduler/pull/10399#issuecomment-1153683348
`export DATABASE=${DATABASE:-h2}`
This field DATABASE is the key to letting the Spring choose the active profile.
And the active profile will choose the DB `driver-class-name` automatically.
`dolphinscheduler-standalone-server/src/main/bin/start.sh` miss this line.
So you seted the MySQL URL and other information, but the DB `driver-class-name` is still PostgreSQL, So you can see the error is `Caused by: java.lang.RuntimeException: Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, jdbc:postgresql://127.0.0.1:5432/dolphinscheduler`
And the more detailed information about why we don't need to define URL in YAML file, you can see https://github.com/apache/dolphinscheduler/issues/10103#issuecomment-1131238019
--
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