You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by do...@apache.org on 2019/03/22 08:36:30 UTC
[incubator-iotdb] 01/01: add cluster module
This is an automated email from the ASF dual-hosted git repository.
dope pushed a commit to branch cluster
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
commit 10a5709a5dc3c22de3ada417900c20f89e5479ff
Author: MyXOF <xu...@163.com>
AuthorDate: Fri Mar 22 16:36:13 2019 +0800
add cluster module
---
cluster/pom.xml | 121 +++++++++++++++++++++
.../main/java/org/apache/iotdb/cluster/App.java | 10 ++
.../java/org/apache/iotdb/cluster/AppTest.java | 12 ++
pom.xml | 1 +
4 files changed, 144 insertions(+)
diff --git a/cluster/pom.xml b/cluster/pom.xml
new file mode 100644
index 0000000..4101087
--- /dev/null
+++ b/cluster/pom.xml
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>root</artifactId>
+ <groupId>org.apache.iotdb</groupId>
+ <version>0.8.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>cluster</artifactId>
+ <name>IoTDB Cluster</name>
+ <properties>
+ <jraft.version>1.2.4</jraft.version>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.iotdb</groupId>
+ <artifactId>iotdb</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <!-- jraft -->
+ <dependency>
+ <groupId>com.alipay.sofa</groupId>
+ <artifactId>jraft-core</artifactId>
+ <version>${jraft.version}</version>
+ </dependency>
+ <!-- jsr305 -->
+ <dependency>
+ <groupId>com.google.code.findbugs</groupId>
+ <artifactId>jsr305</artifactId>
+ <version>3.0.2</version>
+ </dependency>
+ <!-- bolt -->
+ <dependency>
+ <groupId>com.alipay.sofa</groupId>
+ <artifactId>bolt</artifactId>
+ <version>1.5.3</version>
+ </dependency>
+ <dependency>
+ <groupId>com.alipay.sofa</groupId>
+ <artifactId>hessian</artifactId>
+ <version>3.3.6</version>
+ </dependency>
+ <!-- log -->
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>1.7.21</version>
+ </dependency>
+ <!-- disruptor -->
+ <dependency>
+ <groupId>com.lmax</groupId>
+ <artifactId>disruptor</artifactId>
+ <version>3.3.7</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>2.4</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.6</version>
+ </dependency>
+ <!-- protobuf -->
+ <dependency>
+ <groupId>com.google.protobuf</groupId>
+ <artifactId>protobuf-java</artifactId>
+ <version>3.5.1</version>
+ </dependency>
+ <!-- protostuff -->
+ <dependency>
+ <groupId>io.protostuff</groupId>
+ <artifactId>protostuff-core</artifactId>
+ <version>1.6.0</version>
+ </dependency>
+ <dependency>
+ <groupId>io.protostuff</groupId>
+ <artifactId>protostuff-runtime</artifactId>
+ <version>1.6.0</version>
+ </dependency>
+ <!-- rocksdb -->
+ <dependency>
+ <groupId>org.rocksdb</groupId>
+ <artifactId>rocksdbjni</artifactId>
+ <version>5.14.2</version>
+ </dependency>
+ <!-- java thread affinity -->
+ <dependency>
+ <groupId>net.openhft</groupId>
+ <artifactId>affinity</artifactId>
+ <version>3.1.7</version>
+ </dependency>
+ <!-- metrics -->
+ <dependency>
+ <groupId>io.dropwizard.metrics</groupId>
+ <artifactId>metrics-core</artifactId>
+ <version>4.0.2</version>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/cluster/src/main/java/org/apache/iotdb/cluster/App.java b/cluster/src/main/java/org/apache/iotdb/cluster/App.java
new file mode 100644
index 0000000..9750baa
--- /dev/null
+++ b/cluster/src/main/java/org/apache/iotdb/cluster/App.java
@@ -0,0 +1,10 @@
+package org.apache.iotdb.cluster;
+
+public class App {
+ public App(){
+ }
+
+ public static void main(String[] args){
+ System.out.println(123);
+ }
+}
diff --git a/cluster/src/test/java/org/apache/iotdb/cluster/AppTest.java b/cluster/src/test/java/org/apache/iotdb/cluster/AppTest.java
new file mode 100644
index 0000000..d986670
--- /dev/null
+++ b/cluster/src/test/java/org/apache/iotdb/cluster/AppTest.java
@@ -0,0 +1,12 @@
+package org.apache.iotdb.cluster;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+public class AppTest {
+ @Test
+ public void Test(){
+ assertEquals("123", "123");
+ }
+}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 13350d5..45b754a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -135,6 +135,7 @@
<module>service-rpc</module>
<module>iotdb-cli</module>
<module>example</module>
+ <module>cluster</module>
<!--<module>hadoop</module>-->
<!--<module>spark</module>-->
</modules>