File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
src/main/java/com/yahoo/ycsb/db Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 2828 <dependency >
2929 <groupId >com.orientechnologies</groupId >
3030 <artifactId >orientdb-core</artifactId >
31- <version >1.7.5-SNAPSHOT </version >
31+ <version >1.7.5</version >
3232 </dependency >
3333 </dependencies >
3434</project >
Original file line number Diff line number Diff line change 2828
2929/**
3030 * OrientDB client for YCSB framework.
31- *
31+ *
3232 * Properties to set:
33- *
33+ *
3434 * orientdb.url=local:C:/temp/databases or remote:localhost:2424 <br>
3535 * orientdb.database=ycsb <br>
3636 * orientdb.user=admin <br>
3737 * orientdb.password=admin <br>
38- *
38+ *
3939 * @author Luca Garulli
40- *
40+ *
4141 */
4242public class OrientDBClient extends DB {
4343
@@ -52,7 +52,12 @@ public void init() throws DBException {
5252 // initialize OrientDB driver
5353 Properties props = getProperties ();
5454
55- String url = props .getProperty ("orientdb.url" , "plocal:C:/temp/databases/ycsb" );
55+ String url ;
56+ if (System .getProperty ("os.name" ).toLowerCase ().contains ("win" ))
57+ url = props .getProperty ("orientdb.url" , "plocal:C:/temp/databases/ycsb" );
58+ else
59+ url = props .getProperty ("orientdb.url" , "plocal:/temp/databases/ycsb" );
60+
5661 String user = props .getProperty ("orientdb.user" , "admin" );
5762 String password = props .getProperty ("orientdb.password" , "admin" );
5863 Boolean newdb = Boolean .parseBoolean (props .getProperty ("orientdb.newdb" , "false" ));
You can’t perform that action at this time.
0 commit comments