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 2020/03/12 14:39:16 UTC

[GitHub] [incubator-shardingsphere] kekerzzZ opened a new issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?

kekerzzZ opened a new issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?
URL: https://github.com/apache/incubator-shardingsphere/issues/4737
 
 
   version: shardingsphere-ui 5.0.0-RC1-SNAPSHOT
   
   I want to use config center of Shardingsphere Orchestration,  now i have a problem. 
   1.Following is my configuration.
   
   ![image](https://user-images.githubusercontent.com/20736319/76531603-67fee080-64b0-11ea-8662-74c2e53f98ab.png)
   
   2.result
   
   ![image](https://user-images.githubusercontent.com/20736319/76531813-b4e2b700-64b0-11ea-87db-f8fd77002b43.png)
   
   this MyHintShardingAlgorithm class is i customized.  
   Whether I use wrong or does not support hint?
   
   
   thanks for the reply

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

[GitHub] [incubator-shardingsphere] KomachiSion commented on issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?

Posted by GitBox <gi...@apache.org>.
KomachiSion commented on issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?
URL: https://github.com/apache/incubator-shardingsphere/issues/4737#issuecomment-598506391
 
 
   Obviously, your classloader of your application can't find your `MyHintShardingAlgorithm`, so make sure your custom algorithm is in classpath.
   
   It's not problem of shardingsphere. I think we should close this issue.

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

[GitHub] [incubator-shardingsphere] kekerzzZ closed issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?

Posted by GitBox <gi...@apache.org>.
kekerzzZ closed issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?
URL: https://github.com/apache/incubator-shardingsphere/issues/4737
 
 
   

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

[GitHub] [incubator-shardingsphere] kekerzzZ commented on issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?

Posted by GitBox <gi...@apache.org>.
kekerzzZ commented on issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?
URL: https://github.com/apache/incubator-shardingsphere/issues/4737#issuecomment-598505376
 
 
   1. My config
   
   `defaultDatabaseStrategy:
     hint:
       algorithmClassName: com.my.testshardingsphere.MyHintShardingAlgorithm
   defaultTableStrategy:
     hint:
       algorithmClassName: com.my.testshardingsphere.MyHintShardingAlgorithm`
   
   2. Exception result 
   
   `java.lang.ClassNotFoundException: com.my.testshardingsphere.MyHintShardingAlgorithm`
   
   3. Code exception location
   `ShardingAlgorithmFactory#newInstance`
   
   4. My question
   `MyHintShardingAlgorithm` class is my custom, when Instantiate appear  exception is `MyHintShardingAlgorithm` class is not found,  so  i want to know whether I use wrong or does not support hint.
   
   Thanks for the reply!
   

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

[GitHub] [incubator-shardingsphere] KomachiSion commented on issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?

Posted by GitBox <gi...@apache.org>.
KomachiSion commented on issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?
URL: https://github.com/apache/incubator-shardingsphere/issues/4737#issuecomment-598485229
 
 
   @kekerzzZ Sorry,  pictures are hard to load, can you show your configuration and result by text?

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

[GitHub] [incubator-shardingsphere] KomachiSion edited a comment on issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?

Posted by GitBox <gi...@apache.org>.
KomachiSion edited a comment on issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?
URL: https://github.com/apache/incubator-shardingsphere/issues/4737#issuecomment-598506391
 
 
   Obviously, the classloader of your application can't find your `MyHintShardingAlgorithm`, so make sure your custom algorithm is in classpath.
   
   It's not problem of shardingsphere. I think we should close this issue.

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

[GitHub] [incubator-shardingsphere] kekerzzZ commented on issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?

Posted by GitBox <gi...@apache.org>.
kekerzzZ commented on issue #4737: When config sharding rule use UI, DatabaseStrategy and TableStrategy whether to support the Hint?
URL: https://github.com/apache/incubator-shardingsphere/issues/4737#issuecomment-598507266
 
 
   ok thank you.

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