You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/10/28 05:08:28 UTC
[GitHub] [incubator-shardingsphere-example] haetao opened a new issue #189:
Create YamlDataSource failed in moudle
transaction-base-seata-raw-jdbc-example
haetao opened a new issue #189: Create YamlDataSource failed in moudle transaction-base-seata-raw-jdbc-example
URL: https://github.com/apache/incubator-shardingsphere-example/issues/189
## Question
When I run the entry class ExampleMain by using master_slave yaml file, it doesn't work well and throw Exception:
`Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'masterSlaveRule' on class: org.apache.shardingsphere.core.yaml.config.sharding.YamlRootShardingConfiguration`
then I find these in class ExampleMain:
`DataSource dataSource = YamlShardingDataSourceFactory.createDataSource(getFile(configFile));`
I change "YamlShardingDataSourceFactory" to "YamlMasterSlaveDataSourceFactory", it works well.
## Using version
incubator-shardingsphere-example-dev latest
incubator-shardingsphere-dev latest
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services