GreenPlum PXF-从外部表中选择 - 无效配置

发布于 2025-02-04 19:17:37 字数 857 浏览 4 评论 0原文

我有一个greenplum数据库启动和运行,并在HDFS中存储在/user/hadoopuser/raw/的HDFS中。 我安装并启动了PXF,并使用以下方式创建了外部表:

create external table requests(id bigint, full_name text, req_date timestamp)
location('pxf://user/hadoopuser/raw?PROFILE=hdfs:parquet') format 'CUSTOM' (formatter='pxfwritable_import')

但是当我尝试使用select *从请求中访问数据时,我会收到以下错误:

[08000] ERROR: PXF server error : invalid configuration for server 'default' (seg0 slice1 10.0.2.20:6000 pid=18636) Hint: Configure a valid value for 'pxf.fs.basePath' property for server 'default' to access the filesystem.

pxf-service.log仅包含

java.io.IOException: org.greenplum.pxf.api.error.PxfRuntimeException: invalid configuration for server 'default'

<<<的有效值是什么代码> pxf.fs.basepath ,我在哪里设置它,为什么会发生此错误?

I have a greenplum database up and running and parquet files stored in hdfs at /user/hadoopuser/raw/
I installed and launched pxf and created external table with:

create external table requests(id bigint, full_name text, req_date timestamp)
location('pxf://user/hadoopuser/raw?PROFILE=hdfs:parquet') format 'CUSTOM' (formatter='pxfwritable_import')

But when I try to access data with select * from requests I get the following error:

[08000] ERROR: PXF server error : invalid configuration for server 'default' (seg0 slice1 10.0.2.20:6000 pid=18636) Hint: Configure a valid value for 'pxf.fs.basePath' property for server 'default' to access the filesystem.

pxf-service.log only contains

java.io.IOException: org.greenplum.pxf.api.error.PxfRuntimeException: invalid configuration for server 'default'

What is the valid value for pxf.fs.basePath, where do I set it and why is this error happening?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

懒猫 2025-02-11 19:17:37

PXF存储外部数据源的配置(例如,$ pxf_home/servers/(默认值)或$ pxf_base/servers。除非您已重新定位$ pxf_base(请参阅 $ pxf_home 是/usr/locar/local/pxf-gp&lt; gpdb-major-version&gt;

$ pxf_home/服务器目录中,每个外部数据源应该有一个目录,通常称为default/。对于访问HDFS,此目录应包含:

  1. hdfs-site.xml的副本
  2. core site.xml
  3. pxf-site.xml的副本(请参阅$ pxf_home/spemplates

PXF stores configuration for external data sources (e.g., "servers") in either $PXF_HOME/servers/ (the default) or $PXF_BASE/servers. Unless you have relocated $PXF_BASE (see Relocating $PXF_BASE in the docs), it will be stored in $PXF_HOME which is /usr/local/pxf-gp<GPDB-major-version>.

In the $PXF_HOME/servers directory, there should be one directory per external data source and there typically is called default/. For access HDFS, this directory should contain:

  1. a copy of hdfs-site.xml
  2. a copy of core-site.xml
  3. a copy of pxf-site.xml (see $PXF_HOME/templates)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文