Skip to content

Latest commit

 

History

History
112 lines (74 loc) · 3.32 KB

README_zh_CN.md

File metadata and controls

112 lines (74 loc) · 3.32 KB

TiBigData

License


EN doc CN doc

TiBigData 是为了整合 TiDB 与大数据而诞生的项目,它借助 Flink/Presto/MapReduce 等分布式计算框架,充分发挥 TiDB 分布式集群的优势,为 TiDB 在大数据场景下的使用带来良好的用户体验。

License

TiBigData project is under the Apache 2.0 license. See the LICENSE file for details.

代码风格

TiBigData 使用 Google Code Style.

使用以下命令格式化代码:

mvn com.coveo:fmt-maven-plugin:format

快速开始

编译 TiBigData 需要 git, 直接下载源码编译暂不支持。

TiDB 与 Flink 集成(批处理)

TiDB 与 Flink 集成(流批一体)

TiDB 与 PrestoSQL 集成 - 已废弃

TiDB 与 Trino 集成

TiDB 与 PrestoDB 集成

TiDB 与 MapReduce 集成

TiDB 与 Hive 集成

运行测试

你可以使用下面的命令来运行集成测试,注意将地址、用户名、密码等参数换成自己真实的。

export TIDB_HOST="127.0.0.1"
export TIDB_PORT="4000"
export TIDB_USER="root"
export TIDB_PASSWORD=""
mvn clean test-compile failsafe:integration-test -am -pl ${MODULE_NAME}

使用下面的命令来运行单元测试

export TIDB_HOST="127.0.0.1"
export TIDB_PORT="4000"
export TIDB_USER="root"
export TIDB_PASSWORD=""
mvn clean test-compile failsafe:integration-test -am -pl ${MODULE_NAME}

编写集成测试

首先,需要确保模块含有以下依赖:

 <dependency>
      <groupId>io.tidb</groupId>
      <artifactId>bigdata-test</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
</dependency>

然后,我们使用 JUnit 的 Category 来区分集成测试,用法如下:

import io.tidb.bigdata.test.IntegrationTest;

@Category(IntegrationTest.class)
public class ConnectorsPluginTest {
}

社区

Lark / Feishu Group:

致谢

YourKit

YourKit Logo

YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.

IntelliJ IDEA

IntelliJ IDEA is a Java integrated development environment (IDE) for developing computer software.
It is developed by JetBrains (formerly known as IntelliJ), and is available as an Apache 2 Licensed community edition,
and in a proprietary commercial edition. Both can be used for commercial development.