-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from openzipkin/experimental-jdbc
Adds WIP JDBC backend
- Loading branch information
Showing
19 changed files
with
1,338 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#Maven download properties | ||
#Tue Sep 01 07:17:40 PDT 2015 | ||
#Tue Sep 22 22:17:47 PDT 2015 | ||
distributionUrl=https\://repository.apache.org/content/repositories/releases/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# zipkin-java-jdbc | ||
|
||
## Applying the schema | ||
|
||
```bash | ||
# Barracuda supports compression (In AWS RDS, this must be assigned in a parameter group) | ||
$ mysql -uroot -e "SET GLOBAL innodb_file_format=Barracuda" | ||
# This command should work even in RDS, and return "Barracuda" | ||
$ mysql -uroot -e "show global variables like 'innodb_file_format'" | ||
|
||
# install the schema and indexes | ||
$ mysql -uroot -e "create database if not exists zipkin" | ||
$ mysql -uroot -Dzipkin < zipkin-java-jdbc/src/main/resources/mysql.sql | ||
``` | ||
|
||
## Generating the schema types | ||
|
||
```bash | ||
$ rm -rf zipkin-java-jdbc/src/main/java/io/zipkin/jdbc/internal/generated/ | ||
$ ./mvnw -pl zipkin-java-jdbc clean org.jooq:jooq-codegen-maven:generate com.mycila:license-maven-plugin:format | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2015 The OpenZipkin Authors | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
in compliance with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the License | ||
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
or implied. See the License for the specific language governing permissions and limitations under | ||
the License. | ||
--> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>io.zipkin</groupId> | ||
<artifactId>zipkin-java</artifactId> | ||
<version>0.1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>zipkin-java-jdbc</artifactId> | ||
<name>Zipkin Java JDBC Model</name> | ||
<description>Zipkin Java JDBC Model</description> | ||
|
||
<properties> | ||
<jooq.version>3.6.3</jooq.version> | ||
<mysql-connector-java.version>5.1.36</mysql-connector-java.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>zipkin-java-query</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>zipkin-java-dependencies</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jooq</groupId> | ||
<artifactId>jooq</artifactId> | ||
<version>${jooq.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>mysql</groupId> | ||
<artifactId>mysql-connector-java</artifactId> | ||
<version>${mysql-connector-java.version}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.jooq</groupId> | ||
<artifactId>jooq-codegen-maven</artifactId> | ||
<version>${jooq.version}</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>generate</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.jooq</groupId> | ||
<artifactId>jooq</artifactId> | ||
<version>${jooq.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>mysql</groupId> | ||
<artifactId>mysql-connector-java</artifactId> | ||
<version>${mysql-connector-java.version}</version> | ||
</dependency> | ||
</dependencies> | ||
<configuration> | ||
<jdbc> | ||
<driver>com.mysql.jdbc.Driver</driver> | ||
<url>jdbc:mysql://localhost:3306/zipkin</url> | ||
<user>root</user> | ||
<password></password> | ||
</jdbc> | ||
<generator> | ||
<generate> | ||
<relations>false</relations> | ||
<deprecated>false</deprecated> | ||
<records>false</records> | ||
<pojos>false</pojos>> | ||
</generate> | ||
<database> | ||
<name>org.jooq.util.mysql.MySQLDatabase</name> | ||
<includes>.*</includes> | ||
<excludes></excludes> | ||
<inputSchema>zipkin</inputSchema> | ||
</database> | ||
<target> | ||
<packageName>io.zipkin.jdbc.internal.generated</packageName> | ||
<directory>src/main/java</directory> | ||
</target> | ||
</generator> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
</project> |
Oops, something went wrong.