Pivotal GPDB - psql错误 - 无法打开文件进行读取:没有这样的文件或目录

时间:2017-02-04 18:53:19

标签: talend greenplum hawq

我正在尝试将数据从csv文件导入到gpdb表中,但COPY命令失败并显示“没有此类文件或目录”错误消息 - 尽管事实如此 我试图阅读的文件肯定在那里。

方案

我们正在尝试使用名为SQL server的源代码中的Talend工具将数据写入名为“pivotal greenplum database”的目标系统。

其中,数据流组件称为tGreenplumBulkExec throw

错误:

    tGreenplumBulkExec_1|org.postgresql.util.PSQLException:ERROR: 
could not open file "/path/to/file.csv" for reading: No such file or directory|1

Talend数据流:

从SQL服务器读取 - >写入hdfs - > tmap - > tGreenplumOutputBulk - > tGreenplumBulkExec

详细的堆栈跟踪

Exception in component tGreenplumBulkExec_1
org.postgresql.util.PSQLException: ERROR: could not open file/path/to/file.csv for reading: No such file or directory
    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1592)
    at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1327)
    at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:192)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:336)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:328)
    at bigdata.jobname_0_1.jobname.tGreenplumBulkExec_1Process(jobname.java:10080)
    at bigdata.jobname_0_1.jobname.tJDBCInput_1Process(jobname.java:9783)
    at bigdata.jobname_0_1.jobname.runJobInTOS(jobname.java:11692)
    at bigdata.jobname_0_1.jobname.main(jobname.java:11431)
2017-02-04 13:29:39|eAM8VI|eAM8VI|eAM8VI|BIGDATA|jobname|Default|6|Java Exception|tGreenplumBulkExec_1|org.postgresql.util.PSQLException:ERROR: could not open file "/path/to/file.csv" for reading: No such file or directory|1
[statistics] disconnected
Job jobname ended at 13:29 04/02/2017. [exit code=1]

我们尝试过:

Path permission of Input file already checked.
Double checked the file path in talend component setting.

任何帮助都会受到高度赞赏吗?

0 个答案:

没有答案