mgsky1 edited a comment on issue #5762:
URL: 
https://github.com/apache/dolphinscheduler/issues/5762#issuecomment-877656816


   The same problem.
   OS: macOS Big Sur 11.3
   JDK: 1.8.0_241
   Intel chip
   
   registry.properties
   ```
   #registry.plugin.dir config the Registry Plugin dir.
   #registry.plugin.dir=lib/plugin/registry
   
   registry.plugin.name=zookeeper
   registry.servers=127.0.0.1:2181
   
   #maven.local.repository=/usr/local/localRepository
   
   #registry.plugin.binding config the Registry Plugin need be load when 
development and run in IDE
   
registry.plugin.binding=./dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/pom.xml
   
   ```
   
   ```
   Exception in thread "Worker-Server" 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'workerServer': Unsatisfied dependency expressed 
through field 'workerRegistryClient'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'workerRegistryClient': Invocation of init method failed; nested 
exception is java.lang.RuntimeException: Load registry Plugin Failed !
        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.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.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140)
        at 
org.apache.dolphinscheduler.server.worker.WorkerServer.main(WorkerServer.java:111)
   Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'workerRegistryClient': Invocation of init method 
failed; nested exception is java.lang.RuntimeException: Load registry Plugin 
Failed !
        at 
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:139)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:413)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1761)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
        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)
        ... 17 more
   Caused by: java.lang.RuntimeException: Load registry Plugin Failed !
        at 
org.apache.dolphinscheduler.service.registry.RegistryCenter.installRegistryPlugin(RegistryCenter.java:134)
        at 
org.apache.dolphinscheduler.service.registry.RegistryCenter.init(RegistryCenter.java:95)
        at 
org.apache.dolphinscheduler.server.worker.registry.WorkerRegistryClient.initWorkRegistry(WorkerRegistryClient.java:85)
        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.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:363)
        at 
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:307)
        at 
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
        ... 29 more
   Caused by: java.lang.RuntimeException: Error loading pom: 
/Users/huangzhiyuan/Desktop/Java/dolphinscheduler/./dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/pom.xml
        at 
io.airlift.resolver.ArtifactResolver.getMavenProject(ArtifactResolver.java:181)
        at 
io.airlift.resolver.ArtifactResolver.resolvePom(ArtifactResolver.java:131)
        at 
org.apache.dolphinscheduler.spi.plugin.DolphinPluginLoader.buildPluginClassLoaderFromPom(DolphinPluginLoader.java:132)
        at 
org.apache.dolphinscheduler.spi.plugin.DolphinPluginLoader.buildPluginClassLoader(DolphinPluginLoader.java:121)
        at 
org.apache.dolphinscheduler.spi.plugin.DolphinPluginLoader.loadPlugin(DolphinPluginLoader.java:97)
        at 
org.apache.dolphinscheduler.spi.plugin.DolphinPluginLoader.loadPlugins(DolphinPluginLoader.java:90)
        at 
org.apache.dolphinscheduler.service.registry.RegistryCenter.installRegistryPlugin(RegistryCenter.java:132)
        ... 38 more
   Caused by: org.apache.maven.project.ProjectBuildingException: 1 problem was 
encountered while building the effective model for 
org.apache.dolphinscheduler:dolphinscheduler-registry-zookeeper:1.3.6-SNAPSHOT
   [FATAL] Non-resolvable parent POM for 
org.apache.dolphinscheduler:dolphinscheduler:1.3.6-SNAPSHOT: Could not transfer 
artifact org.apache:apache:pom:21 from/to central 
(http://repo.maven.apache.org/maven2): Failed to transfer 
http://repo.maven.apache.org/maven2/org/apache/apache/21/apache-21.pom. Error 
code 501, HTTPS Required and 'parent.relativePath' points at wrong local POM @ 
org.apache.dolphinscheduler:dolphinscheduler:1.3.6-SNAPSHOT, 
/Users/huangzhiyuan/Desktop/Java/dolphinscheduler/pom.xml, line 52, column 13
    for project 
org.apache.dolphinscheduler:dolphinscheduler-registry-zookeeper:1.3.6-SNAPSHOT 
at 
/Users/huangzhiyuan/Desktop/Java/dolphinscheduler/./dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/pom.xml
        at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:149)
        at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:102)
        at 
io.airlift.resolver.ArtifactResolver.getMavenProject(ArtifactResolver.java:177)
        ... 44 more
   Caused by: org.apache.maven.model.building.ModelBuildingException: 1 problem 
was encountered while building the effective model for 
org.apache.dolphinscheduler:dolphinscheduler-registry-zookeeper:1.3.6-SNAPSHOT
   [FATAL] Non-resolvable parent POM for 
org.apache.dolphinscheduler:dolphinscheduler:1.3.6-SNAPSHOT: Could not transfer 
artifact org.apache:apache:pom:21 from/to central 
(http://repo.maven.apache.org/maven2): Failed to transfer 
http://repo.maven.apache.org/maven2/org/apache/apache/21/apache-21.pom. Error 
code 501, HTTPS Required and 'parent.relativePath' points at wrong local POM @ 
org.apache.dolphinscheduler:dolphinscheduler:1.3.6-SNAPSHOT, 
/Users/huangzhiyuan/Desktop/Java/dolphinscheduler/pom.xml, line 52, column 13
   
        at 
org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException(DefaultModelProblemCollector.java:195)
        at 
org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:841)
        at 
org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664)
        at 
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310)
        at 
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
        at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:142)
        ... 46 more
   
   ```


-- 
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