From 1b8ebe4b894f8a961312ad0e91a7b37ce7a5c17f Mon Sep 17 00:00:00 2001 From: Tanuj Mittal <tanuj.183@gmail.com> Date: Tue, 15 Nov 2016 09:04:38 -0800 Subject: [PATCH] [jdbc] Update README and sample config file for jdbc binding (#872) * Update Readme to match expected behavior for JdbcCreateTable * Update sample properties file to use correct property key --- jdbc/README.md | 4 ++-- jdbc/src/main/conf/db.properties | 2 +- jdbc/src/main/conf/h2.properties | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jdbc/README.md b/jdbc/README.md index b6e10926..aaedbbf1 100644 --- a/jdbc/README.md +++ b/jdbc/README.md @@ -54,10 +54,10 @@ Key take aways: YCSB has a utility to help create your SQL table. NOTE: It does not support all databases flavors, if it does not work for you, you will have to create your table manually with the schema given above. An example usage of the utility: ```sh -java -cp YCSB_HOME/jdbc-binding/lib/jdbc-binding-0.4.0.jar:mysql-connector-java-5.1.37-bin.jar com.yahoo.ycsb.db.JdbcDBCreateTable -P testworkload -P db.properties -n usertable +java -cp YCSB_HOME/jdbc-binding/lib/jdbc-binding-0.4.0.jar:mysql-connector-java-5.1.37-bin.jar com.yahoo.ycsb.db.JdbcDBCreateTable -P db.properties -n usertable ``` -Hint: you need to include your Driver jar in the classpath as well as specify your loading options via a workload file, JDBC connection information, and a table name with ```-n```. +Hint: you need to include your Driver jar in the classpath as well as specify JDBC connection information via a properties file, and a table name with ```-n```. Simply executing the JdbcDBCreateTable class without any other parameters will print out usage information. diff --git a/jdbc/src/main/conf/db.properties b/jdbc/src/main/conf/db.properties index 81849a63..e12cc1ef 100644 --- a/jdbc/src/main/conf/db.properties +++ b/jdbc/src/main/conf/db.properties @@ -15,7 +15,7 @@ # Properties file that contains database connection information. -jdbc.driver=org.h2.Driver +db.driver=org.h2.Driver # jdbc.fetchsize=20 db.url=jdbc:h2:tcp://foo.com:9092/~/h2/ycsb db.user=sa diff --git a/jdbc/src/main/conf/h2.properties b/jdbc/src/main/conf/h2.properties index d698edec..cfde14cb 100644 --- a/jdbc/src/main/conf/h2.properties +++ b/jdbc/src/main/conf/h2.properties @@ -15,7 +15,7 @@ # Properties file that contains database connection information. -jdbc.driver=org.h2.Driver +db.driver=org.h2.Driver db.url=jdbc:h2:tcp://foo.com:9092/~/h2/ycsb db.user=sa db.passwd= -- GitLab