tb_tddl's People
Forkers
congmo gavinhwa softminer imbugs shmilywork yukiyuki bobalm bucketli cnjun chenchunwei rocky0wu dengqiao newsky ferdiknight njdragonfly vicioushg fyatao oopos colinger beride achun2080 minotaursu jusescn dcgood kuguobing emerson-zhao twlkyao aodota is00hcw svoflee szanlin asticx chuanfuzhang zfh424 lvhl hellxoul kuiwang daqinbuyi kongxianghe1234 smartcloud2025 yipai forkproject haolei zerocoolys joliny vtudiv wuzhongxing peiyuc okwangxing lehoon xiarilian12 kimmking laogao limpo2000 caipanjin ztoh nero520 researchmore liu76874151 hsiangbinhua cx1cjj1106 zhaog wangxiao-xiw walkongrass zogwei gxzcds yuwentao timxi kangkang128 bluesky4485 asletian michael8335 alimavericks ruiaylin cn-triplez cattles findhy cskarry rzs840707 fangfan zzu-blue caichangqi xuse peidachang duran-zhu yangziwen2 domainmodel trentsky jaredyang lovydan xushaomin ddkangfu tonycody jmatrix sk163 suntofly ccvcd bigrats tempbottle benpoortb_tddl's Issues
啥时候开源分库分表层?
啥时候开源分库分表层?
mysqlTddlDataSource java.lang.RuntimeException: subscribe the rule data or init rule error!check the error log!
使用TDDL报下面错误是什么原因
Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mysqlTddlDataSource' defined in file [D:\work\aaa\target\classes\biz\persistence.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: subscribe the rule data or init rule error!check the error log!:
java.lang.RuntimeException: subscribe the rule data or init rule error!check the error log!
Matrix-datasource?
这应该就是SQL parser、数据操作、结果排序和聚合等核心业务的层吧。后面的几项hibernate shards也差不多都实现了。就是对SQL Parser有些好奇你们是怎么做的。
我也维护着一个javacc的SQL分析器,开始性能还不错,但当支持的SQL语法越来越多以后(众多的DDL、Oracle分析函数、OracleHint……)之后。我发现性能变得非常糟糕。一个简单的SQL几乎要300us。我也剥离了Druid中的SQL Parser进行测试,性能差不多是我写的三倍,但是Druid的分析器维护起来似乎工作量大了一点(我的目的是要支持MSSQL、PG、SQLIte、DERBY、Maria、HSQLDB、神通、GBase),我的天……。所以还想看看你们是怎么做的。
不继续推进了?
不继续推进了?
tb_tddl code采用的是什么编码,注释全部乱码
我在用Intellij IDEA打开源码的时候,发现注释基本上都是乱码的,感觉不是太友好。
[ERROR] /Users/yuchao/Github/tb_tddl/tddl-common/src/main/java/com/taobao/tddl/common/config/diamond/DiamondConfig.java:[48,32] ����� com.taobao.diamond.client ������
[ERROR] /Users/yuchao/Github/tb_tddl/tddl-common/src/main/java/com/taobao/tddl/common/config/diamond/DiamondConfig.java:[48,32] ����� com.taobao.diamond.client ������
mvn install 和mvn package的时候报错
[INFO] Building tbdatasource v3.0.1.5.taobaocode-SNAPSHOT 3.0.1.5.taobaocode-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] taobao distributed data layer v3.0.1.5.taobaocode-SNAPSHOT SUCCESS [ 0.544 s]
[INFO] tddl-interact v3.0.1.5.taobaocode-SNAPSHOT ........ SUCCESS [ 1.657 s]
[INFO] tbdatasource v3.0.1.5.taobaocode-SNAPSHOT ......... FAILURE [ 0.108 s]
[INFO] tddl-common v3.0.1.5.taobaocode-SNAPSHOT .......... SKIPPED
[INFO] tddl-atom-datasource v3.0.1.5.taobaocode-SNAPSHOT . SKIPPED
[INFO] tddl-group-datasource v3.0.1.5.taobaocode-SNAPSHOT SKIPPED
[INFO] tddl-sample v3.0.1.5.taobaocode-SNAPSHOT .......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.527 s
[INFO] Finished at: 2014-10-08T17:08:48+08:00
[INFO] Final Memory: 7M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project tbdatasource: Could not resolve dependencies for project com.taobao.tbdatasource:tbdatasource:jar:3.0.1.5.taobaocode-SNAPSHOT: Failure to find com.oracle:ojdbc14:jar:10.2.0.3.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :tbdatasource
Maven编译时错误: WrappedStatement不是抽象的, 并且未覆盖Statement中的抽象方法isCloseOnCompletion()
TDDL源码下载之后,Maven编译时,出错。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project tbdatasource: Compilation failure: Compilation failure:
[ERROR] \Users\Administrator\Desktop\tb_tddl-master\tbdatasource\src\main\java\com\taobao\datasource\resource\adapter\jdbc\WrappedStatement.java:[43,7] 错误: WrappedStatement不是抽象的, 并且未覆盖Statement中的抽象方法isCloseOnCompletion()
[ERROR] \Users\Administrator\Desktop\tb_tddl-master\tbdatasource\src\main\java\com\taobao\datasource\resource\adapter\jdbc\WrappedConnection.java:[55,7] 错误: WrappedConnection不是抽象的, 并且未覆盖Connection中的抽象方法getNetworkTimeout()
[ERROR] \Users\Administrator\Desktop\tb_tddl-master\tbdatasource\src\main\java\com\taobao\datasource\resource\adapter\jdbc\WrappedResultSet.java:[53,7] 错误: WrappedResultSet不是抽象的, 并且未覆盖ResultSet中的抽象方法getObject(String,Class)
[ERROR] \Users\Administrator\Desktop\tb_tddl-master\tbdatasource\src\main\java\com\taobao\datasource\resource\adapter\jdbc\WrapperDataSource.java:[48,7] 错误: WrapperDataSource不是抽象的, 并且未覆盖CommonDataSource中的抽象方法getParentLogger()
[ERROR] \Users\Administrator\Desktop\tb_tddl-master\tbdatasource\src\main\java\com\taobao\datasource\resource\adapter\jdbc\CachedPreparedStatement.java:[54,7] 错误: CachedPreparedStatement不是抽象的, 并且未覆盖Statement中的抽象方法isCloseOnCompletion()
[ERROR] \Users\Administrator\Desktop\tb_tddl-master\tbdatasource\src\main\java\com\taobao\datasource\TaobaoDataSource.java:[19,7] 错误: TaobaoDataSource不是抽象的, 并且未覆盖CommonDataSource中的抽象方法getParentLogger()
[ERROR] \Users\Administrator\Desktop\tb_tddl-master\tbdatasource\src\main\java\com\taobao\datasource\resource\adapter\jdbc\WrappedPreparedStatement.java:[53,7] 错误: WrappedPreparedStatement不是抽象的, 并且未覆盖Statement中的抽象方法isCloseOnCompletion()
[ERROR] \Users\Administrator\Desktop\tb_tddl-master\tbdatasource\src\main\java\com\taobao\datasource\resource\adapter\jdbc\WrappedCallableStatement.java:[50,7] 错误: WrappedCallableStatement不是抽象的, 并且未覆盖CallableStatement中的抽象方法getObject(String,Class)
[ERROR] \Users\Administrator\Desktop\tb_tddl-master\tbdatasource\src\main\java\com\taobao\datasource\resource\adapter\jdbc\CachedCallableStatement.java:[50,7] 错误: CachedCallableStatement不是抽象的, 并且未覆盖CallableStatement中的抽象方法getObject(String,Class)
分库分表层还不开源吗
都两年多了,分库分表层还不开源吗?
TDDL与Spring-Boot报错[Version.java]
2017-09-27 11:15:58,428 [main] ERROR com.taobao.tddl.common.utils.version.Version:74 - [TDDL] check guava version is recommend <= 15.0(the minimum version), please upgrade guava jar version, tddl version: recommend
java.lang.IllegalStateException: check guava version is recommend <= 15.0(the minimum version), please upgrade guava jar version
at com.taobao.tddl.common.utils.version.Version.validVersion(Version.java:122)
at com.taobao.tddl.common.utils.version.Version.<clinit>(Version.java:36)
at com.taobao.tddl.monitor.logger.LoggerInit.initTddlLog(LoggerInit.java:42)
at com.taobao.tddl.monitor.logger.LoggerInit.<clinit>(LoggerInit.java:32)
at com.taobao.tddl.group.jdbc.TGroupDataSource.doInit(TGroupDataSource.java:117)
at com.taobao.tddl.common.model.lifecycle.AbstractLifecycle.init(AbstractLifecycle.java:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
如上,其实是Version代码在检测jar版本的时候出错了。
比如在spring-boot中检测的代码位置为:
file:/Users/xingoo/IdeaProjects/test-recommend/target/recommend.jar!/BOOT-INF/lib/guava-20.0.jar!/com/google/common/collect/MapMaker.class
version:recommend
因此需要修改检测jar版本的代码:
public static String getVerionByPath(String file) {
if (file != null && file.length() > 0 && StringUtils.contains(file, ".jar")) {
int index = StringUtils.indexOf(file, ".jar");
file = file.substring(0, index);
int i = file.lastIndexOf('/');
if (i >= 0) {
file = file.substring(i + 1);
}
i = file.indexOf("-");
if (i >= 0) {
file = file.substring(i + 1);
}
while (file.length() > 0 && !Character.isDigit(file.charAt(0))) {
i = file.indexOf("-");
if (i >= 0) {
file = file.substring(i + 1);
} else {
break;
}
}
return file;
} else {
return null;
}
}
修改为:
int index = StringUtils.lastIndexOf(file, ".jar");
分库分表开源出来不
分库分表开源出来不
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.