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

   ### 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
   
   dolphinscheduler 3.1.9 安装部署时,master and worker 启动失败
   13:33:12.225 [Master-Server] ERROR 
org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter -
   
   ***************************
   APPLICATION FAILED TO START
   ***************************
   
   Description:
   
   The Bean Validation API is on the classpath but no implementation could be 
found
   
   Action:
   
   Add an implementation, such as Hibernate Validator, to the classpath
   
   Exception in thread "Master-Server" 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'masterServer': Unsatisfied dependency expressed 
through field 'masterRegi
   stryClient'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'masterRegistryClient': Unsatisfied dependency 
expressed through field 'failo
   verService'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'failoverService' defined in URL 
[jar:file:/data/dolphinscheduler/master-serv
   
er/libs/dolphinscheduler-master-3.1.9.jar!/org/apache/dolphinscheduler/server/master/service/FailoverService.class]:
 Unsatisfied dependency expressed through constructor parameter 0; nested 
exception is org
   .springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'masterFailoverService' defined in URL 
[jar:file:/data/dolphinscheduler/master-server/libs/dolphinscheduler-maste
   
r-3.1.9.jar!/org/apache/dolphinscheduler/server/master/service/MasterFailoverService.class]:
 Unsatisfied dependency expressed through constructor parameter 1; nested 
exception is org.springframework.boot.co
   ntext.properties.ConfigurationPropertiesBindException: Error creating bean 
with name 'masterConfig': Could not bind properties to 'MasterConfig' : 
prefix=master, ignoreInvalidFields=false, ignoreUnknownFiel
   ds=true; nested exception is javax.validation.ValidationException: Unable to 
create a Configuration, because no Bean Validation provider could be found. Add 
a provider like Hibernate Validator (RI) to your
   classpath.
           at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659)
           at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639)
           at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
           at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)
           at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
           at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
           at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734)
           at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1295)
           at 
org.apache.dolphinscheduler.server.master.MasterServer.main(MasterServer.java:79)
   Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'masterRegistryClient': Unsatisfied dependency 
expressed through field 'failoverService'; nested ex
   ception is org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'failoverService' defined in URL 
[jar:file:/data/dolphinscheduler/master-server/libs/dolphinschedul
   
er-master-3.1.9.jar!/org/apache/dolphinscheduler/server/master/service/FailoverService.class]:
 Unsatisfied dependency expressed through constructor parameter 0; nested 
exception is org.springframework.beans
   .factory.UnsatisfiedDependencyException: Error creating bean with name 
'masterFailoverService' defined in URL 
[jar:file:/data/dolphinscheduler/master-server/libs/dolphinscheduler-master-3.1.9.jar!/org/apach
   e/dolphinscheduler/server/master/service/MasterFailoverService.class]: 
Unsatisfied dependency expressed through constructor parameter 1; nested 
exception is org.springframework.boot.context.properties.Confi
   gurationPropertiesBindException: Error creating bean with name 
'masterConfig': Could not bind properties to 'MasterConfig' : prefix=master, 
ignoreInvalidFields=false, ignoreUnknownFields=true; nested except
   ion is javax.validation.ValidationException: Unable to create a 
Configuration, because no Bean Validation provider could be found. Add a 
provider like Hibernate Validator (RI) to your classpath.
           at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659)
           at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639)
           at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
           at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
           at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309)
           at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:656)
           ... 20 more
   Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'failoverService' defined in URL 
[jar:file:/data/dolphinscheduler/master-server/libs/dolphinschedul
   
er-master-3.1.9.jar!/org/apache/dolphinscheduler/server/master/service/FailoverService.class]:
 Unsatisfied dependency expressed through constructor parameter 0; nested 
exception is org.springframework.beans
   .factory.UnsatisfiedDependencyException: Error creating bean with name 
'masterFailoverService' defined in URL 
[jar:file:/data/dolphinscheduler/master-server/libs/dolphinscheduler-master-3.1.9.jar!/org/apach
   e/dolphinscheduler/server/master/service/MasterFailoverService.class]: 
