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 2021/04/26 07:40:27 UTC

[GitHub] [shardingsphere] hanxu00920 opened a new issue #10197: use orchestration for springboot can't work

hanxu00920 opened a new issue #10197:
URL: https://github.com/apache/shardingsphere/issues/10197


   ##maven dependencies:
   <dependency>
   	<groupId>org.apache.shardingsphere</groupId>
   	<artifactId>sharding-jdbc-orchestration-spring-boot-starter</artifactId>
   	<version>${shardingsphere.version}</version>
   </dependency>
   
   <dependency>
   	<groupId>org.apache.shardingsphere</groupId>
   	<artifactId>sharding-orchestration-center-zookeeper-curator</artifactId>
   	<version>${shardingsphere.version}</version>
   </dependency>
   
   ##springboot version:
   2.0.3.RELEASE
   
   ##shadingsphere version:
   4.1.1
   
   ##spring applaction.properties:
   spring.shardingsphere.datasource.names=ds0,ds1
   
   spring.shardingsphere.datasource.ds0.type=com.zaxxer.hikari.HikariDataSource
   spring.shardingsphere.datasource.ds0.driver-class-name=org.postgresql.Driver
   spring.shardingsphere.datasource.ds0.jdbc-url=jdbc:postgresql://hxvm1:5432/postgres
   spring.shardingsphere.datasource.ds0.username=postgres
   spring.shardingsphere.datasource.ds0.password=
   
   spring.shardingsphere.datasource.ds1.type=com.zaxxer.hikari.HikariDataSource
   spring.shardingsphere.datasource.ds1.driver-class-name=org.postgresql.Driver
   spring.shardingsphere.datasource.ds1.jdbc-url=jdbc:postgresql://hxvm2:5432/postgres
   spring.shardingsphere.datasource.ds1.username=postgres
   spring.shardingsphere.datasource.ds1.password=
   
   spring.shardingsphere.sharding.tables.t_order.actual-data-nodes=ds$->{0..1}.cd_order_info
   spring.shardingsphere.sharding.tables.cd_order_info.database-strategy.standard.sharding-column=ordernum
   spring.shardingsphere.sharding.tables.cd_order_info.database-strategy.standard.precise-algorithm-class-name=com.post.trade.shading.OrderNumAlgorithm
   spring.shardingsphere.sharding.tables.cd_order_info.key-generator.column=order_id
   spring.shardingsphere.sharding.tables.cd_order_info.key-generator.type=SNOWFLAKE
   
   spring.shardingsphere.sharding.tables.cd_trans_serial_info.actual-data-nodes=ds$->{0..1}.cd_trans_serial_info
   
   spring.shardingsphere.sharding.tables.cd_trans_serial_info.database-strategy.standard.sharding-column=ordernum
   spring.shardingsphere.sharding.tables.cd_trans_serial_info.database-strategy.standard.precise-algorithm-class-name=com.post.trade.shading.OrderNumAlgorithm
   spring.shardingsphere.sharding.tables.cd_trans_serial_info.key-generator.column=serial_id
   spring.shardingsphere.sharding.tables.cd_trans_serial_info.key-generator.type=SNOWFLAKE
   
   spring.shardingsphere.props.sql.show=true
   
   spring.shardingsphere.orchestration.name=spring_boot_ds_sharding
   spring.shardingsphere.orchestration.overwrite=true
   spring.shardingsphere.orchestration.registry.type=zookeeper
   spring.shardingsphere.orchestration.registry.namespace=orchestration-spring-boot-sharding-test
   spring.shardingsphere.orchestration.registry.server-lists=localhost:2181
   
   ##springboot run failed log
   ***************************
   APPLICATION FAILED TO START
   ***************************
   
   Description:
   
   Failed to bind properties under 'spring.shardingsphere.orchestration.name' to org.apache.shardingsphere.orchestration.center.yaml.config.YamlCenterRepositoryConfiguration:
   
       Property: spring.shardingsphere.orchestration.name
       Value: spring_boot_ds_sharding
       Origin: class path resource [application-dev.properties]:53:42
       Reason: No converter found capable of converting from type [java.lang.String] to type [org.apache.shardingsphere.orchestration.center.yaml.config.YamlCenterRepositoryConfiguration]
   
   Action:
   
   Update your application's configuration
   
   ----------------------------------------
   
   I read document, can't explain why the error.
   problem with the version using?


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



[GitHub] [shardingsphere] hanxu00920 commented on issue #10197: use orchestration for springboot can't work

Posted by GitBox <gi...@apache.org>.
hanxu00920 commented on issue #10197:
URL: https://github.com/apache/shardingsphere/issues/10197#issuecomment-828104265


   somebody can help?
   I really need your help please.


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



[GitHub] [shardingsphere] hanxu00920 closed issue #10197: use orchestration for springboot can't work

Posted by GitBox <gi...@apache.org>.
hanxu00920 closed issue #10197:
URL: https://github.com/apache/shardingsphere/issues/10197


   


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