Address review comments

This commit is contained in:
Enrico Olivelli 2023-05-23 10:00:49 +02:00
parent 6821f67e8c
commit ea803d609a
3 changed files with 11 additions and 7 deletions

View File

@ -4,9 +4,9 @@
set -x -e
HERE=$(dirname $0)
# move to the directory with the Schema files
cd $HERE
jar=binaries/*admin-tool-all*.jar
jar=../../../../target/venice-admin-tool-all.jar
storeName=$1
url=http://localhost:5555
clusterName=venice-cluster0
@ -16,9 +16,8 @@ valueSchema=value.avsc
# 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
# 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
# enable incremental push, disable read quota and set NON_AGGREGATE hybrid-data-replication-policy
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
# create the first version of the store
java -jar $jar --empty-push --url $url --cluster $clusterName --store $storeName --push-id init --store-size 1000

View File

@ -4,7 +4,7 @@
set -x -e
HERE=$(realpath $(dirname $0))
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
mkdir $BINDIR
pushd $BINDIR

View File

@ -27,7 +27,12 @@ cd adapter-venice/src/main/resources/scripts
./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
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