huangwenjun30000 opened a new issue, #10097:
URL: https://github.com/apache/dolphinscheduler/issues/10097

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   I use cluster deployment.Install dolphinscheduler-2.0.5 and execute 
script/create-dolphinscheduler.sh. an error is reported after execution: 
application run failed.
   
   2022-05-18 15:20:56.541  INFO 187064 --- [           main] 
o.a.d.d.u.shell.CreateDolphinScheduler   : Starting CreateDolphinScheduler 
v2.0.5 using Java 1.8.0_191 on 172.20.25.13 with PID 187064 
(/opt/module/dolphinscheduler/lib/dolphinscheduler-dao-2.0.5.jar started by 
dolphinscheduler in /opt/module/dolphinscheduler)
   2022-05-18 15:20:56.544  INFO 187064 --- [           main] 
o.a.d.d.u.shell.CreateDolphinScheduler   : The following profiles are active: 
shell-create,shell-cli,default,h2
   2022-05-18 15:20:59.012  INFO 187064 --- [           main] 
ru.yandex.clickhouse.ClickHouseDriver    : Driver registered
   2022-05-18 15:21:01.003  INFO 187064 --- [           main] 
com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
   2022-05-18 15:21:01.430  INFO 187064 --- [           main] 
com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
    _ _   |_  _ _|_. ___ _ |    _ 
   | | |\/|_)(_| | |_\  |_)||_|_\ 
        /               |         
                           3.2.0 
   2022-05-18 15:21:02.691  WARN 187064 --- [           main] 
s.c.a.AnnotationConfigApplicationContext : Exception encountered during context 
initialization - cancelling refresh attempt: 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'createDolphinScheduler.CreateRunner' defined in URL 
[jar:file:/opt/module/dolphinscheduler/lib/dolphinscheduler-dao-2.0.5.jar!/org/apache/dolphinscheduler/dao/upgrade/shell/CreateDolphinScheduler$CreateRunner.class]:
 Unsatisfied dependency expressed through constructor parameter 0; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'dolphinSchedulerManager' defined in URL 
[jar:file:/opt/module/dolphinscheduler/lib/dolphinscheduler-dao-2.0.5.jar!/org/apache/dolphinscheduler/dao/upgrade/DolphinSchedulerManager.class]:
 Bean instantiation via constructor failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantia
 te [org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager]: 
Constructor threw exception; nested exception is java.lang.RuntimeException: 
Cannot find UpgradeDao implementation for db type: H2
   2022-05-18 15:21:02.692  INFO 187064 --- [           main] 
com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
   2022-05-18 15:21:02.696  INFO 187064 --- [           main] 
com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.
   2022-05-18 15:21:02.705  INFO 187064 --- [           main] 
ConditionEvaluationReportLoggingListener : 
   
   Error starting ApplicationContext. To display the conditions report re-run 
your application with 'debug' enabled.
   2022-05-18 15:21:02.727 ERROR 187064 --- [           main] 
o.s.boot.SpringApplication               : Application run failed
   
   org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'createDolphinScheduler.CreateRunner' defined in URL 
[jar:file:/opt/module/dolphinscheduler/lib/dolphinscheduler-dao-2.0.5.jar!/org/apache/dolphinscheduler/dao/upgrade/shell/CreateDolphinScheduler$CreateRunner.class]:
 Unsatisfied dependency expressed through constructor parameter 0; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'dolphinSchedulerManager' defined in URL 
[jar:file:/opt/module/dolphinscheduler/lib/dolphinscheduler-dao-2.0.5.jar!/org/apache/dolphinscheduler/dao/upgrade/DolphinSchedulerManager.class]:
 Bean instantiation via constructor failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager]: Constructor 
threw exception; nested exception is java.lang.RuntimeException: Cannot find 
UpgradeDao implementation
  for db type: H2
        at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
 ~[spring-context-5.3.12.jar:5.3.12]
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
 ~[spring-context-5.3.12.jar:5.3.12]
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) 
~[spring-boot-2.5.6.jar:2.5.6]
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)
 ~[spring-boot-2.5.6.jar:2.5.6]
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:338) 
~[spring-boot-2.5.6.jar:2.5.6]
        at 
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143)
 [spring-boot-2.5.6.jar:2.5.6]
        at 
org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinScheduler.main(CreateDolphinScheduler.java:40)
 [dolphinscheduler-dao-2.0.5.jar:2.0.5]
   Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'dolphinSchedulerManager' defined in URL 
[jar:file:/opt/module/dolphinscheduler/lib/dolphinscheduler-dao-2.0.5.jar!/org/apache/dolphinscheduler/dao/upgrade/DolphinSchedulerManager.class]:
 Bean instantiation via constructor failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager]: Constructor 
threw exception; nested exception is java.lang.RuntimeException: Cannot find 
UpgradeDao implementation for db type: H2
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:315)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:296)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
 ~[spring-beans-5.3.12.jar:5.3.12]
        ... 17 common frames omitted
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager]: 
Constructor threw exception; nested exception is java.lang.RuntimeException: 
Cannot find UpgradeDao implementation for db type: H2
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224) 
~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117)
 ~[spring-beans-5.3.12.jar:5.3.12]
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:311)
 ~[spring-beans-5.3.12.jar:5.3.12]
        ... 31 common frames omitted
   Caused by: java.lang.RuntimeException: Cannot find UpgradeDao implementation 
for db type: H2
        at 
org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.lambda$new$1(DolphinSchedulerManager.java:43)
 ~[dolphinscheduler-dao-2.0.5.jar:2.0.5]
        at java.util.Optional.orElseThrow(Optional.java:290) ~[na:1.8.0_191]
        at 
org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.<init>(DolphinSchedulerManager.java:43)
 ~[dolphinscheduler-dao-2.0.5.jar:2.0.5]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method) ~[na:1.8.0_191]
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 ~[na:1.8.0_191]
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 ~[na:1.8.0_191]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
~[na:1.8.0_191]
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211) 
~[spring-beans-5.3.12.jar:5.3.12]
        ... 33 common frames omitted
   
   ### What you expected to happen
   
   I want to solve this problem. At the same time, it can be used normally. 
   
   ### How to reproduce
   
   Thank you.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.5
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to