You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/10/24 10:42:54 UTC

[GitHub] [dolphinscheduler] luckyboy2226 opened a new issue, #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid

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

   ### 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
   
   After the root directory "/dolphinscheduler" of zookeeper is occupied by the old ds cluster, try to modify the zkRoot parameter in the bin/env/install_env.sh file in the configuration file as: zkRoot=${zkRoot:-"/dolphinschedulerV310"}, but, Service registration failed.
   
   *But after I replaced the zookeeper server, the ds cluster can run normally*
   
   ### What you expected to happen
   
   I want dolphinschedulerV310 directory to appear in zookeeper's directory, but not
   
   ### How to reproduce
   
   update bin/env/install_env.sh , zkRoot config
   
   ### Anything else
   
   This is error log:
   
   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.UnsatisfiedDependencyException: Error creating bean with name 'workerRegistryClient': Unsatisfied dependency expressed through field 'registryClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryClient': Invocation of init method failed; nested exception is org.apache.dolphinscheduler.registry.api.RegistryException: Failed to put registry key: /nodes/master
           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.worker.WorkerServer.main(WorkerServer.java:109)
   Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'workerRegistryClient': Unsatisfied dependency expressed through field 'registryClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryClient': Invocation of init method failed; nested exception is org.apache.dolphinscheduler.registry.api.RegistryException: Failed to put registry key: /nodes/master
           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.BeanCreationException: Error creating bean with name 'registryClient': Invocation of init method failed; nested exception is org.apache.dolphinscheduler.registry.api.RegistryException: Failed to put registry key: /nodes/master
           at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160)
           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.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:656)
           ... 34 more
   Caused by: org.apache.dolphinscheduler.registry.api.RegistryException: Failed to put registry key: /nodes/master
           at org.apache.dolphinscheduler.plugin.registry.zookeeper.ZookeeperRegistry.put(ZookeeperRegistry.java:186)
           at org.apache.dolphinscheduler.service.registry.RegistryClient.initNodes(RegistryClient.java:258)
           at org.apache.dolphinscheduler.service.registry.RegistryClient.afterConstruct(RegistryClient.java:73)
           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:389)
           at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333)
           at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157)
           ... 46 more
   Caused by: org.apache.zookeeper.KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented for /dolphinscheduler/nodes/master
           at org.apache.zookeeper.KeeperException.create(KeeperException.java:106)
           at org.apache.zookeeper.KeeperException.create(KeeperException.java:54)
           at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1450)
           at org.apache.curator.framework.imps.CreateBuilderImpl$18.call(CreateBuilderImpl.java:1216)
           at org.apache.curator.framework.imps.CreateBuilderImpl$18.call(CreateBuilderImpl.java:1193)
           at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:93)
           at org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:1190)
           at org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:605)
           at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:595)
           at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:48)
           at org.apache.dolphinscheduler.plugin.registry.zookeeper.ZookeeperRegistry.put(ZookeeperRegistry.java:184)
           ... 55 more
   
   ### Version
   
   3.1.x
   
   ### Are you willing to submit PR?
   
   - [ ] 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: commits-unsubscribe@dolphinscheduler.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] SbloodyS commented on issue #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid

Posted by GitBox <gi...@apache.org>.
SbloodyS commented on issue #12516:
URL: https://github.com/apache/dolphinscheduler/issues/12516#issuecomment-1294880725

   > @SbloodyS, i think that we can close this issue. thx
   
   Sure. Thanks.


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #12516:
URL: https://github.com/apache/dolphinscheduler/issues/12516#issuecomment-1288865615

   Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
   * In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
   * If you haven't received a reply for a long time, you can [join our slack](https://s.apache.org/dolphinscheduler-slack) and send your question to channel `#troubleshooting`


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] DarkAssassinator commented on issue #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid

