Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[griddb] GridDB binding #1258

Merged
merged 15 commits into from
Jun 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/ycsb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ DATABASES = {
"geode" : "com.yahoo.ycsb.db.GeodeClient",
"googlebigtable" : "com.yahoo.ycsb.db.GoogleBigtableClient",
"googledatastore" : "com.yahoo.ycsb.db.GoogleDatastoreClient",
"griddb" : "com.yahoo.ycsb.db.griddb.GridDBClient",
"hbase098" : "com.yahoo.ycsb.db.HBaseClient",
"hbase10" : "com.yahoo.ycsb.db.HBaseClient10",
"hbase12" : "com.yahoo.ycsb.db.hbase12.HBaseClient12",
Expand Down
5 changes: 5 additions & 0 deletions distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ LICENSE file.
<artifactId>googlebigtable-binding</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
<artifactId>griddb-binding</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
<artifactId>hbase098-binding</artifactId>
Expand Down
81 changes: 81 additions & 0 deletions griddb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<!--
Copyright (c) 2018 TOSHIBA Digital Solutions Corporation.
Copyright (c) 2018 YCSB contributors.

Licensed under the Apache License, Version 2.0 (the "License"); you
may not use this file except in compliance with the License. You
may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing
permissions and limitations under the License. See accompanying
LICENSE file.
-->

## Overview
busbey marked this conversation as resolved.
Show resolved Hide resolved

GridDB (https://github.com/griddb/griddb_nosql) is a highly scalable NoSQL database best suited for IoT and Big Data.

This is GridDB Binding for YCSB.

## Environment
Library building and program execution have been checked in the following environment.

OS: CentOS 6.9(x64).
Java: JDK 1.8.0_191
Maven: 3.5.4
Python: 2.6.6

## Quick start

### Preparations

Clone the YCSB source code from git repository:

git clone https://github.com/brianfrankcooper/YCSB.git
cd YCSB

### Build

Run following command

$ mvn -pl com.yahoo.ycsb:griddb-binding -am clean package

Then, some jar files are created in:

griddb/target

### GridDB setup

Please set the number of cpu core as /dataStore/concurrency in gs_node.json and "32KB" as /dataStore/storeBlockSize in gs_cluster.json.

### Run YCSB

GridDB needs to be started in advance.
Please execute our program with fieldcount=10 and fieldlength=100.
First, load the data:

./bin/ycsb load griddb -P workloads/workloada
-p notificationAddress=<GridDB notification address(default is 239.0.0.1)>
-p notificationPort=<GridDB notification port(default is 31999)>
-p clusterName=<GridDB cluster name>
-p userName=<GridDB user name>
-p password=<GridDB password>
-p fieldcount=10
-p fieldlength=100

Then, run the workload:

./bin/ycsb run griddb -P workloads/workloada
-p notificationAddress=<GridDB notification address(default is 239.0.0.1)>
-p notificationPort=<GridDB notification port(default is 31999)>
-p clusterName=<GridDB cluster name>
-p userName=<GridDB user name>
-p password=<GridDB password>
-p fieldcount=10
-p fieldlength=100

52 changes: 52 additions & 0 deletions griddb/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2018 TOSHIBA Digital Solutions Corporation.
Copyright (c) 2018 YCSB contributors.

Licensed under the Apache License, Version 2.0 (the "License"); you
may not use this file except in compliance with the License. You
may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing
permissions and limitations under the License. See accompanying
LICENSE file.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.yahoo.ycsb</groupId>
<artifactId>binding-parent</artifactId>
<version>0.16.0-SNAPSHOT</version>
<relativePath>../binding-parent</relativePath>
</parent>

<artifactId>griddb-binding</artifactId>
<name>GridDB Binding</name>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
<artifactId>core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.griddb</groupId>
<artifactId>gridstore</artifactId>
<version>${griddb.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Loading