You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hawq.apache.org by qiutongxin <42...@qq.com> on 2017/05/25 06:48:36 UTC
pxf errors
Hi,all
I use pxf to access HDFS File Data,but now there are some errors appear
postgres=# CREATE EXTERNAL TABLE pxf_hdfs_textsimple(location text, month text, num_orders int, total_sales float8) LOCATION ('pxf://ns1/data/pxf_examples/pxf_hdfs_simple.txt?PROFILE=HdfsTextSimple') FORMAT 'TEXT' (delimiter=E',');
CREATE EXTERNAL TABLE:
postgres=# select * from pxf_hdfs_textsimple;
ERROR: remote component error (0): (libchurl.c:897)
ns1 :hdfs HA namespace
Re: pxf errors
Posted by Vineet Goel <vv...@apache.org>.
You could also try to test the external table DDL with a specific host and
port number instead of of nameservice and see if that works. Ensure that
PXF is installed on your NN host. See:
https://hdb.docs.pivotal.io/220/hawq/pxf/PXFExternalTableandAPIReference.html
postgres=# CREATE EXTERNAL TABLE pxf_hdfs_testme(location text, month text,
num_orders int, total_sales float8) LOCATION
('pxf://NN_host:51200/data/pxf_examples/pxf_hdfs_simple.txt?PROFILE=HdfsTextSimple')
FORMAT 'TEXT' (delimiter=E',');
Thanks
-Vineet
On Thu, May 25, 2017 at 2:39 PM Alex (Oleksandr) Diachenko <
odiachenko@pivotal.io> wrote:
> Hi,
>
> Do you have your ns1 configured as a name service for HA HDFS?
>
> Regards, Alex.
>
>
> On Wed, May 24, 2017 at 11:48 PM, qiutongxin <42...@qq.com> wrote:
>
>> Hi,all
>>
>> I use pxf to access HDFS File Data,but now there are some errors appear
>>
>> postgres=# CREATE EXTERNAL TABLE pxf_hdfs_textsimple(location text, month
>> text, num_orders int, total_sales float8) LOCATION
>> ('pxf://ns1/data/pxf_examples/pxf_hdfs_simple.txt?PROFILE=HdfsTextSimple')
>> FORMAT 'TEXT' (delimiter=E',');
>>
>> CREATE EXTERNAL TABLE:
>>
>> postgres=# select * from pxf_hdfs_textsimple;
>>
>> ERROR: remote component error (0): (libchurl.c:897)
>>
>>
>> ns1 :hdfs HA namespace
>>
>
>
Re: pxf errors
Posted by "Alex (Oleksandr) Diachenko" <od...@pivotal.io>.
Hi,
Do you have your ns1 configured as a name service for HA HDFS?
Regards, Alex.
On Wed, May 24, 2017 at 11:48 PM, qiutongxin <42...@qq.com> wrote:
> Hi,all
>
> I use pxf to access HDFS File Data,but now there are some errors appear
>
> postgres=# CREATE EXTERNAL TABLE pxf_hdfs_textsimple(location text, month
> text, num_orders int, total_sales float8) LOCATION
> ('pxf://ns1/data/pxf_examples/pxf_hdfs_simple.txt?PROFILE=HdfsTextSimple')
> FORMAT 'TEXT' (delimiter=E',');
>
> CREATE EXTERNAL TABLE:
>
> postgres=# select * from pxf_hdfs_textsimple;
>
> ERROR: remote component error (0): (libchurl.c:897)
>
>
> ns1 :hdfs HA namespace
>