Jdbc 将pentaho与Jena Fuseki连接时出错

Jdbc 将pentaho与Jena Fuseki连接时出错,jdbc,pentaho,jena,Jdbc,Pentaho,Jena,我试图在pentaho中使用“连接类型:SPARKSQL”(以及localhost、port和DBname)创建一个从pentaho(7.0.0.0-25)到Jena(fuseki 2.4.1)的连接,我得到了以下错误: Error connecting to database [test] :org.pentaho.di.core.exception.KettleDatabaseException: Error occurred while trying to connect

我试图在pentaho中使用“连接类型:SPARKSQL”(以及localhost、port和DBname)创建一个从pentaho(7.0.0.0-25)到Jena(fuseki 2.4.1)的连接,我得到了以下错误:

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 Ketter plugins hive.jar”(包含“SparkSQLSimbaDriver”类,该类看起来像是导致错误的),我尝试了一些方法:

  • 将.jar放在Pentaho/data integration/lib中
  • 创建一个新文件夹Pentaho/data integration/libext/JDBC,并将.jar放入其中
在这两种情况下,仍然得到相同的错误

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


谢谢

要连接Pentaho和Jena,您必须:

  • 将“jena-jdbc-driver-bundle-3.1.0.jar”(它包含与jena连接的驱动程序)放在Pentaho/data integration/lib文件夹中/

  • 使用连接类型“Generic”(在Pentaho中,创建新连接时)。也许,这是问题的关键

  • 在这个连接中,定义“jdbc:jena:remote:update=(在我的例子中)类似于自定义连接URL和“org.apache.jena.jdbc.remote.RemoteEndpointDriver”类似于驱动程序类

……还有。。。去吧