hawq 通过pxf 如何访问hdfs数据

xhj0210 2017-04-11 04:32:07
template1=# create external table pxf_hdfs_textsimple(location text,month text ,num_orders int ,total_sales float8) LOCATION ('pxf://mdw:51200/data/pxf_examples/pxf_hdfs_simple.txt?PROFILE=HdfsTextSimple') FORMAT 'TEXT' (delimiter=E',');
template1=# \d pxf_hdfs_textsimple
External table "public.pxf_hdfs_textsimple"
Column | Type | Modifiers
-------------+------------------+-----------
location | text |
month | text |
num_orders | integer |
total_sales | double precision |
Type: readable
Encoding: UTF8
Format type: text
Format options: delimiter ',' null '\N' escape '\'
External location: pxf://mdw:51200/data/pxf_examples/pxf_hdfs_simple.txt?PROFILE=HdfsTextSimple

template1=# select * from pxf_hdfs_textsimple ;
ERROR: remote component error (0): (libchurl.c:897)
...全文
974 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_27510557 2018-11-06
  • 打赏
  • 举报
回复
你好,能分享一下怎么安装的pxf吗
xhj0210 2017-04-14
  • 打赏
  • 举报
回复
需要安装HAWQ编译时依赖的jar包,建立外表时,pxf协议用IP,尽量不要用主机名。

956

社区成员

发帖
与我相关
我的任务
社区描述
PostgreSQL相关内容讨论
sql数据库数据库架构 技术论坛(原bbs)
社区管理员
  • PostgreSQL社区
  • yang_z_1
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