-
Notifications
You must be signed in to change notification settings - Fork 5k
[Bug] [dolphin-api] api start failed in k8s cause org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinScheduler failed #6998
Copy link
Copy link
Closed
Labels
Waiting for replyWaiting for replyWaiting for replybugSomething isn't workingSomething isn't working
Description
Search before asking
- I had searched in the issues and found no similar issues.
What happened
7:15:14.812 [main] ERROR org.apache.dolphinscheduler.dao.datasource.ConnectionFactory - Initializing ConnectionFactory error
java.lang.IllegalArgumentException: Parameter 'dataSource' must not be null
at org.apache.ibatis.mapping.Environment.<init>(Environment.java:39)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.getSqlSessionFactory(ConnectionFactory.java:92)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:57)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:43)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory$ConnectionFactoryHolder.<clinit>(ConnectionFactory.java:48)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.getInstance(ConnectionFactory.java:52)
at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.getDataSource(UpgradeDao.java:82)
at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.<clinit>(UpgradeDao.java:78)
at org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.initUpgradeDao(DolphinSchedulerManager.java:39)
at org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.<init>(DolphinSchedulerManager.java:59)
at org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinScheduler.main(CreateDolphinScheduler.java:37)
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.getInstance(ConnectionFactory.java:52)
at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.getDataSource(UpgradeDao.java:82)
at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.<clinit>(UpgradeDao.java:78)
at org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.initUpgradeDao(DolphinSchedulerManager.java:39)
at org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.<init>(DolphinSchedulerManager.java:59)
at org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinScheduler.main(CreateDolphinScheduler.java:37)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Parameter 'dataSource' must not be null
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:61)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:43)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory$ConnectionFactoryHolder.<clinit>(ConnectionFactory.java:48)
... 6 more
Caused by: java.lang.IllegalArgumentException: Parameter 'dataSource' must not be null
at org.apache.ibatis.mapping.Environment.<init>(Environment.java:39)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.getSqlSessionFactory(ConnectionFactory.java:92)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:57)
... 8 moreWhat you expected to happen
api start normally
How to reproduce
7:15:14.812 [main] ERROR org.apache.dolphinscheduler.dao.datasource.ConnectionFactory - Initializing ConnectionFactory error
java.lang.IllegalArgumentException: Parameter 'dataSource' must not be null
at org.apache.ibatis.mapping.Environment.<init>(Environment.java:39)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.getSqlSessionFactory(ConnectionFactory.java:92)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:57)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:43)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory$ConnectionFactoryHolder.<clinit>(ConnectionFactory.java:48)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.getInstance(ConnectionFactory.java:52)
at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.getDataSource(UpgradeDao.java:82)
at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.<clinit>(UpgradeDao.java:78)
at org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.initUpgradeDao(DolphinSchedulerManager.java:39)
at org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.<init>(DolphinSchedulerManager.java:59)
at org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinScheduler.main(CreateDolphinScheduler.java:37)
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.getInstance(ConnectionFactory.java:52)
at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.getDataSource(UpgradeDao.java:82)
at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.<clinit>(UpgradeDao.java:78)
at org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.initUpgradeDao(DolphinSchedulerManager.java:39)
at org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.<init>(DolphinSchedulerManager.java:59)
at org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinScheduler.main(CreateDolphinScheduler.java:37)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Parameter 'dataSource' must not be null
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:61)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:43)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory$ConnectionFactoryHolder.<clinit>(ConnectionFactory.java:48)
... 6 more
Caused by: java.lang.IllegalArgumentException: Parameter 'dataSource' must not be null
at org.apache.ibatis.mapping.Environment.<init>(Environment.java:39)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.getSqlSessionFactory(ConnectionFactory.java:92)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:57)
... 8 moreAnything else
7:15:14.812 [main] ERROR org.apache.dolphinscheduler.dao.datasource.ConnectionFactory - Initializing ConnectionFactory error
java.lang.IllegalArgumentException: Parameter 'dataSource' must not be null
at org.apache.ibatis.mapping.Environment.<init>(Environment.java:39)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.getSqlSessionFactory(ConnectionFactory.java:92)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:57)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:43)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory$ConnectionFactoryHolder.<clinit>(ConnectionFactory.java:48)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.getInstance(ConnectionFactory.java:52)
at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.getDataSource(UpgradeDao.java:82)
at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.<clinit>(UpgradeDao.java:78)
at org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.initUpgradeDao(DolphinSchedulerManager.java:39)
at org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.<init>(DolphinSchedulerManager.java:59)
at org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinScheduler.main(CreateDolphinScheduler.java:37)
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.getInstance(ConnectionFactory.java:52)
at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.getDataSource(UpgradeDao.java:82)
at org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.<clinit>(UpgradeDao.java:78)
at org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.initUpgradeDao(DolphinSchedulerManager.java:39)
at org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.<init>(DolphinSchedulerManager.java:59)
at org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinScheduler.main(CreateDolphinScheduler.java:37)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Parameter 'dataSource' must not be null
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:61)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:43)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory$ConnectionFactoryHolder.<clinit>(ConnectionFactory.java:48)
... 6 more
Caused by: java.lang.IllegalArgumentException: Parameter 'dataSource' must not be null
at org.apache.ibatis.mapping.Environment.<init>(Environment.java:39)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.getSqlSessionFactory(ConnectionFactory.java:92)
at org.apache.dolphinscheduler.dao.datasource.ConnectionFactory.<init>(ConnectionFactory.java:57)
... 8 moreVersion
dev
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Waiting for replyWaiting for replyWaiting for replybugSomething isn't workingSomething isn't working