GreenPlum PXF-从外部表中选择 - 无效配置
我有一个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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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,此目录应包含:$ 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 calleddefault/
. For access HDFS, this directory should contain:$PXF_HOME/templates
)