yang227 opened a new issue #6844:
URL: https://github.com/apache/dolphinscheduler/issues/6844


   ### 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
   
   use sh install.sh erro
   
   ### What you expected to happen
   
   [ERROR] 2021-11-14 23:14:51.156 
com.alibaba.druid.pool.DruidDataSource:[2787] - create connection SQLException, 
url: 
jdbc:mysql://192.168.202.101:3306/dolphinscheduler?characterEncoding=UTF-8&allowMultiQueries=true,
 errorCode 1045, state 28000
   java.sql.SQLException: Access denied for user 
'dolphinScheduler'@'hadoop101.test.com' (using password: YES)
           at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
           at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3933)
           at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3869)
           at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:864)
           at 
com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1707)
           at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1217)
           at 
com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2189)
           at 
com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2220)
           at 
com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2015)
           at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:768)
           at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
           at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
           at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
           at com.mysql.jdbc.Util.handleNewInstance(Util.java:403)
           at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:385)
           at 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:323)
           at 
com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1652)
           at 
com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1718)
           at 
com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2785)
   [INFO] 2021-11-14 23:14:51.161 
org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener:[136]
 - 
   
   Error starting ApplicationContext. To display the conditions report re-run 
your application with 'debug' enabled.
   [ERROR] 2021-11-14 23:14:51.165 
org.springframework.boot.SpringApplication:[823] - Application run failed
   org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'pluginDao': Unsatisfied dependency expressed through 
field 'pluginDefineMapper'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'pluginDefineMapper' defined in URL 
[jar:file:/opt/dolphinscheduler/lib/dolphinscheduler-dao-2.0.0-alpha.jar!/org/apache/dolphinscheduler/dao/mapper/PluginDefineMapper.class]:
 Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'sqlSessionFactory' defined in class path 
resource 
[org/apache/dolphinscheduler/dao/datasource/SpringConnectionFactory.class]: 
Bean instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSession
 Factory' threw exception; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dataSource' defined in class path resource 
[org/apache/dolphinscheduler/dao/datasource/SpringConnectionFactory.class]: 
Bean instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[com.alibaba.druid.pool.DruidDataSource]: Factory method 'dataSource' threw 
exception; nested exception is java.sql.SQLException: Access denied for user 
'dolphinScheduler'@'hadoop101.test.com' (using password: YES)
           at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:598)
           at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
           at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:376)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1402)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:591)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:514)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:321)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:319)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866)
           at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
           at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
           at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)
           at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)
           at 
org.apache.dolphinscheduler.api.ApiApplicationServer.main(ApiApplicationServer.java:34)
   Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'pluginDefineMapper' defined in URL 
[jar:file:/opt/dolphinscheduler/lib/dolphinscheduler-dao-2.0.0-alpha.jar!/org/apache/dolphinscheduler/dao/mapper/PluginDefineMapper.class]:
 Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'sqlSessionFactory' defined in class path 
resource 
[org/apache/dolphinscheduler/dao/datasource/SpringConnectionFactory.class]: 
Bean instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.ibatis.session.SqlSessionFactory]: Factory method 
'sqlSessionFactory' threw exception; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dataSource' defined in class path resource [org/apach
 e/dolphinscheduler/dao/datasource/SpringConnectionFactory.class]: Bean 
instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[com.alibaba.druid.pool.DruidDataSource]: Factory method 'dataSource' threw 
exception; nested exception is java.sql.SQLException: Access denied for user 
'dolphinScheduler'@'hadoop101.test.com' (using password: YES)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1506)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1386)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:591)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:514)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:321)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:319)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
           at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1276)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1196)
           at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:595)
           ... 19 common frames omitted
   Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'sqlSessionFactory' defined in class path resource 
