From 52888e1e59c0d56fe2d4e8173db39018a08f3965 Mon Sep 17 00:00:00 2001 From: Rajeshbabu Chintaguntla Date: Thu, 8 Jul 2021 21:51:13 +0530 Subject: [PATCH 1/5] OLTPBenchmark Support for Apache Phoenix --- config/sample_tpcc_phoenix_config.xml | 45 ++++++ ivy.xml | 3 +- pom.xml | 10 +- .../benchmarks/tpcc/ddls/tpcc-phoenix-ddl.sql | 141 ++++++++++++++++++ .../tpcc/dialects/phoenix-dialects.xml | 67 +++++++++ 5 files changed, 263 insertions(+), 3 deletions(-) create mode 100644 config/sample_tpcc_phoenix_config.xml create mode 100644 src/com/oltpbenchmark/benchmarks/tpcc/ddls/tpcc-phoenix-ddl.sql create mode 100644 src/com/oltpbenchmark/benchmarks/tpcc/dialects/phoenix-dialects.xml diff --git a/config/sample_tpcc_phoenix_config.xml b/config/sample_tpcc_phoenix_config.xml new file mode 100644 index 000000000..6423916e4 --- /dev/null +++ b/config/sample_tpcc_phoenix_config.xml @@ -0,0 +1,45 @@ + + + + + phoenix + org.apache.phoenix.jdbc.PhoenixDriver + jdbc:phoenix:rajeshph-3.rajeshph.root.hwx.site:2181/tpcc + root + + TRANSACTION_READ_COMMITTED + + + + + 2 + + + 2 + + + + 10000 + 45,43,4,4,4 + + + + + + + NewOrder + + + Payment + + + OrderStatus + + + Delivery + + + StockLevel + + + diff --git a/ivy.xml b/ivy.xml index 4cdc582b1..51383464b 100644 --- a/ivy.xml +++ b/ivy.xml @@ -23,7 +23,8 @@ - + + diff --git a/pom.xml b/pom.xml index e0e3f2ede..c8838fd49 100644 --- a/pom.xml +++ b/pom.xml @@ -10,8 +10,9 @@ jar - 1.10 - 1.10 + 1.8 + 1.8 + 5.1.0 @@ -197,6 +198,11 @@ jaxb-impl 2.3.0 + + org.apache.phoenix + phoenix-client-hbase-2.4 + ${phoenix.version} + phoenix org.apache.phoenix.jdbc.PhoenixDriver - jdbc:phoenix:rajeshph-3.rajeshph.root.hwx.site:2181/tpcc + jdbc:phoenix:localhost:2181/tpcc root TRANSACTION_READ_COMMITTED From 7544b6fa53e6cb8a194f78b6010a1e8986f6c87e Mon Sep 17 00:00:00 2001 From: Rajeshbabu Chintaguntla Date: Thu, 8 Jul 2021 22:01:15 +0530 Subject: [PATCH 3/5] Adding phoenix driver type --- src/com/oltpbenchmark/types/DatabaseType.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/oltpbenchmark/types/DatabaseType.java b/src/com/oltpbenchmark/types/DatabaseType.java index 499b2e3c5..c8b20f47d 100644 --- a/src/com/oltpbenchmark/types/DatabaseType.java +++ b/src/com/oltpbenchmark/types/DatabaseType.java @@ -52,6 +52,7 @@ public enum DatabaseType { CASSANDRA("com.github.adejanovski.cassandra.jdbc.CassandraDriver", true, true, false), MEMSQL("com.mysql.jdbc.Driver", true, false, false), NOISEPAGE("org.postgresql.Driver", false, false, true), + PHOENIX("org.apache.phoenix.jdbc.PhoenixDriver",false, false, true), ; private DatabaseType(String driver, From 7b5b91067ec4578aae5da0a828d31e8d7eeef717 Mon Sep 17 00:00:00 2001 From: Rajeshbabu Chintaguntla Date: Thu, 8 Jul 2021 22:03:25 +0530 Subject: [PATCH 4/5] change compiler source and target to actual values --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index c8838fd49..821b04e44 100644 --- a/pom.xml +++ b/pom.xml @@ -10,8 +10,8 @@ jar - 1.8 - 1.8 + 1.10 + 1.10 5.1.0 From beee64395f7f7a0c8c53d65d8015760abf60a719 Mon Sep 17 00:00:00 2001 From: Rajeshbabu Chintaguntla Date: Wed, 14 Jul 2021 07:54:22 +0530 Subject: [PATCH 5/5] Changing Phoenix version to 5.1.1 to fix dependency issue. --- ivy.xml | 2 +- pom.xml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ivy.xml b/ivy.xml index 51383464b..dc7dd306a 100644 --- a/ivy.xml +++ b/ivy.xml @@ -24,7 +24,7 @@ - + diff --git a/pom.xml b/pom.xml index 821b04e44..7c9a1a711 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ 1.10 1.10 - 5.1.0 + 5.1.1 @@ -203,7 +203,6 @@ phoenix-client-hbase-2.4 ${phoenix.version} -