Connecting to connect to mongo DB

47 views
Skip to first unread message

pjmorce

unread,
Jun 21, 2012, 8:00:48 AM6/21/12
to sql-to-nosql-importer-discuss
Hello,

I am trying to connect to a mongoDB Database. In the import.properties
file, I have:

mongo.host=localhost
mongo.useAuth=false
mongo.user=sathis
mongo.password=mongo
mongo.db=myDB
mongo.collection=users

When executing the migration, I have the following error:

Exception in thread "main" java.util.MissingResourceException: Can't
find resource for bundle java.util.PropertyResourceBundle, key
mongo.url

As it said, I do not have any "mongo.url" parameter in the
import.properties file. However, I do not find anything saying that it
must be there and what value it has to have.

Anyone can help me about this issue?

Thank you

Regards

sathis kumar

unread,
Jun 21, 2012, 8:05:47 AM6/21/12
to sql-to-nosql-i...@googlegroups.com
Put one more property mongo.url with value same as mongo.host. Its a known issue.Planning to fix in the coming update.
--
Regards
 sathis


Reply all
Reply to author
Forward
0 new messages