Skip to content

Commit

Permalink
[hbase] Separate hbase094, hbase098, hbase10 bindings.
Browse files Browse the repository at this point in the history
HBase 0.94 requires an additional dependency on hadoop-core, but has no
source-level changes to the client.
  • Loading branch information
cmccoy committed Sep 16, 2015
1 parent d0f8423 commit 7df83ea
Show file tree
Hide file tree
Showing 11 changed files with 118 additions and 18 deletions.
5 changes: 3 additions & 2 deletions bin/ycsb
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ DATABASES = {
"dynamodb" : "com.yahoo.ycsb.db.DynamoDBClient",
"elasticsearch": "com.yahoo.ycsb.db.ElasticSearchClient",
"gemfire" : "com.yahoo.ycsb.db.GemFireClient",
"hbase" : "com.yahoo.ycsb.db.HBaseClient",
"hbase1" : "com.yahoo.ycsb.db.HBaseClient10",
"hbase094" : "com.yahoo.ycsb.db.HBaseClient",
"hbase098" : "com.yahoo.ycsb.db.HBaseClient",
"hbase10" : "com.yahoo.ycsb.db.HBaseClient10",
"hypertable" : "com.yahoo.ycsb.db.HypertableClient",
"infinispan-cs": "com.yahoo.ycsb.db.InfinispanRemoteClient",
"infinispan" : "com.yahoo.ycsb.db.InfinispanClient",
Expand Down
9 changes: 7 additions & 2 deletions distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,17 @@ LICENSE file.
</dependency>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
<artifactId>hbase-binding</artifactId>
<artifactId>hbase094-binding</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
<artifactId>hbase1-binding</artifactId>
<artifactId>hbase098-binding</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
<artifactId>hbase10-binding</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
23 changes: 23 additions & 0 deletions hbase094/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!--
Copyright (c) 2015 YCSB contributors. All rights reserved.
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.
-->

# HBase (0.94.x) Driver for YCSB
This driver is a binding for the YCSB facilities to operate against a HBase 0.94.x Server cluster. It may also work against 0.92.x
To run against an HBase 0.98.x cluster, use the `hbase098` binding.
To run against an HBase >= 1.0 cluster, use the `hbase10` binding.

See `hbase098/README.md` for configuration details.
68 changes: 68 additions & 0 deletions hbase094/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012 - 2015 YCSB contributors. All rights reserved.
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.4.0-SNAPSHOT</version>
<relativePath>../binding-parent/</relativePath>
</parent>

<artifactId>hbase094-binding</artifactId>
<name>HBase 0.94.x DB Binding</name>

<dependencies>
<!-- This binding is identical to the HBase 0.98, other than dependencies. -->
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
<version>${hbase094.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId>
<version>1.0.4</version>
</dependency>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
<artifactId>hbase098-binding</artifactId>
<version>${project.version}</version>
<exclusions>
<!-- HBase 0.98.0 depends on hbase-client, HBase 0.94.0 on hbase.
Override all dependencies. -->
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.12</version>
</dependency>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
<artifactId>core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
7 changes: 4 additions & 3 deletions hbase/README.md → hbase098/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ permissions and limitations under the License. See accompanying
LICENSE file.
-->

# HBase (0.9x) Driver for YCSB
This driver is a binding for the YCSB facilities to operate against a HBase 0.9x Server cluster.
To run against an HBase >= 1.0 cluster, use the `hbase1` binding.
# HBase (0.98.x) Driver for YCSB
This driver is a binding for the YCSB facilities to operate against a HBase 0.98.x Server cluster.
To run against an HBase 0.94.x cluster, use the `hbase094` binding.
To run against an HBase >= 1.0 cluster, use the `hbase10` binding.

## Quickstart

Expand Down
8 changes: 4 additions & 4 deletions hbase/pom.xml → hbase098/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
<!--
Copyright (c) 2012 - 2015 YCSB contributors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you
Expand All @@ -25,14 +25,14 @@ LICENSE file.
<relativePath>../binding-parent/</relativePath>
</parent>

<artifactId>hbase-binding</artifactId>
<name>HBase 0.9x DB Binding</name>
<artifactId>hbase098-binding</artifactId>
<name>HBase 0.98.x DB Binding</name>

<dependencies>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<version>${hbase.version}</version>
<version>${hbase098.version}</version>
</dependency>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions hbase1/pom.xml → hbase10/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
<!--
Copyright (c) 2012 - 2015 YCSB contributors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you
Expand All @@ -25,14 +25,14 @@ LICENSE file.
<relativePath>../binding-parent/</relativePath>
</parent>

<artifactId>hbase1-binding</artifactId>
<artifactId>hbase10-binding</artifactId>
<name>HBase 1.0 DB Binding</name>

<dependencies>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<version>${hbase1.version}</version>
<version>${hbase10.version}</version>
</dependency>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
Expand Down
10 changes: 6 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ LICENSE file.
<properties>
<maven.assembly.version>2.5.5</maven.assembly.version>
<maven.dependency.version>2.10</maven.dependency.version>
<hbase.version>0.98.13-hadoop2</hbase.version>
<hbase1.version>1.0.0</hbase1.version>
<hbase094.version>0.94.27</hbase094.version>
<hbase098.version>0.98.13-hadoop2</hbase098.version>
<hbase10.version>1.0.1.1</hbase10.version>
<accumulo.version>1.6.0</accumulo.version>
<cassandra.version>1.2.9</cassandra.version>
<cassandra.cql.version>1.0.3</cassandra.cql.version>
Expand Down Expand Up @@ -104,8 +105,9 @@ LICENSE file.
<module>dynamodb</module>
<module>elasticsearch</module>
<module>gemfire</module>
<module>hbase</module>
<module>hbase1</module>
<module>hbase094</module>
<module>hbase098</module>
<module>hbase10</module>
<module>hypertable</module>
<module>infinispan</module>
<module>jdbc</module>
Expand Down

0 comments on commit 7df83ea

Please sign in to comment.