1

我正在使用 Hortonworks (HDP) 沙盒,并在此基础上安装 HAWQ 2.0

我正在尝试使用hcatalog但无法从 HAWQ 访问配置单元表来选择配置单元表。执行关键文档中提到的以下步骤。

postgres=# SET pxf_service_address TO "localhost:51200";

SET

postgres=# select count(*) from hcatalog.default.sample_07;


ERROR: remote component error (500) from 'localhost:51200': type Exception report message Internal server error. Property "METADATA" has no value in current request description The server encountered an internal error that prevented it from fulfilling this request. exception java.lang.IllegalArgumentException: Internal server error. Property "METADATA" has no value in current request (libchurl.c:878)

LINE 1: select count(*) from hcatalog.default.sample_07;
4

1 回答 1

2

我认为 pxf-profile.xml 中缺少属性检查您是否在配置文件<metadata>下有属性Hive

这是新添加的配置文件,如果您使用的是旧版本,它可能没有它。 <profile> <name>Hive</name> <description>This profile is suitable for using when connecting to Hive</description> <plugins> <fragmenter>org.apache.hawq.pxf.plugins.hive.HiveDataFragmenter</fragmenter> <accessor>org.apache.hawq.pxf.plugins.hive.HiveAccessor</accessor> <resolver>org.apache.hawq.pxf.plugins.hive.HiveResolver</resolver> <metadata>org.apache.hawq.pxf.plugins.hive.HiveMetadataFetcher</metadata> </plugins> </profile>

于 2016-06-23T17:53:03.423 回答