error connecting pentaho with Jena Fuseki
我正在尝试在pentaho中使用"连接类型:SPARKSQL "(以及localhost,端口和DBname)创建从pentaho(7.0.0.0-25)到Jena(fuseki 2.4.1)的连接,并且出现此错误:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | 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连接起来。
谢谢!
要将Pentaho与Jena连接起来,您必须:
-
在文件夹Pentaho / data-integration / lib /
中放入" jena-jdbc-driver-bundle-3.1.0.jar"(其中包含与Jena连接的驱动程序)
-
使用连接类型"通用"(在Pentaho中,当您创建新连接时)。可能就是问题的关键
-
在这种情况下,
定义" jdbc:jena:remote:update = http:// localhost:3030 / name_of_dataset / update"(在我的情况下),例如自定义连接URL和" org.apache.jena.jdbc.remote" .RemoteEndpointDriver",例如驱动程序类
...然后...去!!