Skip to Content
1
Jun 28, 2020 at 09:19 AM

SAP HANA connection through Pentaho

330 Views

Hello everyone,

Im trying to establish a connection to sap hana through pentaho. I found a guide here guide_pentaho.

but I'm having this issue when I try to connect:

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


Error connecting to database: (using class com.sap.db.jdbc.Driver)
SAP DBTech JDBC: Cannot connect to jdbc:sap://hidden_on_purpose:30015 [Cannot connect to host hidden_on_purpose:30015 [Connection timed out: connect], -813.].




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


Error connecting to database: (using class com.sap.db.jdbc.Driver)
SAP DBTech JDBC: Cannot connect to jdbc:sap://hidden_on_purpose:30015 [Cannot connect to host hidden_on_purpose:30015 [Connection timed out: connect], -813.].




	at org.pentaho.di.core.database.Database.normalConnect(Database.java:493)
	at org.pentaho.di.core.database.Database.connect(Database.java:389)
	at org.pentaho.di.core.database.Database.connect(Database.java:360)
	at org.pentaho.di.core.database.Database.connect(Database.java:350)
	at org.pentaho.di.core.database.DatabaseFactory.getConnectionTestReport(DatabaseFactory.java:83)
	at org.pentaho.di.core.database.DatabaseFactory.getConnectionTestResults(DatabaseFactory.java:112)
	at org.pentaho.di.core.database.DatabaseMeta.testConnectionSuccess(DatabaseMeta.java:2848)
	at org.pentaho.ui.database.event.DataHandler.testDatabaseConnection(DataHandler.java:649)
	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.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:89)
	at org.pentaho.di.ui.xul.KettleDialog.show(KettleDialog.java:56)
	at org.pentaho.di.ui.core.database.dialog.XulDatabaseDialog.open(XulDatabaseDialog.java:117)
	at org.pentaho.di.ui.core.database.dialog.DatabaseDialog.open(DatabaseDialog.java:61)
	at org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate.editConnection(SpoonDBDelegate.java:96)
	at org.pentaho.di.ui.spoon.Spoon.doubleClickedInTree(Spoon.java:3140)
	at org.pentaho.di.ui.spoon.Spoon.doubleClickedInTree(Spoon.java:3075)
	at org.pentaho.di.ui.spoon.Spoon.access$1700(Spoon.java:373)
	at org.pentaho.di.ui.spoon.Spoon$26.widgetDefaultSelected(Spoon.java:6354)
	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:1385)
	at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7968)
	at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9350)
	at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:711)
	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: org.pentaho.di.core.exception.KettleDatabaseException: 
Error connecting to database: (using class com.sap.db.jdbc.Driver)
SAP DBTech JDBC: Cannot connect to jdbc:sap://hidden_on_purpose:30015 [Cannot connect to host hidden_on_purpose:30015 [Connection timed out: connect], -813.].


	at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:601)
	at org.pentaho.di.core.database.Database.normalConnect(Database.java:477)
	... 48 more
Caused by: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc:sap://hidden_on_purpose:30015 [Cannot connect to host hidden_on_purpose:30015 [Connection timed out: connect], -813.].
	at com.sap.db.jdbc.exceptions.SQLExceptionSapDB._newInstance(SQLExceptionSapDB.java:130)
	at com.sap.db.jdbc.exceptions.SQLExceptionSapDB._newInstance(SQLExceptionSapDB.java:207)
	at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.newInstance(SQLExceptionSapDB.java:54)
	at com.sap.db.jdbc.DriverSapDB._connect(DriverSapDB.java:2409)
	at com.sap.db.jdbc.DriverSapDB.connect(DriverSapDB.java:2063)
	at java.sql.DriverManager.getConnection(Unknown Source)
	at java.sql.DriverManager.getConnection(Unknown Source)
	at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:585)
	... 49 more


Custom URL: jdbc:sap://hidden_on_purpose:30015
Custom Driver Class: com.sap.db.jdbc.Driver