无法使用 Pentaho PDI CE 连接到 MongoDb
Unable to connect to MongoDb using Pentaho PDI CE
我是 Pentaho 的新手。我正在尝试使用 Pentaho 数据集成社区版从 MongoDB 读取数据。尝试执行 MongoDB 输入步骤时,出现身份验证失败错误。我发现,错误是由于 PDI 中缺少 MongoDb 驱动程序造成的。
后来,我下载了mongodb-driver-3.2.2.jar文件,并添加到E:\pdi-ce-6.0.1.0-386\data-integration\lib位置。但是问题依旧。
尝试通过在 Pentaho MongoDb 输入步骤中提供 MongoDb 连接详细信息来获取 Dbs 时,出现错误 java.nullpointerException。
有人可以告诉我我做错了什么吗?
尝试通过在 Spoon 中提供有效的 Mongo 服务器详细信息来获取数据库时出现错误消息:
Unable to connect to MongoDB - check connection details : 'ok' should never be null...
错误详细信息和可能异常的堆栈跟踪:
org.pentaho.di.core.exception.KettleException:
java.lang.IllegalArgumentException: 'ok' should never be null...
'ok' should never be null...
at org.pentaho.mongo.wrapper.NoAuthMongoClientWrapper.getDatabaseNames(NoAuthMongoClientWrapper.java:358)
at org.pentaho.di.ui.trans.steps.mongodbinput.MongoDbInputDialog.setupDBNames(MongoDbInputDialog.java:1442)
at org.pentaho.di.ui.trans.steps.mongodbinput.MongoDbInputDialog.access0(MongoDbInputDialog.java:82)
at org.pentaho.di.ui.trans.steps.mongodbinput.MongoDbInputDialog.widgetSelected(MongoDbInputDialog.java:450)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.pentaho.di.ui.trans.steps.mongodbinput.MongoDbInputDialog.open(MongoDbInputDialog.java:1079)
at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:124)
at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8797)
at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:3027)
at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:744)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1316)
at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7979)
at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9310)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:654)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
Caused by: java.lang.IllegalArgumentException: 'ok' should never be null...
at com.mongodb.CommandResult.ok(CommandResult.java:43)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:109)
at com.mongodb.DBPort$NativeAuthenticator.authenticate(DBPort.java:545)
at com.mongodb.DBPort.authenticate(DBPort.java:322)
at com.mongodb.DBPort.checkAuth(DBPort.java:333)
at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:243)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:216)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:288)
at com.mongodb.DB.command(DB.java:261)
at com.mongodb.DB.command(DB.java:243)
at com.mongodb.DB.command(DB.java:300)
at com.mongodb.Mongo.getDatabaseNames(Mongo.java:384)
at org.pentaho.mongo.wrapper.NoAuthMongoClientWrapper.getDatabaseNames(NoAuthMongoClientWrapper.java:353)
嗨,Aarthi Priyadharshini - 为了完成这项工作,我在此处找到 link 向您展示了确切的操作 - http://wiki.pentaho.com/display/BAD/Read+Data+From+MongoDB
由于MongoDB是一个大数据平台,它位于设计视图中的大数据选项下。观看 link 上的视频,了解具体使用方法。
在 MongoDB 输入步骤中,仅使用服务器主机名配置连接,而不指定用户名和密码,解决了问题。!!
我解决了下载最新版本 PDI 的问题
http://ci.pentaho.com/view/Data%20Integration/job/Kettle/
包含 mongo 3.2.2 的授权并且有效!
不适用于生产环境!
我是 Pentaho 的新手。我正在尝试使用 Pentaho 数据集成社区版从 MongoDB 读取数据。尝试执行 MongoDB 输入步骤时,出现身份验证失败错误。我发现,错误是由于 PDI 中缺少 MongoDb 驱动程序造成的。
后来,我下载了mongodb-driver-3.2.2.jar文件,并添加到E:\pdi-ce-6.0.1.0-386\data-integration\lib位置。但是问题依旧。
尝试通过在 Pentaho MongoDb 输入步骤中提供 MongoDb 连接详细信息来获取 Dbs 时,出现错误 java.nullpointerException。
有人可以告诉我我做错了什么吗?
尝试通过在 Spoon 中提供有效的 Mongo 服务器详细信息来获取数据库时出现错误消息:
Unable to connect to MongoDB - check connection details : 'ok' should never be null...
错误详细信息和可能异常的堆栈跟踪:
org.pentaho.di.core.exception.KettleException:
java.lang.IllegalArgumentException: 'ok' should never be null...
'ok' should never be null...
at org.pentaho.mongo.wrapper.NoAuthMongoClientWrapper.getDatabaseNames(NoAuthMongoClientWrapper.java:358)
at org.pentaho.di.ui.trans.steps.mongodbinput.MongoDbInputDialog.setupDBNames(MongoDbInputDialog.java:1442)
at org.pentaho.di.ui.trans.steps.mongodbinput.MongoDbInputDialog.access0(MongoDbInputDialog.java:82)
at org.pentaho.di.ui.trans.steps.mongodbinput.MongoDbInputDialog.widgetSelected(MongoDbInputDialog.java:450)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.pentaho.di.ui.trans.steps.mongodbinput.MongoDbInputDialog.open(MongoDbInputDialog.java:1079)
at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:124)
at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8797)
at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:3027)
at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:744)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1316)
at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7979)
at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9310)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:654)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
Caused by: java.lang.IllegalArgumentException: 'ok' should never be null...
at com.mongodb.CommandResult.ok(CommandResult.java:43)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:109)
at com.mongodb.DBPort$NativeAuthenticator.authenticate(DBPort.java:545)
at com.mongodb.DBPort.authenticate(DBPort.java:322)
at com.mongodb.DBPort.checkAuth(DBPort.java:333)
at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:243)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:216)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:288)
at com.mongodb.DB.command(DB.java:261)
at com.mongodb.DB.command(DB.java:243)
at com.mongodb.DB.command(DB.java:300)
at com.mongodb.Mongo.getDatabaseNames(Mongo.java:384)
at org.pentaho.mongo.wrapper.NoAuthMongoClientWrapper.getDatabaseNames(NoAuthMongoClientWrapper.java:353)
嗨,Aarthi Priyadharshini - 为了完成这项工作,我在此处找到 link 向您展示了确切的操作 - http://wiki.pentaho.com/display/BAD/Read+Data+From+MongoDB
由于MongoDB是一个大数据平台,它位于设计视图中的大数据选项下。观看 link 上的视频,了解具体使用方法。
在 MongoDB 输入步骤中,仅使用服务器主机名配置连接,而不指定用户名和密码,解决了问题。!!
我解决了下载最新版本 PDI 的问题
http://ci.pentaho.com/view/Data%20Integration/job/Kettle/
包含 mongo 3.2.2 的授权并且有效!
不适用于生产环境!