Skip to content
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

R to Mongo DB authentication failing #39

Open
AarthyBS opened this issue Nov 27, 2015 · 1 comment
Open

R to Mongo DB authentication failing #39

AarthyBS opened this issue Nov 27, 2015 · 1 comment

Comments

@AarthyBS
Copy link

Hi,
I was trying to connect to mongo db in three ways.
Its mongo version 3.0.4

  1. using rmongodb - which fails with the error 'authentication failed'.
  2. using RMongo - which also fails with the following error
    Error in .jcall(rmongo.object@javaMongo, "Z", "dbAuthenticate", username, :
    java.lang.NoSuchMethodError: com.mongodb.DB.authenticate(Ljava/lang/String;[C)Z
  3. trying JDBC connection using jar files.
    drv <- JDBC("com.mongodb.MongoClient",list.files("path:/",
  • pattern="jar$",full.names=T))
    con<-dbConnect(drv,"jdbc:mongodb://host:port/dbname",user,pwd)
    again this throws the following error:
    Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1], :
    method connect with signature (Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection; not found

Can somebody help with the next step to follow.

@tianlang2013
Copy link

it`s failed that use authentication with mongoldb 3.2

it`s return false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants