YCSB
Prepare YCSB
YCSB official release version (v0.17.0) does not support python3. We have to build by ourselves.
Install Dependencies
sudo apt install python-is-python3
sudo apt install openjdk-8-jdk
Install Maven3
Note that we should use maven3 not maven2.
Get YCSB Source
git clone http://github.com/brianfrankcooper/YCSB.git
Run YCSB (Zookeeper as Example)
First forward Zookeeper's default port to expose client to your host.
kubectl port-forward -n zookeeper services/zk-cs 2181:2181
Then create a zookeeper node:
kubectl exec -n zookeeper zk-0 zkCli.sh create /benchmark
Run YCSB
./bin/ycsb load zookeeper -s -P workloads/workloadb -p zookeeper.connectString=127.0.0.1:2181/benchmark -p recordcount=10000 > outputLoad.txt
./bin/ycsb run zookeeper -s -P workloads/workloadb -p zookeeper.connectString=127.0.0.1:2181/benchmark -p zookeeper.sessionTimeout=30000