[org/apache/dolphinscheduler/dao/datasource/SpringConnectionFactory.class]: 
Bean instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.ibatis.session.SqlSessionFactory]: Factory method 
'sqlSessionFactory' threw exception; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dataSource' defined in class path resource 
[org/apache/dolphinscheduler/dao/datasource/SpringConnectionFactory.class]: 
Bean instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[com.alibaba.druid.pool.DruidDataSource]: Factory method 'dataSource' threw 
exception; nested exception is java.sql.SQLException: Access denied for user 
'dolphi
 nScheduler'@'hadoop101.test.com' (using password: YES)
           at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
           at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1318)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1158)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:554)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:514)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:321)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:319)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
           at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1276)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1196)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1491)
           ... 30 common frames omitted
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 
'sqlSessionFactory' threw exception; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dataSource' defined in class path resource 
[org/apache/dolphinscheduler/dao/datasource/SpringConnectionFactory.class]: 
Bean instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[com.alibaba.druid.pool.DruidDataSource]: Factory method 'dataSource' threw 
exception; nested exception is java.sql.SQLException: Access denied for user 
'dolphinScheduler'@'hadoop101.test.com' (using password: YES)
           at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
           at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
           ... 43 common frames omitted
   Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'dataSource' defined in class path resource 
[org/apache/dolphinscheduler/dao/datasource/SpringConnectionFactory.class]: 
Bean instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[com.alibaba.druid.pool.DruidDataSource]: Factory method 'dataSource' threw 
exception; nested exception is java.sql.SQLException: Access denied for user 
'dolphinScheduler'@'hadoop101.test.com' (using password: YES)
           at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
           at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1318)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1158)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:554)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:514)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:321)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:319)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
           at 
org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:394)
           at 
org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:366)
           at 
org.apache.dolphinscheduler.dao.datasource.SpringConnectionFactory$$EnhancerBySpringCGLIB$$a56a9018.dataSource(<generated>)
           at 
org.apache.dolphinscheduler.dao.datasource.SpringConnectionFactory.sqlSessionFactory(SpringConnectionFactory.java:138)
           at 
org.apache.dolphinscheduler.dao.datasource.SpringConnectionFactory$$EnhancerBySpringCGLIB$$a56a9018.CGLIB$sqlSessionFactory$0(<generated>)
           at 
org.apache.dolphinscheduler.dao.datasource.SpringConnectionFactory$$EnhancerBySpringCGLIB$$a56a9018$$FastClassBySpringCGLIB$$7c1c42c9.invoke(<generated>)
           at 
org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
           at 
org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
           at 
org.apache.dolphinscheduler.dao.datasource.SpringConnectionFactory$$EnhancerBySpringCGLIB$$a56a9018.sqlSessionFactory(<generated>)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
           ... 44 common frames omitted
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [com.alibaba.druid.pool.DruidDataSource]: Factory method 
'dataSource' threw exception; nested exception is java.sql.SQLException: Access 
denied for user 'dolphinScheduler'@'hadoop101.test.com' (using password: YES)
           at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
           at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
           ... 67 common frames omitted
   Caused by: java.sql.SQLException: Access denied for user 
'dolphinScheduler'@'hadoop101.test.com' (using password: YES)
           at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
           at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3933)
           at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3869)
           at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:864)
           at 
com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1707)
           at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1217)
           at 
com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2189)
           at 
com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2220)
           at 
com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2015)
           at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:768)
           at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
           at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
           at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
           at com.mysql.jdbc.Util.handleNewInstance(Util.java:403)
           at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:385)
           at 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:323)
           at 
com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1652)
           at 
com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1718)
           at 
com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:914)
           at 
org.apache.dolphinscheduler.dao.datasource.SpringConnectionFactory.dataSource(SpringConnectionFactory.java:108)
           at 
org.apache.dolphinscheduler.dao.datasource.SpringConnectionFactory$$EnhancerBySpringCGLIB$$a56a9018.CGLIB$dataSource$3(<generated>)
           at 
org.apache.dolphinscheduler.dao.datasource.SpringConnectionFactory$$EnhancerBySpringCGLIB$$a56a9018$$FastClassBySpringCGLIB$$7c1c42c9.invoke(<generated>)
           at 
org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
           at 
org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
           at 
org.apache.dolphinscheduler.dao.datasource.SpringConnectionFactory$$EnhancerBySpringCGLIB$$a56a9018.dataSource(<generated>)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
           ... 68 common frames omitted
   
   ### How to reproduce
   
   Normal installation official website installation
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.0-alpha
   
   ### 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