This section describes how to run YCSB on Azure table storage.
https://azure.microsoft.com/en-us/documentation/articles/storage-create-storage-account/#create-a-storage-account
Git clone YCSB and compile:
git clone http://github.com/brianfrankcooper/YCSB.git
cd YCSB
mvn -pl com.yahoo.ycsb:azuretablestorage-binding -am clean package
Set the account name and access key.
azure.accountazure.key
Or, you can set configs with the shell command, EG:
./bin/ycsb load azuretablestorage -s -P workloads/workloada -p azure.account=YourAccountName -p azure.key=YourAccessKey > outputLoad.txt
Load the data:
./bin/ycsb load azuretablestorage -s -P workloads/workloada -p azure.account=YourAccountName -p azure.key=YourAccessKey > outputLoad.txt
Run the workload test:
./bin/ycsb run azuretablestorage -s -P workloads/workloada -p azure.account=YourAccountName -p azure.key=YourAccessKey > outputRun.txt
azure.batchsizeCould be between 1 ~ 100. Insert records to table in batch if batchsize > 1.azure.protocolhttps(in default) or http.azure.tableThe name of the table('usertable' in default).azure.partitionkeyThe partitionkey('Test' in default).azure.endpointFor Azure stack WOSS.
EG: ./bin/ycsb load azuretablestorage -s -P workloads/workloada -p azure.account=YourAccountName -p azure.key=YourAccessKey -p azure.batchsize=100 -p azure.protocol=http