You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by if...@apache.org on 2021/11/15 20:17:41 UTC
[cassandra-harry] 02/03: scripts: add scripts/cassandra-harry
This is an automated email from the ASF dual-hosted git repository.
ifesdjeen pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-harry.git
commit 02296963c97b43e7247ef9d1228ed244cfe3f778
Author: Amos Kong <am...@scylladb.com>
AuthorDate: Tue Jan 19 22:24:20 2021 +0800
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 <am...@scylladb.com>
---
scripts/cassandra-harry | 9 +++++++++
scylla-usage.md | 15 +++++++++++++++
2 files changed, 24 insertions(+)
diff --git a/scripts/cassandra-harry b/scripts/cassandra-harry
new file mode 100755
index 0000000..dd27f7b
--- /dev/null
+++ b/scripts/cassandra-harry
@@ -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
diff --git a/scylla-usage.md b/scylla-usage.md
new file mode 100644
index 0000000..b70f261
--- /dev/null
+++ b/scylla-usage.md
@@ -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
+```
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org