apache / dolphinscheduler

Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
https://dolphinscheduler.apache.org/
Apache License 2.0
12.78k stars 4.59k forks source link

[Question] Master can not be started #5968

Closed jon-qj closed 2 years ago

jon-qj commented 3 years ago

For better global communication, Please describe it in English. If you feel the description in English is not clear, then you can append description in Chinese(just for Mandarin(CN)), thx! Describe the question

When I set the parameter registry.servers="lcoalhost:2181", Master can be started. However it cann't when I set the romote server address. And I find out that Apache Curator Framework sets ENABLE_CLIENT_SASL_KEY to be the default value 'true'. So this is a switch to disable SASL completely.

Which version of DolphinScheduler: -[dev]

Additional context related #5792

Requirement or improvement

a.the zookeeper version is update to 3.5.9/3.6.3 registry.properties修改远程zookeeper集群地址 registry.servers=192.168.242.40:2181,192.168.242.40:2182,192.168.242.40:2183

b.add code: 1、CuratorFramework client = CuratorFrameworkFactory.builder() 2、 .zookeeperFactory(new DefaultZookeeperFactory()) 3、 .connectString(CONNECT_ADDR) 4、 .connectionTimeoutMs(CONNECTION_TIMEOUT) 5、 .retryPolicy(retryPolicy) 6、 .build(); client.start(); boolean state = client.blockUntilConnected(600, MILLISECONDS) //if delete line 2,state is false System.out.println(state);//true

class DefaultZookeeperFactory implements ZookeeperFactory{ @Override public ZooKeeper newZooKeeper(String s, int i, Watcher watcher, boolean b) throws Exception { ZKClientConfig config = new ZKClientConfig(); config.setProperty(ZKClientConfig.ENABLE_CLIENT_SASL_KEY,"false"); return new ZooKeeper(s,i,watcher,b,config); } }

github-actions[bot] commented 3 years ago

Hi:

jon-qj commented 3 years ago

@CalvinKirs

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] commented 2 years ago

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.