AMBARI-19805. Add outputFormat attribute to all PXF Hive-related profiles.

(cherry picked from commit ccaa4a8a0b51dd3436db9bff9cbbb13e9455ec7c)

Change-Id: I85e79118a8d6dfb61d9f17b8fc7aa50d74a66509


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/df7037ec
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/df7037ec
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/df7037ec

Branch: refs/heads/branch-feature-BUG-74026
Commit: df7037ec3db35b20a8b7222775fc0a7fdc0025b0
Parents: b09247f
Author: Oleksandr Diachenko <[email protected]>
Authored: Thu Feb 2 16:01:24 2017 -0800
Committer: Zuul <[email protected]>
Committed: Tue Feb 7 00:49:01 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/df7037ec/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>

Reply via email to