私はPENTAHOを使うのはとても新しいです。このソフトウェアをMSSQL Server(ネイティブ)に接続する必要があります。私はすでに何度も接続しようとしましたが、接続をテストするたびに失敗しました。これは、接続をテストするたびに発生するエラーメッセージです。
Error connecting to database [sutera] :
org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database
Error connecting to database: (using class
com.Microsoft.sqlserver.jdbc.SQLServerDriver)
The TCP/IP connection to the Host 172.16.1.133, port 1433 has failed. Error: "connect timed out. Verify the connection properties, check that an instance of SQL Server is running on the Host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database
Error connecting to database: (using class com.Microsoft.sqlserver.jdbc.SQLServerDriver)
The TCP/IP connection to the Host 172.16.1.133, port 1433 has failed. Error: "connect timed out. Verify the connection properties, check that an instance of SQL Server is running on the Host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
at org.pentaho.di.core.database.Database.normalConnect(Database.Java:368)
at org.pentaho.di.core.database.Database.connect(Database.Java:317)
at org.pentaho.di.core.database.Database.connect(Database.Java:279)
at org.pentaho.di.core.database.Database.connect(Database.Java:269)
at org.pentaho.di.core.database.DatabaseFactory.getConnectionTestReport(DatabaseFactory.Java:86)
at org.pentaho.di.core.database.DatabaseMeta.testConnection(DatabaseMeta.Java:2464)
at org.pentaho.ui.database.event.DataHandler.testDatabaseConnection(DataHandler.Java:533)
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:329)
at org.pentaho.ui.xul.swing.tags.SwingButton$OnClickRunnable.run(SwingButton.Java:58)
at Java.awt.event.InvocationEvent.dispatch(Unknown Source)
at Java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at Java.awt.EventQueue.access$200(Unknown Source)
at Java.awt.EventQueue$3.run(Unknown Source)
at Java.awt.EventQueue$3.run(Unknown Source)
at Java.security.AccessController.doPrivileged(Native Method)
at Java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at Java.awt.EventQueue.dispatchEvent(Unknown Source)
at Java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at Java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at Java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at Java.awt.WaitDispatchSupport$2.run(Unknown Source)
at Java.awt.WaitDispatchSupport$4.run(Unknown Source)
at Java.security.AccessController.doPrivileged(Native Method)
at Java.awt.WaitDispatchSupport.enter(Unknown Source)
at Java.awt.Dialog.show(Unknown Source)
at Java.awt.Component.show(Unknown Source)
at Java.awt.Component.setVisible(Unknown Source)
at Java.awt.Window.setVisible(Unknown Source)
at Java.awt.Dialog.setVisible(Unknown Source)
at org.pentaho.ui.xul.swing.tags.SwingDialog.show(SwingDialog.Java:234)
at org.pentaho.reporting.ui.datasources.jdbc.ui.XulDatabaseDialog.open(XulDatabaseDialog.Java:256)
at org.pentaho.reporting.ui.datasources.jdbc.ui.ConnectionPanel$EditDataSourceAction.actionPerformed(ConnectionPanel.Java:162)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at Java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at Java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at Java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at Java.awt.Component.processEvent(Unknown Source)
at Java.awt.Container.processEvent(Unknown Source)
at Java.awt.Component.dispatchEventImpl(Unknown Source)
at Java.awt.Container.dispatchEventImpl(Unknown Source)
at Java.awt.Component.dispatchEvent(Unknown Source)
at Java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at Java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at Java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at Java.awt.Container.dispatchEventImpl(Unknown Source)
at Java.awt.Window.dispatchEventImpl(Unknown Source)
at Java.awt.Component.dispatchEvent(Unknown Source)
at Java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at Java.awt.EventQueue.access$200(Unknown Source)
at Java.awt.EventQueue$3.run(Unknown Source)
at Java.awt.EventQueue$3.run(Unknown Source)
at Java.security.AccessController.doPrivileged(Native Method)
at Java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at Java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at Java.awt.EventQueue$4.run(Unknown Source)
at Java.awt.EventQueue$4.run(Unknown Source)
at Java.security.AccessController.doPrivileged(Native Method)
at Java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at Java.awt.EventQueue.dispatchEvent(Unknown Source)
at Java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at Java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at Java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at Java.awt.WaitDispatchSupport$2.run(Unknown Source)
at Java.awt.WaitDispatchSupport$4.run(Unknown Source)
at Java.security.AccessController.doPrivileged(Native Method)
at Java.awt.WaitDispatchSupport.enter(Unknown Source)
at Java.awt.Dialog.show(Unknown Source)
at Java.awt.Component.show(Unknown Source)
at Java.awt.Component.setVisible(Unknown Source)
at Java.awt.Window.setVisible(Unknown Source)
at Java.awt.Dialog.setVisible(Unknown Source)
at org.pentaho.reporting.libraries.designtime.swing.CommonDialog.performEdit(CommonDialog.Java:156)
at org.pentaho.reporting.ui.datasources.jdbc.ui.JdbcDataSourceDialog.performConfiguration(JdbcDataSourceDialog.Java:759)
at org.pentaho.reporting.ui.datasources.jdbc.JdbcDataSourcePlugin.performEdit(JdbcDataSourcePlugin.Java:67)
at org.pentaho.reporting.designer.core.actions.report.AddDataFactoryAction.actionPerformed(AddDataFactoryAction.Java:79)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at Java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at Java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at Java.awt.Component.processEvent(Unknown Source)
at Java.awt.Container.processEvent(Unknown Source)
at Java.awt.Component.dispatchEventImpl(Unknown Source)
at Java.awt.Container.dispatchEventImpl(Unknown Source)
at Java.awt.Component.dispatchEvent(Unknown Source)
at Java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at Java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at Java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at Java.awt.Container.dispatchEventImpl(Unknown Source)
at Java.awt.Window.dispatchEventImpl(Unknown Source)
at Java.awt.Component.dispatchEvent(Unknown Source)
at Java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at Java.awt.EventQueue.access$200(Unknown Source)
at Java.awt.EventQueue$3.run(Unknown Source)
at Java.awt.EventQueue$3.run(Unknown Source)
at Java.security.AccessController.doPrivileged(Native Method)
at Java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at Java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at Java.awt.EventQueue$4.run(Unknown Source)
at Java.awt.EventQueue$4.run(Unknown Source)
at Java.security.AccessController.doPrivileged(Native Method)
at Java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at Java.awt.EventQueue.dispatchEvent(Unknown Source)
at Java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at Java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at Java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at Java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at Java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at Java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
Error connecting to database: (using class com.Microsoft.sqlserver.jdbc.SQLServerDriver)
The TCP/IP connection to the Host 172.16.1.133, port 1433 has failed. Error: "connect timed out. Verify the connection properties, check that an instance of SQL Server is running on the Host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
at org.pentaho.di.core.database.Database.connectUsingClass(Database.Java:504)
at org.pentaho.di.core.database.Database.normalConnect(Database.Java:352)
... 122 more
Caused by: com.Microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the Host 172.16.1.133, port 1433 has failed. Error: "connect timed out. Verify the connection properties, check that an instance of SQL Server is running on the Host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
at com.Microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.Java:170)
at com.Microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.Java:104
9)
at
com.Microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.Java:833)
at
com.Microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.Java:716)
at com.Microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.Java:841)
at Java.sql.DriverManager.getConnection(Unknown Source)
at Java.sql.DriverManager.getConnection(Unknown Source)
at org.pentaho.di.core.database.Database.connectUsingClass(Database.Java:478)
... 123 more
誰かが私がこの問題を解決するのを手伝ってくれる?私は本当にあなたの助けが必要です。 TQ
統合セキュリティ設定
統合されたセキュリティでデータベースに接続するには、次の手順を実行する必要があります。
'<temp directory>\sqljdbc_4.2\enu\auth\x86\sqljdbc_auth.dll'を 'C:\ Program Files(x86)\ Java\jre1.8.0_73\bin'(32ビット)にコピーします
Kettle、Java、JDBC Driverをより高いバージョンにアップグレードする場合は、上記の手順を繰り返す必要があります
PentahoPDIをMicrosoftSQLServerに接続するために私が働いたのは次のとおりです。
SQL Server(v4.0)用の公式Microsoft JDBCドライバーを ここ からダウンロードします。
2つのjarファイルがバンドルされています。ファイル「sqljdbc4.jar」をパス_data-integration\lib
_にコピーします。
Pentahoを再起動し、接続MS SQL server(Native)
を再試行します。
注:この方法はPentaho PDI(Kettle)で使用しましたが、スイートの他の製品でも機能するはずです。
注2:Windowsを使用している場合でも、Pentaho専用であるため、「。exe」の代わりに「.tar.gz」ファイルをダウンロードできます。
上記のどれも完全に一致しないため、私のソリューションを追加します。この記事で提案されているようにsqljdbc_auth.dllを取得し、それをdata-integration\libswt\win64ディレクトリに配置して、Spoonを起動しました。その後、認証することができました。
SQL Serverの「Inregratedsecurity」認証機能を機能させるには、sqljdbc_auth.dllをBAサーバーの「〜\ Tomcat\bin」の場所にコピーして、BAサーバーを再起動する必要があります。
これがお役に立てば幸いです。
あなたがこれらのステップに従ったかどうかはわかりませんが、私が言及したいこと::
1>最初にmssqlサーバーのjdbcドライバーを追加しますTomcat-> lib。 sqljdbc4.jar
下の画像を見つけてください
お役に立てば幸いです。
私のMacでこれと格闘した。
デフォルトでは、アーカイブを解凍するときの「ルート」ディレクトリはdata-integration
です。私はそれを「Pentaho」と呼ばれるディレクトリに移動しました-それは小さなことですが、正確には明確ではありません-Pentahoに使用しているROOTディレクトリからlibサブディレクトリにJDBCドライバが必要です。
最新のJDBCドライバーを使用しました--sqljdbc42.jar
-正常に動作します-mariadb-Java-client-2.1.0.jar
のAurora DB
のAWS RDS
で正常に動作しました。
「sqljdbc41.jar」を\ Pentaho\Java\binに追加し、「sqljdbc_auth」(32ビットバージョンと64ビットバージョンの差分)を\ Pentaho\design-tools\data-integration\libに追加します。