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 2022/04/12 01:54:45 UTC
[GitHub] [shardingsphere] luckleemon opened a new issue, #16751: HASH_MOD sharding-count configuration question
luckleemon opened a new issue, #16751:
URL: https://github.com/apache/shardingsphere/issues/16751
i want use the hash_mod sharding-algorithm, and have configure the sharding-count , but when i start the project
it throw the exception as the below, why?
[org/apache/shardingsphere/sharding/spring/boot/ShardingRuleSpringBootConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.shardingsphere.infra.config.RuleConfiguration]: Factory method 'shardingRuleConfiguration' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hash_mod_user': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Sharding count cannot be null.
and my config like this:
sharding-algorithms:
hash_mod_user:
type: HASH_MOD
props:
sharding-count: '2'
--
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] luckleemon commented on issue #16751: HASH_MOD sharding-count configuration question
Posted by GitBox <gi...@apache.org>.
luckleemon commented on issue #16751:
URL: https://github.com/apache/shardingsphere/issues/16751#issuecomment-1095981814
i have solved the problem, 'hash_mod_user' do not works ,because it must replace the '_' to '-', as 'hash-mod-user'
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang closed issue #16751: HASH_MOD sharding-count configuration question
Posted by GitBox <gi...@apache.org>.
RaigorJiang closed issue #16751: HASH_MOD sharding-count configuration question
URL: https://github.com/apache/shardingsphere/issues/16751
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #16751: HASH_MOD sharding-count configuration question
Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #16751:
URL: https://github.com/apache/shardingsphere/issues/16751#issuecomment-1095847196
Hi @luckleemon
What is the version of ShardingSphere?
Please provide some more information, like sharding table rule. I suspect this problem is caused by not using auto table.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org