com.mongodb.MongoException: not authorized for query on config.chunks

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JIRA by Kevin Brady, 1 year ago
not authorized for query on config.chunks
via JIRA by Kevin Brady, 1 year ago
not authorized for query on config.chunks
via hivmr.com by Unknown author, 2 years ago
Can't canonicalize query: BadValue unknown top level operator: $ne
via Stack Overflow by Prasanna
, 1 year ago
Unable to execute query: error processing query: ns=local.oplog.rs limit=0 skip=0 Tree: $and Sort: { $natural: -1 } Proj: {} invalid sort specified for tailable cursor: { $natural: -1 }
via Google Groups by Prasanna Ganesh, 1 year ago
Unable to execute query: error processing query: ns=local.oplog.rs limit=0 skip=0 Tree: $and Sort: { $natural: -1 } Proj: {} invalid sort specified for tailable cursor: { $natural: -1 }
via Google Groups by William Bao, 7 months ago
com.mongodb.MongoException: not authorized for query on config.chunks
at com.mongodb.MongoException.parse(MongoException.java:82)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:314)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:295)
at com.mongodb.DBCursor._check(DBCursor.java:368)
at com.mongodb.DBCursor._hasNext(DBCursor.java:459)
at com.mongodb.DBCursor.hasNext(DBCursor.java:484)
at com.mongodb.hadoop.splitter.ShardChunkMongoSplitter.calculateSplits(ShardChunkMongoSplitter.java:94)
at com.mongodb.hadoop.MongoInputFormat.getSplits(MongoInputFormat.java:58)
at org.apache.hadoop.mapreduce.JobSubmitter.writeNewSplits(JobSubmitter.java:493)
at org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:510)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:394)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1285)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1548)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1282)
at com.mongodb.hadoop.util.MongoTool.runMapReduceJob(MongoTool.java:222)
at com.mongodb.hadoop.util.MongoTool.run(MongoTool.java:96)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.