连接pentaho与Jena Fuseki的错误

时间:2017-02-19 20:37:02

标签: jdbc pentaho jena

我尝试使用"连接类型:SPARKSQL"创建一个从pentaho(7.0.0.0-25)到Jena(fuseki 2.4.1)的连接。 pentaho中的(以及localhost,port和DBname),我收到此错误:

Error connecting to database [test]         :org.pentaho.di.core.exception.KettleDatabaseException: 
Error occurred while trying to connect to the database

Error connecting to database: (using class     org.apache.hive.jdbc.SparkSqlSimbaDriver)
No suitable driver found for     jdbc:spark://localhost:3030/testSKMO;AuthMech=0;SocketTimeout=10


org.pentaho.di.core.exception.KettleDatabaseException: 
Error occurred while trying to connect to the database

Error connecting to database: (using class     org.apache.hive.jdbc.SparkSqlSimbaDriver)
No suitable driver found for     jdbc:spark://localhost:3030/testSKMO;AuthMech=0;SocketTimeout=10


at org.pentaho.di.core.database.Database.normalConnect(Database.java:472)
at org.pentaho.di.core.database.Database.connect(Database.java:370)
at org.pentaho.di.core.database.Database.connect(Database.java:341)
at org.pentaho.di.core.database.Database.connect(Database.java:331)
at org.pentaho.di.core.database.DatabaseFactory.getConnectionTestReport(DatabaseFactory.java:80)
at org.pentaho.di.core.database.DatabaseMeta.testConnection(DatabaseMeta.java:2795)
at org.pentaho.ui.database.event.DataHandler.testDatabaseConnection(DataHandler.java:598)
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.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:313)
at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:157)
at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:141)
at org.pentaho.ui.xul.swt.tags.SwtButton.access$500(SwtButton.java:43)
at org.pentaho.ui.xul.swt.tags.SwtButton$4.widgetSelected(SwtButton.java:137)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.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.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.pentaho.di.ui.xul.KettleDialog.show(KettleDialog.java:80)
at org.pentaho.di.ui.xul.KettleDialog.show(KettleDialog.java:47)
at org.pentaho.di.ui.core.database.dialog.XulDatabaseDialog.open(XulDatabaseDialog.java:116)
at org.pentaho.di.ui.core.database.dialog.DatabaseDialog.open(DatabaseDialog.java:60)
at org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate.newConnection(SpoonDBDelegate.java:475)
at org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate.newConnection(SpoonDBDelegate.java:462)
at org.pentaho.di.ui.spoon.Spoon.doubleClickedInTree(Spoon.java:3066)
at org.pentaho.di.ui.spoon.Spoon.doubleClickedInTree(Spoon.java:3036)
at org.pentaho.di.ui.spoon.Spoon.access$2200(Spoon.java:361)
at org.pentaho.di.ui.spoon.Spoon$26.widgetDefaultSelected(Spoon.java:6169)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.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:1359)
at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7990)
at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9290)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:685)
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.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
Caused by: org.pentaho.di.core.exception.KettleDatabaseException: 
Error connecting to database: (using class     org.apache.hive.jdbc.SparkSqlSimbaDriver)
No suitable driver found for     jdbc:spark://localhost:3030/testSKMO;AuthMech=0;SocketTimeout=10

at     org.pentaho.di.core.database.Database.connectUsingClass(Database.java:585)
at org.pentaho.di.core.database.Database.normalConnect(Database.java:456)
... 48 more
Caused by: java.sql.SQLException: No suitable driver found for     jdbc:spark://localhost:3030/testSKMO;AuthMech=0;SocketTimeout=10
at java.sql.DriverManager.getConnection(DriverManager.java:689)
at java.sql.DriverManager.getConnection(DriverManager.java:270)
at     org.pentaho.di.core.database.Database.connectUsingClass(Database.java:571)
    ... 49 more

Hostname       :localhost
Port           :3030
Database name  :testSKMO

我已下载.jar文件" jena-jdbc-driver-bundle-3.1.0.jar" (包含驱动程序到Jena连接)和" pentaho-big-data-kettle-plugins-hive.jar" (包含" SparkSQLSimbaDriver"类,该类看起来像导致错误)并且我尝试了一些事情:

  • 将该.jar放入Pentaho / data-integration / lib
  • 创建一个新文件夹Pentaho / data-integration / libext / JDBC并将.jar放入其中。

在这两种情况下仍会出现相同的错误。

有人有任何想法或暗示要解决它吗? 最后,问题是如何将Pentaho与Jena联系起来。

谢谢!

1 个答案:

答案 0 :(得分:1)

要将Pentaho与Jena联系起来,你必须:

  • put" jena-jdbc-driver-bundle-3.1.0.jar" (它包含与Jena连接的驱动程序)Pentaho / data-integration / lib /

  • 文件夹
  • 使用连接类型" Generic" (在Pentaho中,当您创建新连接时)。可能这就是问题的关键

  • 在此连接中定义" jdbc:jena:remote:update = http://localhost:3030/name_of_dataset/update" (在我的例子中)像自定义连接URL和" org.apache.jena.jdbc.remote.RemoteEndpointDriver"像司机班

......并且......去!!