开发者社区 问答 正文

使用pxf访问外接表,查询提示错误

hawqgsdb=# select count(*) from retail_demo.customers_dim_pxf;
ERROR: remote component error (500) from '192.168.21.3:51200': type Exception report message File /retail_demo/customers_dim/customers_dim.tsv.gz does not exist description The server encountered an internal error that prevented it from fulfilling this request. exception java.io.IOException: File /retail_demo/customers_dim/customers_dim.tsv.gz does not exist (libchurl.c:897) (seg2 dataserver1:40000 pid=707258) (dispatcher.c:1805)
DETAIL: External table customers_dim_pxf, file pxf://192.168.21.8:51200/retail_demo/customers_dim/customers_dim.tsv.gz?profile=HdfsTextSimple

展开
收起
jasligea 2018-11-10 17:33:00 3356 分享 版权
1 条回答
写回答
取消 提交回答
  • 引起上图的问题,主要是hdfs的相关配置文件,信息不正确造成的,可以把hdfs的配置文件,core-site.xml,hdfs-site.xml,mapred-env.sh,yarn-site.xml
    ,slaves等保证正确后,重启pxf服务即可

    2019-07-17 23:13:23
    赞同 展开评论
问答地址: