Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gh-66 added more stuff in BUILD. added db links in ycsb.

  • Loading branch information...
commit 2cfb144ad62b270861e27b5434e535db5e59744a 1 parent c2aadd3
m1ch1 authored
Showing with 13 additions and 3 deletions.
  1. +7 −0 BUILD
  2. +6 −3 bin/ycsb
View
7 BUILD
@@ -4,6 +4,13 @@ To build YCSB, run:
mvn clean package
+# Running YCSB
+
+Once `mvn clean package` succeeds, you can run `ycsb` command:
+
+ ./bin/ycsb load basic workloads/workloada
+ ./bin/ycsb run basic workloads/workloada
+
# Oracle NoSQL Database
Oracle NoSQL Database binding doesn't get built by default because there is no
View
9 bin/ycsb
@@ -4,6 +4,7 @@ import os
import sys
import subprocess
+BASE_URL = "https://github.com/brianfrankcooper/YCSB/tree/master/"
COMMANDS = {
"load" : {
"command" : "-load",
@@ -47,7 +48,7 @@ def usage():
print "\nDatabases:"
for db in sorted(DATABASES.keys()):
- print " %s" % db
+ print " {0:13} {1}".format(db, BASE_URL + db.split("-")[0])
print """\nWorkload Files:
There are various predefined workloads under workloads/ directory.
@@ -66,8 +67,9 @@ def find_jars(dir, database):
jars.append(dirpath)
for filename in filenames:
if filename.endswith(".jar") and \
- filename.startswith("core") or \
- filename.startswith(database.split("-")[0]):
+ (filename.startswith("core") or \
+ filename.startswith(database.split("-")[0]) or \
+ not "binding" in filename):
jars.append(os.path.join(dirpath, filename))
return jars
@@ -96,4 +98,5 @@ options = sys.argv[4:]
ycsb_command = ["java", "-cp", ":".join(find_jars(ycsb_home, database)), \
"com.yahoo.ycsb.Client", command, "-db", db_classname, \
"-P", workload] + options
+print " ".join(ycsb_command)
subprocess.call(ycsb_command)
Please sign in to comment.
Something went wrong with that request. Please try again.