brianfrankcooper / YCSB

Yahoo! Cloud Serving Benchmark
Apache License 2.0
4.94k stars 2.24k forks source link

0.17.0 version with mongodb option table is invalid #1656

Open orangeskyyy opened 1 year ago

orangeskyyy commented 1 year ago

hello everyone,i have a problem with when i run command like this ./ycsb load mongodb -threads 16 -P ../workloads/insertTest -p fieldcount=1 -p fieldlength=1024 -p clientbuffering=true -p **table=millionTest** -p mongodb.url=mongodb://root:xxx@xxxx:27017/?authMechanism=SCRAM-SHA-1&authSource=admin -p mongodb.database=testdb > ~/outputLoad.txt but the database and table dont change it is still be default value with database=tcsb , collection=usertable i want to know if the option table in new version is invalid i copy this command from others with version0.15.0

srikanthrkulkarni commented 1 year ago

You can try using the connection string along with the database name included. Which worked for me.

ex: mongodb.url=mongodb://root:xxx@xxxx:27017/testdb/?authMechanism=SCRAM-SHA-1&authSource=admin