Unsatisfied dependency expressed through constructor parameter 1; nested 
exception is org.springframework.boot.context.properties.Confi
   gurationPropertiesBindException: Error creating bean with name 
'masterConfig': Could not bind properties to 'MasterConfig' : prefix=master, 
ignoreInvalidFields=false, ignoreUnknownFields=true; nested except
   ion is javax.validation.ValidationException: Unable to create a 
Configuration, because no Bean Validation provider could be found. Add a 
provider like Hibernate Validator (RI) to your classpath.
           at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
           at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
           at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309)
           at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:656)
           ... 34 more
   Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'masterFailoverService' defined in URL 
[jar:file:/data/dolphinscheduler/master-server/libs/dolphins
   
cheduler-master-3.1.9.jar!/org/apache/dolphinscheduler/server/master/service/MasterFailoverService.class]:
 Unsatisfied dependency expressed through constructor parameter 1; nested 
exception is org.springfra
   mework.boot.context.properties.ConfigurationPropertiesBindException: Error 
creating bean with name 'masterConfig': Could not bind properties to 
'MasterConfig' : prefix=master, ignoreInvalidFields=false, ign
   oreUnknownFields=true; nested exception is 
javax.validation.ValidationException: Unable to create a Configuration, because 
no Bean Validation provider could be found. Add a provider like Hibernate 
Validator
    (RI) to your classpath.
           at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
           at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
           at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309)
           at 
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
           at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
           ... 47 more
   Caused by: 
org.springframework.boot.context.properties.ConfigurationPropertiesBindException:
 Error creating bean with name 'masterConfig': Could not bind properties to 
'MasterConfig' : prefix=master, ignore
   InvalidFields=false, ignoreUnknownFields=true; nested exception is 
javax.validation.ValidationException: Unable to create a Configuration, because 
no Bean Validation provider could be found. Add a provider
   like Hibernate Validator (RI) to your classpath.
           at 
org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.bind(ConfigurationPropertiesBindingPostProcessor.java:92)
           at 
org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:78)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
           at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309)
           at 
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
           at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
           ... 61 more
   Caused by: javax.validation.ValidationException: Unable to create a 
Configuration, because no Bean Validation provider could be found. Add a 
provider like Hibernate Validator (RI) to your classpath.
           at 
javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:271)
           at 
org.springframework.boot.validation.MessageInterpolatorFactory.getMessageInterpolator(MessageInterpolatorFactory.java:79)
           at 
org.springframework.boot.validation.MessageInterpolatorFactory.getObject(MessageInterpolatorFactory.java:70)
           at 
org.springframework.boot.context.properties.ConfigurationPropertiesJsr303Validator$Delegate.<init>(ConfigurationPropertiesJsr303Validator.java:68)
           at 
org.springframework.boot.context.properties.ConfigurationPropertiesJsr303Validator.<init>(ConfigurationPropertiesJsr303Validator.java:41)
           at 
org.springframework.boot.context.properties.ConfigurationPropertiesBinder.getJsr303Validator(ConfigurationPropertiesBinder.java:155)
           at 
org.springframework.boot.context.properties.ConfigurationPropertiesBinder.getValidators(ConfigurationPropertiesBinder.java:145)
           at 
org.springframework.boot.context.properties.ConfigurationPropertiesBinder.getBindHandler(ConfigurationPropertiesBinder.java:113)
           at 
org.springframework.boot.context.properties.ConfigurationPropertiesBinder.bind(ConfigurationPropertiesBinder.java:94)
           at 
org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.bind(ConfigurationPropertiesBindingPostProcessor.java:89)
           ... 75 more
   
   
   ### What you expected to happen
   
   dolphinscheduler 3.1.9 集群模式安装部署时,无法启动 master 和worker , 相同的安装步骤在其它节点安装时,启动正常;
   
   ### How to reproduce
   
   排查mysql 和zookeeper 影响,经反复确认后,mysql 和zookeeper 正常;
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.1.x
   
   ### 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