mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-16 17:34:52 -06:00
Address review comments
This commit is contained in:
parent
6821f67e8c
commit
ea803d609a
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
set -x -e
|
set -x -e
|
||||||
HERE=$(dirname $0)
|
HERE=$(dirname $0)
|
||||||
|
# move to the directory with the Schema files
|
||||||
cd $HERE
|
cd $HERE
|
||||||
|
jar=../../../../target/venice-admin-tool-all.jar
|
||||||
jar=binaries/*admin-tool-all*.jar
|
|
||||||
storeName=$1
|
storeName=$1
|
||||||
url=http://localhost:5555
|
url=http://localhost:5555
|
||||||
clusterName=venice-cluster0
|
clusterName=venice-cluster0
|
||||||
@ -16,9 +16,8 @@ valueSchema=value.avsc
|
|||||||
# create the store
|
# create the store
|
||||||
java -jar $jar --new-store --url $url --cluster $clusterName --store $storeName --key-schema-file $keySchema --value-schema-file $valueSchema --hybrid-data-replication-policy NON_AGGREGATE
|
java -jar $jar --new-store --url $url --cluster $clusterName --store $storeName --key-schema-file $keySchema --value-schema-file $valueSchema --hybrid-data-replication-policy NON_AGGREGATE
|
||||||
|
|
||||||
|
# enable incremental push, disable read quota and set NON_AGGREGATE hybrid-data-replication-policy
|
||||||
# enable incremental push and disable read quota
|
java -jar $jar --update-store --url $url --cluster $clusterName --store $storeName --storage-quota -1 --incremental-push-enabled true --hybrid-data-replication-policy NON_AGGREGATE --read-quota 1000000 --hybrid-rewind-seconds 86400 --hybrid-offset-lag 1000
|
||||||
java -jar $jar --update-store --url $url --cluster $clusterName --store $storeName --storage-quota -1 --incremental-push-enabled true --hybrid-data-replication-policy NON_AGGREGATE --read-quota 1000000
|
|
||||||
|
|
||||||
# create the first version of the store
|
# create the first version of the store
|
||||||
java -jar $jar --empty-push --url $url --cluster $clusterName --store $storeName --push-id init --store-size 1000
|
java -jar $jar --empty-push --url $url --cluster $clusterName --store $storeName --push-id init --store-size 1000
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
set -x -e
|
set -x -e
|
||||||
HERE=$(realpath $(dirname $0))
|
HERE=$(realpath $(dirname $0))
|
||||||
VENICETOOLSURL=https://github.com/datastax/venice/releases/download/ds-0.4.17-alpha-12/venice-admin-tool-all.jar
|
VENICETOOLSURL=https://github.com/datastax/venice/releases/download/ds-0.4.17-alpha-12/venice-admin-tool-all.jar
|
||||||
BINDIR=$HERE/binaries
|
BINDIR=$HERE/../../../../target
|
||||||
rm -Rf $BINDIR
|
rm -Rf $BINDIR
|
||||||
mkdir $BINDIR
|
mkdir $BINDIR
|
||||||
pushd $BINDIR
|
pushd $BINDIR
|
||||||
|
@ -27,7 +27,12 @@ cd adapter-venice/src/main/resources/scripts
|
|||||||
./create-store.sh store1
|
./create-store.sh store1
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can populate the store with some data using NB:
|
The script creates a Venice store with the given Key and Value schemas defined in the key.avsc and value.avsc files.
|
||||||
|
Please ensure that you set the same schemas on your workload configuration files (keySchema and valueSchema).
|
||||||
|
|
||||||
|
Then you can populate the store with some data using NB.
|
||||||
|
|
||||||
|
Open a new terminal and run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
java -jar nb5/target/nb5.jar run driver=venice workload=adapter-venice/src/main/resources/venice_writer.yaml store_name=store1 router_url=http://localhost:7777 cycles=100000 -v --report-summary-to stdout:60 --report-csv-to reports
|
java -jar nb5/target/nb5.jar run driver=venice workload=adapter-venice/src/main/resources/venice_writer.yaml store_name=store1 router_url=http://localhost:7777 cycles=100000 -v --report-summary-to stdout:60 --report-csv-to reports
|
||||||
|
Loading…
Reference in New Issue
Block a user