<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of Sharding-Jdbc do you using?</h3>
<p dir="auto">demo:sharding-jdbc-orchestration-etcd-yaml-example：master分支2.0.0</p>
<p dir="auto">sharding-jdbc-core:2.0.1</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">使用etcd做编排治理，实现数据源、表与分片及读写分离策略的动态切换</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">启动失败：</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Exception in thread &quot;main&quot; java.lang.NullPointerException
	at io.shardingjdbc.orchestration.api.OrchestrationShardingDataSourceFactory.createDataSource(OrchestrationShardingDataSourceFactory.java:77)
	at io.shardingjdbc.example.orchestration.yaml.OrchestrationEtcdYamlShardingMain.main(OrchestrationEtcdYamlShardingMain.java:40)
"><pre class="notranslate"><span class="pl-smi">Exception</span> <span class="pl-s1">in</span> <span class="pl-s1">thread</span> <span class="pl-s">"main"</span> <span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">NullPointerException</span>
	<span class="pl-s1">at</span> <span class="pl-s1">io</span>.<span class="pl-s1">shardingjdbc</span>.<span class="pl-s1">orchestration</span>.<span class="pl-s1">api</span>.<span class="pl-s1">OrchestrationShardingDataSourceFactory</span>.<span class="pl-en">createDataSource</span>(<span class="pl-smi">OrchestrationShardingDataSourceFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">77</span>)
	<span class="pl-smi">at</span> <span class="pl-s1">io</span>.<span class="pl-s1">shardingjdbc</span>.<span class="pl-s1">example</span>.<span class="pl-s1">orchestration</span>.<span class="pl-s1">yaml</span>.<span class="pl-s1">OrchestrationEtcdYamlShardingMain</span>.<span class="pl-s1">main</span>(<span class="pl-smi">OrchestrationEtcdYamlShardingMain</span>.<span class="pl-smi">java</span>:<span class="pl-c1">40</span>)</pre></div>
<h3 dir="auto">Steps to reproduce the behavior</h3>
<p dir="auto">1.按照<a href="http://shardingjdbc.io/docs/02-guide/orchestration/" rel="nofollow">文档</a>把配置信息写入到etcd(使用etcd4jTest);<br>
2.把<code class="notranslate">yamlShardingDatabaseAndTable.yaml</code>中的信息除orchestration节点外，全部删除；<br>
3.执行<code class="notranslate">OrchestrationEtcdYamlShardingMain.java</code></p>
<h3 dir="auto">Please provide the reproduce example codes (such as github link) if possible.</h3>
<p dir="auto"><a href="">sharding-jdbc-orchestration-etcd-yaml-example</a></p>
<p dir="auto"><a href="https://github.com/mzanthem/etcd4jTest">etc4jTest</a></p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">5.1.0  and   5.1.2</p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">ShardingSphere-Proxy</p>
<p dir="auto">It is a  same issue with  <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="492270330" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/3024" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/3024/hovercard" href="https://github.com/apache/shardingsphere/issues/3024">#3024</a><br>
i had the same problem with version 5.1.2,it may not have been resolved。</p>
<p dir="auto">I compared Logic SQL and Actual SQL and found that they are not the same。</p>