-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
68 additions
and
16 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
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,4 @@ | ||
db.driver=herddb.jdbc.Driver | ||
db.url=jdbc:herddb:server:127.0.0.1:7000 | ||
db.user=sa | ||
db.passwd=hdb |
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,26 @@ | ||
#/bin/bash | ||
|
||
HERE=$(dirname $0) | ||
HERE=$(realpath $HERE) | ||
YCSB_PATH=$1 | ||
HERDDB_PATH=$(realpath $2) | ||
WORKLOAD=$3 | ||
JDBC_DRIVER=$(ls $HERDDB_PATH/*jdbc*.jar) | ||
|
||
echo "Running YCSB workload $WORKLOAD from $YCSB_PATH" | ||
echo "Using HerdDB instance at $HERDDB_PATH" | ||
echo "Using JDBC Driver $JDBC_DRIVER" | ||
|
||
$HERDDB_PATH/bin/service server kill | ||
|
||
rm -Rf $HERDDB_PATH/dbdata | ||
|
||
$HERDDB_PATH/bin/service server start | ||
|
||
sleep 1 | ||
|
||
$HERDDB_PATH/bin/herddb-cli.sh -q "DROP TABLE usertable" | ||
$HERDDB_PATH/bin/herddb-cli.sh -q "CREATE TABLE usertable ( YCSB_KEY VARCHAR(191) NOT NULL, FIELD0 STRING, FIELD1 STRING, FIELD2 STRING, FIELD3 STRING, FIELD4 STRING, FIELD5 STRING, FIELD6 STRING, FIELD7 STRING, FIELD8 STRING, FIELD9 STRING, PRIMARY KEY (YCSB_KEY));" | ||
|
||
$YCSB_PATH/bin/ycsb load jdbc -P $YCSB_PATH/workloads/$WORKLOAD -P $HERE/herd.properties -cp $HERDDB_PATH/herddb-jdbc* -threads 200 -s | ||
|