Re: Problem running YCSB bench-marking tool over MongoDB

1,108 views
Skip to first unread message

Rob Moore

unread,
Sep 16, 2012, 10:31:50 AM9/16/12
to mongod...@googlegroups.com

Looks like the launch script did not pickup the MongoDB binding jar. 

Make sure it exists in the mongodb/target/ sub-directory and is named something like mongodb-binding-0.1.4.jar. 

If not check the output form the mvn package for compile errors.

Rob.

On Sunday, September 16, 2012 1:58:25 AM UTC-4, Rushmila Islam wrote:
Hi,
I am trying to run the the bench-marking tool YCSB over MongoDB to analyze the performance of MongoDB.
But whenever I'm running the load it gives error. Any idea or suggestion regarding this issue. 
I am using the  following version of mongodb.

db version v1.8.1, pdfile version 4.5
Sat Sep 15 22:55:41 git version: a429cd4f535b2499cc4130b06ff7c26f41c00f04

Error log -- 

root@ubuntu:/etc/init.d# /etc/init.d/mongod start
 * Starting database MongoDB                                                           [ OK ]
root@ubuntu:/etc/init.d# cd /home/rushmila/YCSB/
root@ubuntu:/home/rushmila/YCSB# ./bin/ycsb load mongodb -s -P workloads/workloada
java -cp /home/rushmila/YCSB/build/ycsb.jar:/home/rushmila/YCSB/core/target/core-0.1.4.jar:/home/rushmila/YCSB/hbase/src/main/conf:/home/rushmila/YCSB/voldemort/src/main/conf:/home/rushmila/YCSB/jdbc/src/main/conf:/home/rushmila/YCSB/dynamodb/conf:/home/rushmila/YCSB/gemfire/src/main/conf:/home/rushmila/YCSB/infinispan/src/main/conf:/home/rushmila/YCSB/db/hbase/conf:/home/rushmila/YCSB/db/jdbc/conf:/home/rushmila/YCSB/db/infinispan-5.0/conf:/home/rushmila/YCSB/lib/jackson-core-asl-1.5.2.jar:/home/rushmila/YCSB/lib/jackson-mapper-asl-1.5.2.jar:/home/rushmila/YCSB/nosqldb/src/main/conf com.yahoo.ycsb.Client -db com.yahoo.ycsb.db.MongoDbClient -s -P workloads/workloada -load
YCSB Client 0.1
Command line: -db com.yahoo.ycsb.db.MongoDbClient -s -P workloads/workloada -load
Loading workload...
Starting test.
java.lang.ClassNotFoundException: com.yahoo.ycsb.db.MongoDbClient
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at com.yahoo.ycsb.DBFactory.newDB(Unknown Source)
        at com.yahoo.ycsb.Client.main(Unknown Source)
Exception in thread "Thread-1" java.lang.NullPointerException
        at com.yahoo.ycsb.ClientThread.run(Unknown Source)
[OVERALL], RunTime(ms), 21.0


Regards,
Rushmila Islam


Rushmila Islam

unread,
Sep 16, 2012, 1:18:16 PM9/16/12
to mongod...@googlegroups.com
Hello Rob,

Thanks a lot for your cooperation. Now I am to run YCSB for MongoDB. :)


Regards,
Rushmila Islam




--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb

Rob Moore

unread,
Sep 16, 2012, 1:35:27 PM9/16/12
to mongod...@googlegroups.com

No problem.  Your timing was great as I just finished a bunch of benchmarking using the YCSB.

I posted my results here: http://www.allanbank.com/mongodb-async-driver/performance/ycsb.html 

If nothing else it will give you something to compare against as a sanity check.

Rob.

Rushmila Islam

unread,
Sep 16, 2012, 1:39:50 PM9/16/12
to mongod...@googlegroups.com
Thanks again :) It will help me lot in my project. 


Regards,
Rushmila Islam

Rob Moore

unread,
Oct 23, 2012, 8:48:18 PM10/23/12
to mongod...@googlegroups.com


On Tuesday, October 23, 2012 5:09:27 AM UTC-4, Cornelius Lee wrote:
Hi Rob,

I have a question,.. what do you mean by "Make sure it exists in the mongodb/target/ sub-directory and is named something like mongodb-binding-0.1.4.jar." 


No - that is just the MongoDB java driver.  It does not have the YCSB binding class that reference the MongoDB driver.

When you do a "mvn package" from the root "YCSB" directory it will retrieve the driver from Maven central, bundle it with a YCSB binding class into a jar file in the YCSB/mongodb/target/ directory.  The jar (it using the current version) will be named 'mongodb-binding-0.1.4.jar'.  e.g., YCSB/mongodb/target/mongodb-binding-0.1.4.jar (if you did a git checkout).

I strongly recommend looking at this wiki page: https://github.com/brianfrankcooper/YCSB/wiki/Getting-Started

 
Could you tell me what the exact/relative PATH is, please?

See above.

Asya Kamsky

unread,
Oct 23, 2012, 8:58:35 PM10/23/12
to mongod...@googlegroups.com
It looks like you are running a version of MongoDB that's well over two years old.   Is that a deliberate choice?
The current version is 2.2 - you have 1.8 (and not even the one with all the bug fixes...)
Reply all
Reply to author
Forward
0 new messages