2014-01-07 25 views
5

ペンタホを使用するのは非常に新しいです。このソフトウェアをMS SQL Server(Native)に接続する必要があります。私はすでに多くの時間を接続しようとしますが、接続をテストするたびに失敗しました。 これは、接続をテストするたびに発生するエラーメッセージです。PentahoをMS SQL 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

+0

ネイティブモードでSQL Serverに接続するには、Javaがsqlauth.dllファイルを検出できる必要があります。私はspoon.batファイルを修正し、そこにsqlauth.dllファイルへのパスを提供することでこの問題を解決しました。私はそれを行うより良い方法があると思うが、まだ試していない。ホストとポートが正しいと確信していますか? –

+0

はい、ホストとポートが正しいと確信しています。この問題の解決方法を教えてください。私はこのソフトウェアを使用することで非常に新しいです。私はちょうど約3日間それを学んだ。 – crystal

答えて

0

私はあなたがこれらの手順に従ったりしているかどうか知らないnot.but私はtomcat-> libにに追加::言及

1>最初のMS SQL Server用のJDBCドライバを追加したいもの。 あるsqljdbc4.jar

は、私はそれが有用であると思います下の画像 enter image description here

を見つけます。

+0

私はすでにあなたが示しているように従います。しかし、それでも接続できませんでした。他の提案はありますか? – crystal

+0

tomcatもサーバーにインストールする必要はありますか? – crystal

+0

いいえ不要です – bajrangi

0

SQL Serverの "Inregratedsecurity"認証機能を使用するには、sqljdbc_auth.dllをBAサーバーの "〜\ tomcat \ bin"の場所にコピーし、BAサーバーを再起動する必要があります。

願っています。

0

Pentahoの\デザイン・ツールを\に追加する(32ビットおよび64ビットバージョンの差分)Pentahoの\ Javaの\ビン と "sqljdbc_authを" \する "sqljdbc41.jar" \データ統合\

0
libにここ

は、Microsoft SQL ServerにPentahoのPDIを接続するために私のために働いていたものです:

  1. hereからSQL Serverの(V4.0)のための公式のMicrosoft JDBCドライバをダウンロードしてください。

  2. 2つのjarファイルがバンドルされているため、 "sqljdbc4.jar"ファイルをパスdata-integration\libにコピーします。

  3. ペンタホを再起動し、接続をもう一度試してくださいMS SQL server(Native)

注:私はPentahoのPDI(やかん)のために、このメソッドを使用しますが、それはスイートの製品の残りのために働く必要があります。

注2:Windowsを使用している場合でも、「.exe」の代わりに「.tar.gz」ファイルをダウンロードすることができます。これは、Pentahoのためだけに使用しているためです。

5

統合セキュリティの設定

は、統合セキュリティを使用してデータベースに接続するには、次の手順を実行する必要があります:

  • ダウンロードMicrosoft JDBCドライバ4。2 https://www.microsoft.com/en-us/download/details.aspx?id=11774
  • 解凍し、一時ディレクトリ
  • 閉じるスプーン
  • コピーパッケージの '< tempディレクトリ> \ sqljdbc_4.2 \ ENU \認証\ X86 \ sqljdbc_auth.dll' C」へ:\プログラムファイル(x86の) \ Javaの\ jre1.8.0_73ビン(32ビット)

  • コピー '< tempディレクトリ\ > \ sqljdbc_4.2 \ ENU \ sqljdbc42.jar <ケトルインストールフォルダ> \データ統合\ libに '
  • ' から'
  • オープンスプーン
  • スプーンでテスト接続
  • 一時ディレクトリを削除

Kettle、Java、JDBC Driverをより高いバージョンにアップグレードする場合は、上記の手順を繰り返す必要があります。

+0

バージョンに依存しないフォルダにJavaをインストールすると、各Javaアップデートのファイルをコピーできなくなります –

0

Macでこれと取り組んでいます。

デフォルトでは、アーカイブを解凍するときの "root"ディレクトリはdata-integrationです。私はそれを "Pentaho"というディレクトリに移動しました。小さなことですが、明確ではありません。あなたがPentaho用に使用しているROOTディレクトリのlibサブディレクトリのJDBCドライバを必要とします。 sqljdbc42.jar - -

は、私は、最新のJDBCドライバを使用するだけで正常に動作 - AWS RDSAurora DBため mariadb-java-client-2.1.0.jarでうまく働きました。

関連する問題