зеркало из https://github.com/Azure/YCSB.git
fb85b598b7
* Adding MapR Binary & JSON YCSB Clients * MapR binaries will be picked from the classpath |
||
---|---|---|
.. | ||
src/main/java/com/yahoo/ycsb/db/mapr | ||
README.md | ||
pom.xml |
README.md
Quick Start
This section describes how to run YCSB on a MapR Cluster against MapR-DB (JSON).
1. Set Up YCSB
Clone the YCSB git repository and compile:
git clone https://github.com/brianfrankcooper/YCSB.git
cd YCSB
mvn clean package
2. Create MapR-DB JSON Table
maprcli volume create -name tables -path /tables
maprcli table create -path /tables/docTable -tabletype json
3. Run YCSB
3.1. Load Table
./bin/ycsb load maprjsondb -P workloads/workloada -cp $(mapr clientclasspath) -p table=/tables/docTable
3.2. Run workload
./bin/ycsb run maprjsondb -P workloads/workloadb -cp $(mapr clientclasspath) -p table=/tables/docTable