Skip to content
Permalink
Browse files
scripts: add scripts/cassandra-harry
We want to use cassandra-harry in automation test, and it's not
convenient to set eveything in yaml config.

This patch added a script to accept the cmdline options and editing the
yaml config.

Signed-off-by: Amos Kong <amos@scylladb.com>
  • Loading branch information
amoskong authored and ifesdjeen committed Nov 15, 2021
1 parent b566e8f commit 02296963c97b43e7247ef9d1228ed244cfe3f778
Showing 2 changed files with 24 additions and 0 deletions.
@@ -0,0 +1,9 @@
#!/bin/sh

if [ "x$HARRY_HOME" == 'x' ]; then
HARRY_HOME=~/cassandra-harry
fi

java -Dlogback.configurationFile=$HARRY_HOME/test/conf/logback-dtest.xml \
-jar $HARRY_HOME/harry-integration-external/target/harry-integration-external-0.0.1-SNAPSHOT.jar \
$HARRY_HOME/conf/external.yaml
@@ -0,0 +1,15 @@

### Install

```
git clone -b scylla-branch https://github.com/amoskong/cassandra-harry
cd cassandra-harry
make mvn
sudo ln -s `realpath scripts/cassandra-harry` /usr/bin/cassandra-harry
```

### Execute

```
HARRY_HOME=~/cassandra-harry cassandra-harry
```

0 comments on commit 0229696

Please sign in to comment.