YCSB/tablestore
Sean Busbey bcf9ee3485 [version] update master branch to 0.17.0-SNAPSHOT 2019-06-04 00:28:38 -05:00
..
conf [tablestore] Add binding for Alibaba Cloud's TableStore (#1286) 2019-06-03 22:09:18 -05:00
src/main [tablestore] Add binding for Alibaba Cloud's TableStore (#1286) 2019-06-03 22:09:18 -05:00
README.md [tablestore] Add binding for Alibaba Cloud's TableStore (#1286) 2019-06-03 22:09:18 -05:00
pom.xml [version] update master branch to 0.17.0-SNAPSHOT 2019-06-04 00:28:38 -05:00

README.md

Alibaba Cloud TableStore Driver for YCSB

This driver provides a YCSB workload for Alibaba's hosted TableStore, a fully managed NoSQL cloud database service that enables storage of a massive amount of structured and semi-structured data.

This binding is based on the Java SDK for TableStore.

Quick Start

Setup a TableStore Instance

Login to the Alibaba Cloud Console and follow the Create Instance. Make a note of the instance name.

Create a Table for YCSB Testing

Follow the Create Table.

The primary key must be exactly one column; the type is 'String'. Make a note of the table name and primary key name.

tablestore.properties

tablestore.properties is the file specifying information needed by TableStore binding. The minimal tablestore.properties should be look like:

alibaba.cloud.tablestore.access_id = $access_id
alibaba.cloud.tablestore.access_key = $access_key
# the Instance Access URL in 'instance details'
alibaba.cloud.tablestore.end_point = $end_point
alibaba.cloud.tablestore.instance_name = $instance_name
alibaba.cloud.tablestore.primary_key = $primary_key

For access_id and access_key, please refer to Java SDK: Configure an AccessKey.

Load and Run a Workload

table_name='table_name'

bin/ycsb load tablestore -P workloads/workloada -P tablestore/conf/tablestore.properties -p table=$table_name -threads 2
bin/ycsb run tablestore -P workloads/workloada -P tablestore/conf/tablestore.properties -p table=$table_name -threads 2