Skip to content
Snippets Groups Projects
Commit 7e0f6320 authored by Robert J. Moore's avatar Robert J. Moore
Browse files

Add the async client to the startup script.

Allow setting the java version to use via the "JAVA_HOME" environment
variable. Fixes #252.
parent 1db6c0c7
No related branches found
No related tags found
No related merge requests found
......@@ -109,9 +109,15 @@ command = COMMANDS[sys.argv[1]]["command"]
database = sys.argv[2]
db_classname = DATABASES[database]
options = sys.argv[3:]
java_home = os.environ["JAVA_HOME"]
ycsb_command = ["java", "-cp", os.pathsep.join(find_jars(ycsb_home, database)), \
if java_home:
ycsb_command = [java_home + "/bin/java", "-cp", os.pathsep.join(find_jars(ycsb_home, database)), \
COMMANDS[sys.argv[1]]["main"], "-db", db_classname] + options
else:
ycsb_command = ["java", "-cp", os.pathsep.join(find_jars(ycsb_home, database)), \
COMMANDS[sys.argv[1]]["main"], "-db", db_classname] + options
if command:
ycsb_command.append(command)
print " ".join(ycsb_command)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment