Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
MapReduce output to a temp db collection failed due to unauthorization issue
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Yong Ouyang  
View profile  
 More options Sep 10 2012, 3:14 am
From: Yong Ouyang <yong.ouy...@gmail.com>
Date: Mon, 10 Sep 2012 00:14:18 -0700 (PDT)
Local: Mon, Sep 10 2012 3:14 am
Subject: MapReduce output to a temp db collection failed due to unauthorization issue

MongoDB Java Driver v2.9.0
MongoDB v2.2.0 (running as a Replica Set)

We were trying to upgrade MongoDB to v2.2.0 from v2.0.3, after upgraded the
java driver to v2.9.0 . We found that our MapReduce task (which takes input
from a collection in someAppName-TESTING DB, and outputs to a temp
collection in someAppName_temp DB) started to fail due to
unauthorization issue:

Mon Sep 10 07:30:08 [conn391]  authenticate db: someAppName-TESTING {
authenticate: 1, user: "someUsername", nonce: "a26a0d7e6b8089b3", key:
"someKey" }
Mon Sep 10 07:30:09 [conn391] mr failed, removing collection :: caused by
:: 10057 unauthorized db:someAppName_temp ns:
someAppName _temp.tmp.mr.resultsCollection_63_inc lock type:1 client:
someIPAddress

I found that there is a checkAuth(DB db) method on the DBPort class, and I
realized that the MongoDB driver might has a bug that it won't check for
authentication of the Output db for MapReduce. Is there anything I can do
to ensure that the output db is authenticated before performing a
MapReduce? Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yong Ouyang  
View profile  
 More options Sep 10 2012, 7:25 am
From: Yong Ouyang <yong.ouy...@gmail.com>
Date: Mon, 10 Sep 2012 04:25:02 -0700 (PDT)
Local: Mon, Sep 10 2012 7:25 am
Subject: Re: MapReduce output to a temp db collection failed due to unauthorization issue

I haven't looked at other drivers, but I suppose this is a driver design
issue (2 levels of authentication cache, one on the DB level, and the other
on the DBPort level). The driver has a isAuthenticated() method on DB
class, which checks whether the db has been successfully authenticated
previously. On the other hand, each connection requires authentication to
the db if we are to execute any command on that db, which is why there is a
checkAuth(db) method on DBPort class. But the drawback is now exposed that
if the output db of MapReduce is not the same as the one you issue the
MapReduce command on, DBPort will not be able to authenticate against the
output db.

I've figured out a workaround that I have to add a method to DB class to
enforce authentication, such that before sending out the MapReduce command,
I can ensure my temp db is authenticated for that connection.  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yong Ouyang  
View profile  
 More options Sep 24 2012, 10:59 pm
From: Yong Ouyang <yong.ouy...@gmail.com>
Date: Mon, 24 Sep 2012 19:59:44 -0700 (PDT)
Local: Mon, Sep 24 2012 10:59 pm
Subject: Re: MapReduce output to a temp db collection failed due to unauthorization issue
 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »