You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@omid.apache.org by ja...@apache.org on 2018/10/24 16:36:21 UTC
incubator-omid git commit: Rename to hbase1.x 2.x
Repository: incubator-omid
Updated Branches:
refs/heads/phoenix-integration 4b3eac65c -> 452b57a4b
Rename to hbase1.x 2.x
Project: http://git-wip-us.apache.org/repos/asf/incubator-omid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-omid/commit/452b57a4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-omid/tree/452b57a4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-omid/diff/452b57a4
Branch: refs/heads/phoenix-integration
Commit: 452b57a4b97f88ce9d58ac9ab2c3c3d7ca8a0530
Parents: 4b3eac6
Author: Yonatan Gottesman <yo...@gmail.com>
Authored: Mon Oct 22 21:14:28 2018 +0300
Committer: James Taylor <ja...@apache.org>
Committed: Wed Oct 24 09:33:55 2018 -0700
----------------------------------------------------------------------
benchmarks/pom.xml | 4 +--
examples/pom.xml | 4 +--
hbase-client/pom.xml | 20 +++++++++---
hbase-commit-table/pom.xml | 10 ++++--
hbase-common/pom.xml | 2 +-
hbase-coprocessor/pom.xml | 31 +++++++++++++++---
hbase-shims/hbase-1/pom.xml | 2 +-
hbase-shims/hbase-2/pom.xml | 2 +-
hbase-tools/pom.xml | 26 +++++++++++++--
pom.xml | 34 ++++++++++++--------
timestamp-storage/pom.xml | 10 ++++--
tso-server/maven/assembly/bin.xml | 4 +--
tso-server/pom.xml | 14 ++++----
.../java/org/apache/omid/tso/TSOServer.java | 5 +++
14 files changed, 122 insertions(+), 46 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/benchmarks/pom.xml
----------------------------------------------------------------------
diff --git a/benchmarks/pom.xml b/benchmarks/pom.xml
index 0056978..48ef6a0 100644
--- a/benchmarks/pom.xml
+++ b/benchmarks/pom.xml
@@ -22,7 +22,7 @@
</dependency>
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-commit-table-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-commit-table-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
@@ -31,7 +31,7 @@
</exclusion>
<exclusion>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-common-${hbase.exlude.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-common-${hbase.exclude.artifactId.suffix}</artifactId>
</exclusion>
</exclusions>
</dependency>
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/examples/pom.xml
----------------------------------------------------------------------
diff --git a/examples/pom.xml b/examples/pom.xml
index afd85da..f14dcfc 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -19,7 +19,7 @@
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-client-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-client-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
@@ -28,7 +28,7 @@
</exclusion>
<exclusion>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-commit-table-${hbase.exlude.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-commit-table-${hbase.exclude.artifactId.suffix}</artifactId>
</exclusion>
</exclusions>
</dependency>
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/hbase-client/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-client/pom.xml b/hbase-client/pom.xml
index 968329d..a010721 100644
--- a/hbase-client/pom.xml
+++ b/hbase-client/pom.xml
@@ -8,7 +8,7 @@
<version>0.9.1.0-SNAPSHOT</version>
</parent>
- <artifactId>omid-hbase-client-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-client-${hbase.artifactId.suffix}</artifactId>
<packaging>jar</packaging>
<name>HBase Client</name>
<description>HBase specific implementation of transaction-client module</description>
@@ -24,18 +24,28 @@
</dependency>
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-commit-table-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-commit-table-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.omid</groupId>
+ <artifactId>${shims.exclude.artifactId}</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.omid</groupId>
+ <artifactId>omid-hbase-common-${hbase.exclude.artifactId.suffix}</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-tso-server</artifactId>
+ <artifactId>omid-tso-server-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-tso-server</artifactId>
+ <artifactId>omid-tso-server-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
@@ -49,7 +59,7 @@
</dependency>
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-tools-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-tools-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/hbase-commit-table/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-commit-table/pom.xml b/hbase-commit-table/pom.xml
index f192569..2fe3c0b 100644
--- a/hbase-commit-table/pom.xml
+++ b/hbase-commit-table/pom.xml
@@ -8,7 +8,7 @@
<version>0.9.1.0-SNAPSHOT</version>
</parent>
- <artifactId>omid-hbase-commit-table-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-commit-table-${hbase.artifactId.suffix}</artifactId>
<packaging>jar</packaging>
<name>HBase Commit Table</name>
@@ -28,8 +28,14 @@
</dependency>
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-common-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-common-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.omid</groupId>
+ <artifactId>${shims.exclude.artifactId}</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<!-- End of Dependencies on Omid modules -->
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/hbase-common/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-common/pom.xml b/hbase-common/pom.xml
index 266e014..0f57687 100644
--- a/hbase-common/pom.xml
+++ b/hbase-common/pom.xml
@@ -8,7 +8,7 @@
<version>0.9.1.0-SNAPSHOT</version>
</parent>
- <artifactId>omid-hbase-common-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-common-${hbase.artifactId.suffix}</artifactId>
<name>HBase Common</name>
<packaging>jar</packaging>
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/hbase-coprocessor/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-coprocessor/pom.xml b/hbase-coprocessor/pom.xml
index a93508f..9d0b54a 100644
--- a/hbase-coprocessor/pom.xml
+++ b/hbase-coprocessor/pom.xml
@@ -8,7 +8,7 @@
<version>0.9.1.0-SNAPSHOT</version>
</parent>
- <artifactId>omid-hbase-coprocessor-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-coprocessor-${hbase.artifactId.suffix}</artifactId>
<packaging>jar</packaging>
<name>HBase Coprocessors</name>
@@ -18,23 +18,44 @@
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-commit-table-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-commit-table-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.omid</groupId>
+ <artifactId>${shims.exclude.artifactId}</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.omid</groupId>
+ <artifactId>omid-hbase-common-${hbase.exclude.artifactId.suffix}</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-tso-server</artifactId>
+ <artifactId>omid-tso-server-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-client-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-client-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.omid</groupId>
+ <artifactId>omid-hbase-commit-table-${hbase.exclude.artifactId.suffix}</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.omid</groupId>
+ <artifactId>${shims.exclude.artifactId}</artifactId>
+ </exclusion>
+ </exclusions>
+
</dependency>
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-tso-server</artifactId>
+ <artifactId>omid-tso-server-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/hbase-shims/hbase-1/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-shims/hbase-1/pom.xml b/hbase-shims/hbase-1/pom.xml
index bf141c4..55c09e6 100644
--- a/hbase-shims/hbase-1/pom.xml
+++ b/hbase-shims/hbase-1/pom.xml
@@ -8,7 +8,7 @@
<version>0.9.1.0-SNAPSHOT</version>
</parent>
- <artifactId>omid-hbase1-shims</artifactId>
+ <artifactId>${shims1.artifactId}</artifactId>
<name>Shims layer for HBase 1.x</name>
<packaging>jar</packaging>
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/hbase-shims/hbase-2/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-shims/hbase-2/pom.xml b/hbase-shims/hbase-2/pom.xml
index 01bc105..8694169 100644
--- a/hbase-shims/hbase-2/pom.xml
+++ b/hbase-shims/hbase-2/pom.xml
@@ -9,7 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
- <artifactId>omid-hbase2-shims</artifactId>
+ <artifactId>${shims2.artifactId}</artifactId>
<name>Shims layer for HBase 2.x</name>
<packaging>jar</packaging>
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/hbase-tools/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-tools/pom.xml b/hbase-tools/pom.xml
index 5a4c562..4a00771 100644
--- a/hbase-tools/pom.xml
+++ b/hbase-tools/pom.xml
@@ -8,7 +8,7 @@
<version>0.9.1.0-SNAPSHOT</version>
</parent>
- <artifactId>omid-hbase-tools-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-tools-${hbase.artifactId.suffix}</artifactId>
<name>HBase tools</name>
<packaging>jar</packaging>
@@ -18,14 +18,34 @@
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-commit-table-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-commit-table-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.omid</groupId>
+ <artifactId>${shims.exclude.artifactId}</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.omid</groupId>
+ <artifactId>omid-hbase-common-${hbase.exclude.artifactId.suffix}</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-timestamp-storage</artifactId>
+ <artifactId>omid-timestamp-storage-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.omid</groupId>
+ <artifactId>${shims.exclude.artifactId}</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.omid</groupId>
+ <artifactId>omid-hbase-common-${hbase.exclude.artifactId.suffix}</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<!-- End of Dependencies on Omid modules -->
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 3d3ef38..2a9dbe6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -135,8 +135,23 @@
<properties>
- <shims1.artifactId>omid-hbase1-shims</shims1.artifactId>
- <shims2.artifactId>omid-hbase2-shims</shims2.artifactId>
+
+ <hbase1.artifactId.suffix>hbase1.x</hbase1.artifactId.suffix>
+ <hbase2.artifactId.suffix>hbase2.x</hbase2.artifactId.suffix>
+
+ <shims1.artifactId>omid-hbase-shims-${hbase1.artifactId.suffix}</shims1.artifactId>
+ <shims2.artifactId>omid-hbase-shims-${hbase2.artifactId.suffix}</shims2.artifactId>
+
+ <!-- hbase-1 profile props are here and not in profile section to work better with intelij-->
+ <shims.artifactId>${shims1.artifactId}</shims.artifactId>
+ <shims.exclude.artifactId>${shims2.artifactId}</shims.exclude.artifactId>
+ <java.version>1.7</java.version>
+ <hadoop.version>${hadoop1.version}</hadoop.version>
+ <hbase.version>${hbase1.version}</hbase.version>
+ <shims.module>hbase-1</shims.module>
+ <hbase.artifactId.suffix>${hbase1.artifactId.suffix}</hbase.artifactId.suffix>
+ <hbase.exclude.artifactId.suffix>${hbase2.artifactId.suffix}</hbase.exclude.artifactId.suffix>
+
<!-- Basic properties -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -567,14 +582,7 @@
<activeByDefault>true</activeByDefault>
</activation>
<properties>
- <shims.artifactId>${shims1.artifactId}</shims.artifactId>
- <shims.exclude.artifactId>${shims2.artifactId}</shims.exclude.artifactId>
- <java.version>1.7</java.version>
- <hadoop.version>${hadoop1.version}</hadoop.version>
- <hbase.version>${hbase1.version}</hbase.version>
- <shims.module>hbase-1</shims.module>
- <hbase.shims.concatination>hbase1.3</hbase.shims.concatination>
- <hbase.exlude.shims.concatination>hbase2.0</hbase.exlude.shims.concatination>
+
</properties>
</profile>
@@ -584,12 +592,12 @@
<shims.artifactId>${shims2.artifactId}</shims.artifactId>
<shims.exclude.artifactId>${shims1.artifactId}</shims.exclude.artifactId>
<shims.module>hbase-2</shims.module>
- <shims.artifactId>omid-hbase2-shims</shims.artifactId>
+ <shims.artifactId>${shims2.artifactId}</shims.artifactId>
<java.version>1.8</java.version>
<hadoop.version>${hadoop2.version}</hadoop.version>
<hbase.version>${hbase2.version}</hbase.version>
- <hbase.shims.concatination>hbase2.0</hbase.shims.concatination>
- <hbase.exlude.shims.concatination>hbase1.3</hbase.exlude.shims.concatination>
+ <hbase.artifactId.suffix>${hbase2.artifactId.suffix}</hbase.artifactId.suffix>
+ <hbase.exclude.artifactId.suffix>${hbase1.artifactId.suffix}</hbase.exclude.artifactId.suffix>
</properties>
</profile>
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/timestamp-storage/pom.xml
----------------------------------------------------------------------
diff --git a/timestamp-storage/pom.xml b/timestamp-storage/pom.xml
index 5d87b10..3884214 100644
--- a/timestamp-storage/pom.xml
+++ b/timestamp-storage/pom.xml
@@ -8,7 +8,7 @@
<version>0.9.1.0-SNAPSHOT</version>
</parent>
- <artifactId>omid-timestamp-storage</artifactId>
+ <artifactId>omid-timestamp-storage-${hbase.artifactId.suffix}</artifactId>
<name>Timestamp Storage</name>
<packaging>jar</packaging>
@@ -18,8 +18,14 @@
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-common-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-common-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.omid</groupId>
+ <artifactId>${shims.exclude.artifactId}</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.omid</groupId>
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/tso-server/maven/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/tso-server/maven/assembly/bin.xml b/tso-server/maven/assembly/bin.xml
index f1afc28..47377b7 100644
--- a/tso-server/maven/assembly/bin.xml
+++ b/tso-server/maven/assembly/bin.xml
@@ -17,9 +17,9 @@
<useAllReactorProjects>true</useAllReactorProjects>
<!-- Now, select which projects to include in this module-set. -->
<includes>
- <include>org.apache.omid:omid-hbase-commit-table</include>
+ <include>org.apache.omid:omid-hbase-commit-table-${hbase.artifactId.suffix}</include>
<include>org.apache.omid:omid-codahale-metrics</include>
- <include>org.apache.omid:omid-hbase-tools</include>
+ <include>org.apache.omid:omid-hbase-tools-${hbase.artifactId.suffix}</include>
</includes>
<binaries>
<outputDirectory>/lib</outputDirectory>
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/tso-server/pom.xml
----------------------------------------------------------------------
diff --git a/tso-server/pom.xml b/tso-server/pom.xml
index 1a64a91..d98cccd 100644
--- a/tso-server/pom.xml
+++ b/tso-server/pom.xml
@@ -8,7 +8,7 @@
<version>0.9.1.0-SNAPSHOT</version>
</parent>
- <artifactId>omid-tso-server</artifactId>
+ <artifactId>omid-tso-server-${hbase.artifactId.suffix}</artifactId>
<packaging>jar</packaging>
<name>TSO and TO Servers</name>
<description>Omid Transaction Status Oracle server and Timestamp Oracle</description>
@@ -25,7 +25,7 @@
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-common-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-common-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
@@ -37,7 +37,7 @@
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-commit-table-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-commit-table-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
@@ -46,7 +46,7 @@
</exclusion>
<exclusion>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-common-${hbase.exlude.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-common-${hbase.exclude.artifactId.suffix}</artifactId>
</exclusion>
</exclusions>
</dependency>
@@ -54,7 +54,7 @@
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-timestamp-storage</artifactId>
+ <artifactId>omid-timestamp-storage-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
@@ -63,7 +63,7 @@
</exclusion>
<exclusion>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-common-${hbase.exlude.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-common-${hbase.exclude.artifactId.suffix}</artifactId>
</exclusion>
</exclusions>
</dependency>
@@ -83,7 +83,7 @@
The hbase tools are handy to create the required Omid tables from the same script that starts the TSO server -->
<dependency>
<groupId>org.apache.omid</groupId>
- <artifactId>omid-hbase-tools-${hbase.shims.concatination}</artifactId>
+ <artifactId>omid-hbase-tools-${hbase.artifactId.suffix}</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/452b57a4/tso-server/src/main/java/org/apache/omid/tso/TSOServer.java
----------------------------------------------------------------------
diff --git a/tso-server/src/main/java/org/apache/omid/tso/TSOServer.java b/tso-server/src/main/java/org/apache/omid/tso/TSOServer.java
index d97b824..6d36ec2 100644
--- a/tso-server/src/main/java/org/apache/omid/tso/TSOServer.java
+++ b/tso-server/src/main/java/org/apache/omid/tso/TSOServer.java
@@ -24,6 +24,7 @@ import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.Module;
import com.google.inject.Singleton;
+import org.apache.omid.committable.hbase.HBaseCommitTableStorageModule;
import org.apache.omid.metrics.MetricsRegistry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -149,6 +150,10 @@ public class TSOServer extends AbstractIdleService {
TSOServer tsoServer = getInitializedTsoServer(config);
tsoServer.attachShutDownHook();
tsoServer.startAndWait();
+ if (config.getLowLatency() &&
+ !(config.getCommitTableStoreModule() instanceof HBaseCommitTableStorageModule)) {
+ LOG.error("Running low latency mode with memory commit table. Use only with testing!");
+ }
} catch (Exception e) {
System.out.println(e.getMessage());
System.exit(-1);