Y丶Tao12138 Y丶Tao12138
关注数: 33 粉丝数: 18 发帖数: 681 关注贴吧数: 33
kettle 抽取mangodb数据 code 18 auth fails 在windows环境下运行没有问题,在linux环境下运行就会报错,求解。 2017/09/26 11:15:12 - delete.0 - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0) org.pentaho.di.core.exception.KettleException: com.mongodb.CommandFailureException: { "serverUsed" : "xxxx:27017" , "code" : 18 , "ok" : 0.0 , "errmsg" : "auth fails"} { "serverUsed" : "121.40.150.141:27017" , "code" : 18 , "ok" : 0.0 , "errmsg" : "auth fails"} at org.pentaho.di.trans.steps.mongodbinput.MongoDbInput.processRow(MongoDbInput.java:138) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) at java.lang.Thread.run(Thread.java:745) Caused by: com.mongodb.CommandFailureException: { "serverUsed" : "xxxx:27017" , "code" : 18 , "ok" : 0.0 , "errmsg" : "auth fails"} at com.mongodb.CommandResult.getException(CommandResult.java:76) at com.mongodb.CommandResult.throwOnError(CommandResult.java:140) at com.mongodb.DBPort$NativeAuthenticator.authenticate(DBPort.java:986) at com.mongodb.DBPort.authenticate(DBPort.java:432) at com.mongodb.DBPort.checkAuth(DBPort.java:443) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:289) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:269) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66) at com.mongodb.DBCursor._check(DBCursor.java:498) at com.mongodb.DBCursor._hasNext(DBCursor.java:621) at com.mongodb.DBCursor.hasNext(DBCursor.java:657) at org.pentaho.mongo.wrapper.cursor.DefaultCursorWrapper.hasNext(DefaultCursorWrapper.java:34) at org.pentaho.di.trans.steps.mongodbinput.MongoDbInput.processRow(MongoDbInput.java:87) ... 2 more 2017/09/26 11:15:12 - szse_stock_notice.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Unexpected error 2017/09/26 11:15:12 - szse_stock_notice.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : org.pentaho.di.core.exception.KettleException: 2017/09/26 11:15:12 - szse_stock_notice.0 - com.mongodb.CommandFailureException: { "serverUsed" : "121.40.150.141:27017" , "code" : 18 , "ok" : 0.0 , "errmsg" : "auth fails"} 2017/09/26 11:15:12 - szse_stock_notice.0 - { "serverUsed" : "xxxx:27017" , "code" : 18 , "ok" : 0.0 , "errmsg" : "auth fails"} 2017/09/26 11:15:12 - szse_stock_notice.0 -
1 下一页