Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 将Pentaho连接到MS SQL Server(本机)_Sql Server_Pentaho - Fatal编程技术网

Sql server 将Pentaho连接到MS SQL Server(本机)

Sql server 将Pentaho连接到MS SQL Server(本机),sql-server,pentaho,Sql Server,Pentaho,我对使用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 conne

我对使用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)


有人能帮我解决这个问题吗?我真的需要你的帮助。我不知道你是否遵循了这些步骤。但我想说的是:

1> 首先为ms sql server加载项添加jdbc驱动程序tomcat->libsqljdbc4.jar

找到下图

我希望这会有所帮助。

要使SQL Server的“Inregratedsecurity”身份验证功能正常工作,您必须将sqljdbc_auth.dll复制到BA服务器的“~\tomcat\bin”位置,然后重新启动BA服务器

希望这会有帮助

将“sqljdbc41.jar”添加到\Pentaho\java\bin
和“sqljdbc_auth”(32位和64位版本的差异)到\Pentaho\design tools\data integration\lib

  • 从下载官方的Microsoft JDBC SQL Server驱动程序(v4.0)

  • 它与两个jar文件捆绑在一起,将文件“sqljdbc4.jar”复制到您的路径
    data integration\lib

  • 重新启动Pentaho并再次尝试连接
    MS SQL server(本机)

  • 注意:我在Pentaho PDI(水壶)中使用了这种方法,但它应该适用于套件的其他产品


    注2:即使您使用的是windows,您也可以下载“.tar.gz”文件而不是“.exe”,因为您仅将其用于Pentaho。

    集成安全设置要连接到具有集成安全性的数据库,应执行以下步骤:

    • 在上下载Microsoft JDBC驱动程序4.2
    • 在临时目录中解压包
    • 关闭Spoon
    • 将'\sqljdbc_4.2\chs\auth\x86\sqljdbc_auth.dll'复制到'C:\Program Files(x86)\Java\jre1.8.0\u 73\bin'(32位)
    • 将'\sqljdbc_4.2\chs\sqljdbc42.jar'复制到'\data integration\lib'
    • 打开Spoon
    • 测试Spoon中的连接
    • 删除临时目录
      • 如果您将Ketter、Java、JDBC驱动程序升级到更高版本,您必须重复上述步骤

        刚刚在我的Mac上解决了这个问题

        默认情况下,解压归档文件时的“根”目录为
        数据集成
        。我把它移到了一个名为“Pentaho”的目录中——这是一件小事,但并不十分清楚——您希望lib子目录中的JDBC驱动程序脱离Pentaho使用的任何根目录


        我使用了最新的JDBC驱动程序--
        sqljdbc42.jar
        --运行良好--与
        mariadb-java-client-2.1.0.jar
        配合良好,用于
        awsrds
        上的
        Aurora DB
        ,添加了我的解决方案,因为上面没有一个完全匹配。 我得到了本文中建议的sqljdbc_auth.dll,并将其放入 数据集成\libswt\win64目录并已启动。在那之后,我能够进行身份验证

        按照步骤进行操作,然后转到Pentaho、file、new和transformation。转到“预览”选项卡,选择“转换”,单击“连接”、“新建连接”。输入默认sql server设置,如下图所示


        要以本机模式连接到SQL Server,Java必须能够找到sqlauth.dll文件。我通过修改spoon.bat文件并在那里提供sqlauth.dll文件的路径,解决了这个问题。我想有更好的方法,但我还没试过。您确定主机和端口正确吗?是的,我确定主机和端口正确。你能告诉我你是如何解决这个问题的吗?我对使用这个软件很陌生。我刚学了三天。我已经像你所展示的那样跟随了。但是,它仍然无法连接。您还有其他建议吗?我也需要在服务器上安装tomcat吗?在独立于版本的文件夹中安装Java可以防止为每个Java更新复制文件。同样,使用Microsoft JDBC Driver for SQL server 6和8,只不过文件夹结构有点不同。
        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