Commit 24b81b7e authored by Daniel Seybold's avatar Daniel Seybold

made YCSB folder generic

parent 81fce977
Pipeline #59052 failed with stage
in 56 seconds
......@@ -40,13 +40,14 @@ RUN mkdir /opt/workloads/
###### YCSB ######
# download and extract YCSB 0.15.0
RUN wget https://github.com/brianfrankcooper/YCSB/releases/download/0.15.0/ycsb-0.15.0.tar.gz -P /opt/workloads/ ; cd /opt/workloads/ ; tar -xzf ycsb-0.15.0.tar.gz
mv /opt/workloads/ycsb-0.15.0/ /opt/workloads/ycsb/
# downlaod additional jar libraries for mysql and postgres-sql
RUN cd /opt/workloads/ycsb-0.15.0/jdbc-binding/lib ; wget https://jdbc.postgresql.org/download/postgresql-42.2.2.jar ; chmod +x postgresql-42.2.2.jar
RUN wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.47.zip ; unzip mysql-connector-java-5.1.47.zip ; mv mysql-connector-java-5.1.47/mysql-connector-java-5.1.47.jar mysql-connector-java-5.1.47.jar ; chmod +x mysql-connector-java-5.1.47.jar ; rm mysql-connector-java-5.1.47.zip
RUN cd /opt/workloads/ycsb/jdbc-binding/lib ; wget https://jdbc.postgresql.org/download/postgresql-42.2.2.jar ; chmod +x postgresql-42.2.2.jar
RUN cd /opt/workloads/ycsb/jdbc-binding/lib ; wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.47.zip ; unzip mysql-connector-java-5.1.47.zip ; mv mysql-connector-java-5.1.47/mysql-connector-java-5.1.47.jar mysql-connector-java-5.1.47.jar ; chmod +x mysql-connector-java-5.1.47.jar ; rm mysql-connector-java-5.1.47.zip
# add fixec jdbc binding for YCSB 0.15
RUN rm /opt/workloads/ycsb-0.15.0/jdbc-binding/lib/jdbc-binding-0.15.0.jar
ADD lib/ycsb_0.15/jdbc-binding/jdbc-binding-0.15.0.jar /opt/workloads/ycsb-0.15.0/jdbc-binding/lib
RUN rm /opt/workloads/ycsb/jdbc-binding/lib/jdbc-binding-0.15.0.jar
ADD lib/ycsb_0.15/jdbc-binding/jdbc-binding-0.15.0.jar /opt/workloads/ycsb/jdbc-binding/lib
###### CockroachDB loadgen for TPC-C ######
# downlaod cockroachdb loadgen
......
......@@ -39,7 +39,7 @@ public class WorkloadApiServiceImpl extends WorkloadApiService {
//YCSB constants
private final String YCSB_RESULT_FOLDER = "YCSB/";
private static final String YCSB_BINARY = "bin/ycsb";
private static final String YCSB_VERSION = "ycsb-0.15.0";
private static final String YCSB_FOLDER = "ycsb";
//TPC-C constants
private final String TPCC_RESULT_FOLDER = "TPCC/";
......@@ -219,7 +219,7 @@ public class WorkloadApiServiceImpl extends WorkloadApiService {
//TODO: get binary and version from API call to add more workloads
String binariyDirectory =
properties.getProperty(WorkloadApiProperties.WORKLOAD_BINARIES_FOLDER) + YCSB_VERSION;
properties.getProperty(WorkloadApiProperties.WORKLOAD_BINARIES_FOLDER) + YCSB_FOLDER;
workloadProcess
.startWorkload(binariyDirectory, UNIX_SHELL, UNIX_COMMAND_PARAM, startCommand, taskId,
workloadTimestamp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment