Repository: ambari Updated Branches: refs/heads/branch-2.5 a8887c445 -> ccaa4a8a0
AMBARI-19805. Add outputFormat attribute to all PXF Hive-related profiles. Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ccaa4a8a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ccaa4a8a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ccaa4a8a Branch: refs/heads/branch-2.5 Commit: ccaa4a8a0b51dd3436db9bff9cbbb13e9455ec7c Parents: a8887c4 Author: Oleksandr Diachenko <[email protected]> Authored: Thu Feb 2 16:01:24 2017 -0800 Committer: Oleksandr Diachenko <[email protected]> Committed: Thu Feb 2 16:01:24 2017 -0800 ---------------------------------------------------------------------- .../PXF/3.0.0/configuration/pxf-profiles.xml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/ccaa4a8a/ambari-server/src/main/resources/common-services/PXF/3.0.0/configuration/pxf-profiles.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/PXF/3.0.0/configuration/pxf-profiles.xml b/ambari-server/src/main/resources/common-services/PXF/3.0.0/configuration/pxf-profiles.xml index 77aa4fc..a3e587d 100644 --- a/ambari-server/src/main/resources/common-services/PXF/3.0.0/configuration/pxf-profiles.xml +++ b/ambari-server/src/main/resources/common-services/PXF/3.0.0/configuration/pxf-profiles.xml @@ -71,12 +71,16 @@ under the License. </profile> <profile> <name>Hive</name> - <description>This profile is suitable for using when connecting to Hive</description> + <description> + This profile is suitable for using when connecting to Hive. + Supports GPDBWritable output format, as specified in FORMAT header parameter. + </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> + <outputFormat>org.apache.hawq.pxf.service.io.GPDBWritable</outputFormat> </plugins> </profile> <profile> @@ -85,12 +89,15 @@ under the License. and serialized with either the ColumnarSerDe or the LazyBinaryColumnarSerDe. It is much faster than the general purpose Hive profile. DELIMITER parameter is mandatory. + Supports both GPDBWritable and TEXT output formats, as specified in FORMAT header parameter. + Primary optimized for TEXT output format. </description> <plugins> <fragmenter>org.apache.hawq.pxf.plugins.hive.HiveInputFormatFragmenter</fragmenter> <accessor>org.apache.hawq.pxf.plugins.hive.HiveRCFileAccessor</accessor> <resolver>org.apache.hawq.pxf.plugins.hive.HiveColumnarSerdeResolver</resolver> <metadata>org.apache.hawq.pxf.plugins.hive.HiveMetadataFetcher</metadata> + <outputFormat>org.apache.hawq.pxf.service.io.Text</outputFormat> </plugins> </profile> <profile> @@ -98,12 +105,15 @@ under the License. <description>This profile is suitable only for Hive tables stored as Text files. It is much faster than the general purpose Hive profile. DELIMITER parameter is mandatory. + Supports both GPDBWritable and TEXT output formats, as specified in FORMAT header parameter. + Primary optimized for TEXT output format. </description> <plugins> <fragmenter>org.apache.hawq.pxf.plugins.hive.HiveInputFormatFragmenter</fragmenter> <accessor>org.apache.hawq.pxf.plugins.hive.HiveLineBreakAccessor</accessor> <resolver>org.apache.hawq.pxf.plugins.hive.HiveStringPassResolver</resolver> <metadata>org.apache.hawq.pxf.plugins.hive.HiveMetadataFetcher</metadata> + <outputFormat>org.apache.hawq.pxf.service.io.Text</outputFormat> </plugins> </profile> <profile> @@ -111,13 +121,14 @@ under the License. <description>This profile is suitable only for Hive tables stored in ORC files and serialized with either the ColumnarSerDe or the LazyBinaryColumnarSerDe. It is much faster than the general purpose Hive profile. - DELIMITER parameter is mandatory. + Supports GPDBWritable output format, as specified in FORMAT header parameter. </description> <plugins> <fragmenter>org.apache.hawq.pxf.plugins.hive.HiveInputFormatFragmenter</fragmenter> <accessor>org.apache.hawq.pxf.plugins.hive.HiveORCAccessor</accessor> <resolver>org.apache.hawq.pxf.plugins.hive.HiveORCSerdeResolver</resolver> <metadata>org.apache.hawq.pxf.plugins.hive.HiveMetadataFetcher</metadata> + <outputFormat>org.apache.hawq.pxf.service.io.GPDBWritable</outputFormat> </plugins> </profile> <profile>
