Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE EXTERNAL TABLE IF NOT EXISTS test_repo
- (
- id String,
- acct INT)
- STORED BY 'com.mongodb.hadoop.hive.MongoStorageHandler'
- WITH SERDEPROPERTIES('mongo.columns.mapping'='{"id":"_id",
- "acct ":"acct "}')
- TBLPROPERTIES('mongo.properties.path'='s3://my-bucket/hive.properties');
- java.io.IOException: com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=am0101.test.com:27101, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='dmdbxcc_write', source='dxccdb01', password=<hidden>, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication failed.' on server am0101.test.com:27101. The full response is { "ok" : 0.0, "code" : 18, "errmsg" : "Authentication failed." }}}, {address=am0102.test.com:27101, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='dmdbxcc_write', source='dxccdb01', password=<hidden>, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication failed.' on server am0102.test.com:27101. The full response is { "ok" : 0.0, "code" : 18, "errmsg" : "Authentication failed." }}}]
- at com.mongodb.hadoop.hive.input.HiveMongoInputFormat.getSplits(HiveMongoInputFormat.java:260)
- at com.mongodb.hadoop.hive.input.HiveMongoInputFormat.getSplits(HiveMongoInputFormat.java:68)
- at org.apache.hadoop.hive.ql.io.HiveInputFormat.addSplitsForGroup(HiveInputFormat.java:298)
- at org.apache.hadoop.hive.ql.io.HiveInputFormat.getSplitsInternal(HiveInputFormat.java:412)
- at org.apache.hadoop.hive.ql.io.HiveInputFormat.getSplits(HiveInputFormat.java:330)
- at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.getCombineSplits(CombineHiveInputFormat.java:311)
- at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.getSplitsInternal(CombineHiveInputFormat.java:519)
- at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.getSplits(CombineHiveInputFormat.java:463)
- at org.apache.hadoop.mapreduce.JobSubmitter.writeOldSplits(JobSubmitter.java:328)
- at org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:320)
- at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:196)
- at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1290)
- at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1287)
- at java.security.AccessController.doPrivileged(Native Method)
- at javax.security.auth.Subject.doAs(Subject.java:422)
- at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
- at org.apache.hadoop.mapreduce.Job.submit(Job.java:1287)
- at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:575)
- at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:570)
- at java.security.AccessController.doPrivileged(Native Method)
- at javax.security.auth.Subject.doAs(Subject.java:422)
- at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
- at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:570)
- at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:561)
- at org.apache.hadoop.hive.ql.exec.mr.ExecDriver.execute(ExecDriver.java:429)
- at org.apache.hadoop.hive.ql.exec.mr.MapRedTask.execute(MapRedTask.java:137)
- at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160)
- at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:85)
- at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1618)
- at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1379)
- at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1192)
- at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1019)
- at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1009)
- at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:201)
- at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:153)
- at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:364)
- at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:712)
- at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:631)
- at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:570)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
- at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
- Caused by: com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=am0101.test.com:27101, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='dmdbxcc_write', source='dxccdb01', password=<hidden>, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication failed.' on server am0101.test.com:27101. The full response is { "ok" : 0.0, "code" : 18, "errmsg" : "Authentication failed." }}}, {address=am0102.test.com:27101, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='dmdbxcc_write', source='dxccdb01', password=<hidden>, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication failed.' on server am0102.test.com:27101. The full response is { "ok" : 0.0, "code" : 18, "errmsg" : "Authentication failed." }}}]
- at com.mongodb.connection.BaseCluster.createTimeoutException(BaseCluster.java:369)
- at com.mongodb.connection.BaseCluster.selectServer(BaseCluster.java:101)
- at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.<init>(ClusterBinding.java:75)
- at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.<init>(ClusterBinding.java:71)
- at com.mongodb.binding.ClusterBinding.getReadConnectionSource(ClusterBinding.java:63)
- at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:89)
- at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:84)
- at com.mongodb.operation.CommandReadOperation.execute(CommandReadOperation.java:55)
- at com.mongodb.Mongo.execute(Mongo.java:772)
- at com.mongodb.Mongo$2.execute(Mongo.java:759)
- at com.mongodb.DB.executeCommand(DB.java:653)
- at com.mongodb.DBCollection.getStats(DBCollection.java:2083)
- at com.mongodb.hadoop.splitter.MongoSplitterFactory.getSplitterByStats(MongoSplitterFactory.java:73)
- at com.mongodb.hadoop.splitter.MongoSplitterFactory.getSplitter(MongoSplitterFactory.java:113)
- at com.mongodb.hadoop.hive.input.HiveMongoInputFormat.getSplits(HiveMongoInputFormat.java:240)
- ... 44 more
- Job Submission failed with exception 'java.io.IOException(com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=am0101.test.com:27101, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='dmdbxcc_write', source='dxccdb01', password=<hidden>, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication failed.' on server am0101.test.com:27101. The full response is { "ok" : 0.0, "code" : 18, "errmsg" : "Authentication failed." }}}, {address=am0102.test.com:27101, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='dmdbxcc_write', source='dxccdb01', password=<hidden>, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication failed.' on server am0102.test.com:27101. The full response is { "ok" : 0.0, "code" : 18, "errmsg" : "Authentication failed." }}}])'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement