-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to connect to mongodb using mondb+srv connection #1681
Comments
Hi @anandht2fid |
Thank you so much. |
in the 17.0 install (after tar -xvf ycsb-0.17.0.tar.gz) i also dont see folders /mongodb-binding/src/main/java/site/ycsb/db/ where the AsyncMongoDbClient.java resides. I did try connection without a SRV string and got the same error. |
I am not sure what the state of the async driver. The last update on the YCSB code base for the async driver was already 4 ago. And it looks like that the respective GitHub repository of the async driver is not maintained anymore. We only used the synchronous driver for benchmarking MongoDB. |
its same error with synchronous driver as well. YCSB Client 0.17.0 Loading workload... |
Well, you are using We run a lot of MongoDB benchmarks against SRV and IP endpoints using the sync driver from the |
trying to build a latest snapshot but get the error where is this jar available?. |
Does 0.17.0 recogize TLS parms passed like below: C:\Users\Xxxxx\Mongosh_1.9.1\mongosh-1.9.1-win32-x64\bin>C:\Users\axxxx\Documents\YCSB-master\bin\ycsb.bat load mongodb -P C:\Users\Xxxxxxxx\Documents\YCSB-master\workloads\workloada -s & was unexpected at this time. <<< this is the error i get. Sorry for checking with 0.17.0. i am unable to use 0.18.0-snapshot due to other issues. |
@anandht2fid not sure how you try to build the 0.18.0-snapshot but these commands will work: git clone https://github.com/brianfrankcooper/YCSB.git
cd YCSB/ && mvn clean package -Dcheckstyle.skip -DskipTests |
Hello
i am using the below connection to test but getting an error
/apps/ycsb/ycsb-0.17.0/bin/ycsb load mongodb-async -P ../workloads/workloada -p mongodb.database=YCSB_Testing
-p mongodb.url="mongodb+srv://userid:[email protected]/?tls=true&authMechanism=PLAIN&tlsCAFile=/apps/ycsb/YCSB-0.12.0/mongodb/root.pem"
i can connect from compass using same url.
Error:
Command line: -db site.ycsb.db.AsyncMongoDbClient -P ../workloads/workloada -p mongodb.database=YCSB_Testing -load
YCSB Client 0.17.0
Loading workload...
Starting test.
java.lang.ClassNotFoundException: site.ycsb.db.AsyncMongoDbClient
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at site.ycsb.DBFactory.newDB(DBFactory.java:38)
at site.ycsb.Client.initDb(Client.java:428)
at site.ycsb.Client.main(Client.java:311)
Exception in thread "Thread-2" java.lang.NullPointerException
at site.ycsb.ClientThread.run(ClientThread.java:91)
at java.lang.Thread.run(Thread.java:750)
[OVERALL], RunTime(ms), 1
[OVERALL], Throughput(ops/sec), 0.0
[TOTAL_GCS_PS_Scavenge], Count, 0
[TOTAL_GC_TIME_PS_Scavenge], Time(ms), 0
[TOTAL_GC_TIME_%PS_Scavenge], Time(%), 0.0
[TOTAL_GCS_PS_MarkSweep], Count, 0
[TOTAL_GC_TIME_PS_MarkSweep], Time(ms), 0
[TOTAL_GC_TIME%PS_MarkSweep], Time(%), 0.0
[TOTAL_GCs], Count, 0
[TOTAL_GC_TIME], Time(ms), 0
[TOTAL_GC_TIME%], Time(%), 0.0
Please help.
Thanks
The text was updated successfully, but these errors were encountered: