From 2dfbfb2c6872d13728a03443e9308979f49bf177 Mon Sep 17 00:00:00 2001 From: m1ch1 <michi@cs.stanford.edu> Date: Sun, 19 Feb 2012 18:16:22 -0800 Subject: [PATCH] gh-66 move nosqldb to maven --- distribution/src/main/bin/ycsb | 1 + {db/nosqldb/lib => nosqldb}/README | 11 ++++ nosqldb/pom.xml | 56 +++++++++++++++++++ .../src/main/conf}/nosqldb.properties | 0 .../src/main/conf}/script.txt | 0 .../com/yahoo/ycsb/db/NoSqlDbClient.java | 0 pom.xml | 1 + 7 files changed, 69 insertions(+) rename {db/nosqldb/lib => nosqldb}/README (73%) create mode 100644 nosqldb/pom.xml rename {db/nosqldb => nosqldb/src/main/conf}/nosqldb.properties (100%) rename {db/nosqldb => nosqldb/src/main/conf}/script.txt (100%) rename {db/nosqldb/src => nosqldb/src/main/java}/com/yahoo/ycsb/db/NoSqlDbClient.java (100%) diff --git a/distribution/src/main/bin/ycsb b/distribution/src/main/bin/ycsb index 50b52fe8..8e4d42eb 100755 --- a/distribution/src/main/bin/ycsb +++ b/distribution/src/main/bin/ycsb @@ -26,6 +26,7 @@ DATABASES = { "jdbc" : "com.yahoo.ycsb.db.JdbcDBClient", "mapkeeper" : "com.yahoo.ycsb.db.MapKeeperClient", "mongodb" : "com.yahoo.ycsb.db.MongoDbClient", + "nosqldb" : "com.yahoo.ycsb.db.NoSqlDbClient", "redis" : "com.yahoo.ycsb.db.RedisClient", "voldemort" : "com.yahoo.ycsb.db.VoldemortClient", } diff --git a/db/nosqldb/lib/README b/nosqldb/README similarity index 73% rename from db/nosqldb/lib/README rename to nosqldb/README index 83586631..9b5f3b61 100644 --- a/db/nosqldb/lib/README +++ b/nosqldb/README @@ -1,6 +1,17 @@ This directory should contain kvclient-1.2.123.jar for building and running Oracle NoSQL Database client. +INSTALL + +Download kv-ce-1.2.123.tar.gz from here: + +http://www.oracle.com/technetwork/database/nosqldb/downloads/index.html + +Install kvclient-1.2.123.jar in your local maven repository: + + mvn install:install-file -Dfile=kv-1.2.123/lib/kvclient-1.2.123.jar \ + -DgroupId=com.oracle -DartifactId=kvclient -Dversion=1.2.123 -Dpackaging=jar + BUILD Oracle NoSQL Database client can be compiled using target: diff --git a/nosqldb/pom.xml b/nosqldb/pom.xml new file mode 100644 index 00000000..9ad367ad --- /dev/null +++ b/nosqldb/pom.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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>org.apache.ycsb</groupId> + <artifactId>root</artifactId> + <version>0.1.3</version> + </parent> + + <artifactId>nosqldb-binding</artifactId> + <name>Oracle NoSQL Database Binding</name> + + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>kvclient</artifactId> + <version>1.2.123</version> + </dependency> + <dependency> + <groupId>org.apache.ycsb</groupId> + <artifactId>core</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>${maven.assembly.version}</version> + <configuration> + <descriptorRefs> + <descriptorRef>jar-with-dependencies</descriptorRef> + </descriptorRefs> + <appendAssemblyId>false</appendAssemblyId> + </configuration> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <repositories> + <repository> + <id>central</id> + <url>file:///Users/michi/.m2/repository</url> + </repository> + </repositories> +</project> diff --git a/db/nosqldb/nosqldb.properties b/nosqldb/src/main/conf/nosqldb.properties similarity index 100% rename from db/nosqldb/nosqldb.properties rename to nosqldb/src/main/conf/nosqldb.properties diff --git a/db/nosqldb/script.txt b/nosqldb/src/main/conf/script.txt similarity index 100% rename from db/nosqldb/script.txt rename to nosqldb/src/main/conf/script.txt diff --git a/db/nosqldb/src/com/yahoo/ycsb/db/NoSqlDbClient.java b/nosqldb/src/main/java/com/yahoo/ycsb/db/NoSqlDbClient.java similarity index 100% rename from db/nosqldb/src/com/yahoo/ycsb/db/NoSqlDbClient.java rename to nosqldb/src/main/java/com/yahoo/ycsb/db/NoSqlDbClient.java diff --git a/pom.xml b/pom.xml index b575bad6..fbc4d6df 100644 --- a/pom.xml +++ b/pom.xml @@ -59,6 +59,7 @@ <module>jdbc</module> <module>mapkeeper</module> <module>mongodb</module> + <!--module>nosqldb</module--> <module>redis</module> <module>voldemort</module> <module>distribution</module> -- GitLab