Pentaho勺子错误:"连接被拒绝。检查主机名和端口是否正确以及postmaster是否接受TCP / IP连接。"

时间:2018-01-19 16:31:10

标签: postgresql pentaho pentaho-spoon pentaho-data-integration pentaho-design-studio

我是Pentaho环境中的新人。我最近在另一台计算机上安装了pentaho CE,无法预览从mongodb获取数据的简单mongoDB输入步骤结果。它给我以下错误消息: enter image description here

  

块引用   org.pentaho.di.core.exception.KettleTransException:   计算更改数据捕获日期范围时出错,可能涉及日志表trans_logs。

尝试连接数据库时出错 拒绝连接。检查主机名和端口是否正确以及postmaster是否接受TCP / IP连接。

at org.pentaho.di.trans.Trans.calculateBatchIdAndDateRange(Trans.java:2238)
at org.pentaho.di.trans.Trans.prepareExecution(Trans.java:985)
at org.pentaho.di.ui.spoon.trans.TransGraph.debug(TransGraph.java:3958)
at org.pentaho.di.ui.spoon.delegates.SpoonTransformationDelegate.executeTransformation(SpoonTransformationDelegate.java:893)
at org.pentaho.di.ui.spoon.Spoon$29$1.run(Spoon.java:8503)
at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1366)
at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:8022)
at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9277)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:692)
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)

引起:org.pentaho.di.core.exception.KettleDatabaseException: 尝试连接到数据库时出错 拒绝连接。检查主机名和端口是否正确以及postmaster是否接受TCP / IP连接。

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.trans.Trans.calculateBatchIdAndDateRange(Trans.java:2061)
... 17 more
Caused by: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:215)
    at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)
    at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:144)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29)
    at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21)
    at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:31)
    at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
    at org.postgresql.Driver.makeConnection(Driver.java:410)
    at org.postgresql.Driver.connect(Driver.java:280)
    at java.sql.DriverManager.getConnection(DriverManager.java:664)
    at java.sql.DriverManager.getConnection(DriverManager.java:247)
    at org.osjava.sj.loader.SJDataSource.getConnection(SJDataSource.java:101)
    at org.osjava.sj.loader.SJDataSource.getConnection(SJDataSource.java:81)
    at org.pentaho.di.core.database.Database.normalConnect(Database.java:431)
    ... 21 more
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at org.postgresql.core.PGStream.<init>(PGStream.java:61)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:109)
    ... 34 more

问题似乎连接到Postgres数据库时出错。如果我没有弄错的话。我是否要单独安装Postgre?如果是这样,我该如何安装和配置?我在这里堆积。有人帮帮我吗?

2 个答案:

答案 0 :(得分:0)

是的,你必须安装和配置postgresql。

答案 1 :(得分:0)

我认为如果您将Postgres jdbc连接文件(postgresql-9.3-1100.jdbc41.jar)下载并放置在位置C:\ Pentaho \ design-tools \ data-integration \ lib

重新启动数据集成器/spoon.bat文件,然后尝试,我想这可能解决了目的