Posted by GitBox <gi...@apache.org>.
DarkAssassinator commented on issue #12516:
URL: https://github.com/apache/dolphinscheduler/issues/12516#issuecomment-1291918313

   hi @luckyboy2226, please check the following root causes.
   **1. Why DS will throw this exception?**
   A: Becuase you're using the wrong combination of `Zookpeeper` in combination with `Curator`. And ZooKeeper 3.4.x is now at EOL. And the latest versions of Curator have removed support for it. So i suggest that u should update your zk version or you should pin to version 4.2.x of Curator. Curator 4.2.x supports ZooKeeper 3.4.x ensembles in a soft-compatibility mode. For more details, please refer to [ZooKeeper Version 3.4.x Compatibility](https://curator.apache.org/zk-compatibility-34.html)
   > DS Curator version: 5.3.0
   > Your ZK version: 3.4.6
   
   **2. Why zookeeper rootpath still is `dolphinscheduler` after u modify the ${zkRoot:-"/dolphinschedulerV310"} ?**
   A: becasue u should change the `registry.zookeeper.namespace` in yml. DS did not use  `${zkRoot}` to create the namspace.
   ![image](https://user-images.githubusercontent.com/20518339/198019430-44302fc2-e190-48f7-acd5-7a052427029f.png)
   
   


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] luckyboy2226 commented on issue #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid

Posted by GitBox <gi...@apache.org>.
luckyboy2226 commented on issue #12516:
URL: https://github.com/apache/dolphinscheduler/issues/12516#issuecomment-1294297612

   > 
   I understand, thanks for your professional reply
   


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] DarkAssassinator commented on issue #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid

Posted by GitBox <gi...@apache.org>.
DarkAssassinator commented on issue #12516:
URL: https://github.com/apache/dolphinscheduler/issues/12516#issuecomment-1291282679

   hi @luckyboy2226, may i know your zk version?


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] SbloodyS closed issue #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid

Posted by GitBox <gi...@apache.org>.
SbloodyS closed issue #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid
URL: https://github.com/apache/dolphinscheduler/issues/12516


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] DarkAssassinator commented on issue #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid

Posted by GitBox <gi...@apache.org>.
DarkAssassinator commented on issue #12516:
URL: https://github.com/apache/dolphinscheduler/issues/12516#issuecomment-1291655304

   Ok, i will check this case


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] luckyboy2226 commented on issue #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid

Posted by GitBox <gi...@apache.org>.
luckyboy2226 commented on issue #12516:
URL: https://github.com/apache/dolphinscheduler/issues/12516#issuecomment-1291335288

   > hi @luckyboy2226, may i know your zk version?
   
   3.4.6


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] luckyboy2226 commented on issue #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid

Posted by GitBox <gi...@apache.org>.
luckyboy2226 commented on issue #12516:
URL: https://github.com/apache/dolphinscheduler/issues/12516#issuecomment-1291354341

   > hi @luckyboy2226, may i know your zk version?
   
   I tried to build a new zk cluster, and install the dolphinscheduler cluster with the configuration of zkRoot=${zkRoot:-"/dolphinschedulerV310"}, but when viewing the directory of the zk service, although the ds cluster can run normally, but viewing the zk directory , the displayed directory name is "dolphinscheduler" (as shown below)
   
   <img width="572" alt="image" src="https://user-images.githubusercontent.com/76574952/197913255-7b830542-2bf0-49de-b1b3-910a5d4acb93.png">
   
   Judging from this, the cause of the error may be that the directory is occupied by the old ds cluster, I hope to help you
   
   


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] DarkAssassinator commented on issue #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid

Posted by GitBox <gi...@apache.org>.
DarkAssassinator commented on issue #12516:
URL: https://github.com/apache/dolphinscheduler/issues/12516#issuecomment-1294875423

   @SbloodyS, i think that we can close this issue. thx


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] DarkAssassinator commented on issue #12516: [Bug] [Config] The rootPath for modifying the registration of zookeeper by dolphinescheduler is invalid

Posted by GitBox <gi...@apache.org>.
DarkAssassinator commented on issue #12516:
URL: https://github.com/apache/dolphinscheduler/issues/12516#issuecomment-1294875085

   > > 
   > 
   > I understand, thanks for your professional reply
   
   you are welcome


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org