Просмотр исходного кода

AMBARI-15522: update pxf-profile template with new fields and description (adenissov via bhuvnesh2703)

Bhuvnesh Chaudhary 9 лет назад
Родитель
Сommit
360a09ef95

+ 19 - 29
ambari-server/src/main/resources/common-services/PXF/3.0.0/configuration/pxf-profiles.xml

@@ -63,9 +63,7 @@ under the License.
 <profiles>
     <profile>
         <name>HBase</name>
-        <description>
-          This profile is for HBase tables.
-        </description>
+        <description>This profile is suitable for using when connecting to an HBase data store engine</description>
         <plugins>
             <fragmenter>org.apache.hawq.pxf.plugins.hbase.HBaseDataFragmenter</fragmenter>
             <accessor>org.apache.hawq.pxf.plugins.hbase.HBaseAccessor</accessor>
@@ -74,45 +72,45 @@ under the License.
     </profile>
     <profile>
         <name>Hive</name>
-        <description>
-          This profile can be used for Hive tables in any Hive-supported file storage format.
-        </description>
+        <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>
     <profile>
         <name>HiveRC</name>
-        <description>
-          This profile is for Hive tables in RCFile format, serialized with either
-          ColumnarSerDe or LazyBinaryColumnarSerDe. It is much faster than the Hive profile.
-          The DELIMITER parameter is required.
+        <description>This profile is suitable only for Hive tables stored in RC files
+            and serialized with either the ColumnarSerDe or the LazyBinaryColumnarSerDe.
+            It is much faster than the general purpose Hive profile.
+            DELIMITER parameter is mandatory.
         </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>
         </plugins>
     </profile>
     <profile>
         <name>HiveText</name>
-        <description>
-          This profile is for Hive tables stored in Text files.
-          It is much faster than the Hive profile.
-          The DELIMITER parameter is required.
+        <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.
         </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>
         </plugins>
     </profile>
     <profile>
         <name>HdfsTextSimple</name>
-        <description>
-          This profile is for reading delimited single-line records from text files in HDFS.
+        <description>This profile is suitable for using when reading delimited single line records from plain text files
+            on HDFS
         </description>
         <plugins>
             <fragmenter>org.apache.hawq.pxf.plugins.hdfs.HdfsDataFragmenter</fragmenter>
@@ -122,10 +120,8 @@ under the License.
     </profile>
     <profile>
         <name>HdfsTextMulti</name>
-        <description>
-          This profile is for reading delimited single-line records or multi-line records
-          (with quoted linefeeds) from text files in HDFS. It is not splittable
-          (non-parallel) and is slower than the HdfsTextSimple profile.
+        <description>This profile is suitable for using when reading delimited single or multi line records (with quoted
+            linefeeds) from plain text files on HDFS. It is not splittable (non parallel) and slower than HdfsTextSimple.
         </description>
         <plugins>
             <fragmenter>org.apache.hawq.pxf.plugins.hdfs.HdfsDataFragmenter</fragmenter>
@@ -135,9 +131,7 @@ under the License.
     </profile>
     <profile>
         <name>Avro</name>
-        <description>
-          This profile is for reading data stored in Avro files.
-        </description>
+        <description>This profile is suitable for using when reading Avro files (i.e fileName.avro)</description>
         <plugins>
             <fragmenter>org.apache.hawq.pxf.plugins.hdfs.HdfsDataFragmenter</fragmenter>
             <accessor>org.apache.hawq.pxf.plugins.hdfs.AvroFileAccessor</accessor>
@@ -147,9 +141,7 @@ under the License.
     <profile>
         <name>SequenceWritable</name>
         <description>
-          This profile is for Hadoop Sequence files serialized with a custom Writable
-          class. Provide the name of the custom class with the "data-schema" parameter.
-          For example: pxf://nn:51200/path-to-file?Profile=SequenceWritable&amp;data-schema=CustomClass
+            Profile for accessing Sequence files serialized with a custom Writable class
         </description>
         <plugins>
             <fragmenter>org.apache.hawq.pxf.plugins.hdfs.HdfsDataFragmenter</fragmenter>
@@ -159,9 +151,7 @@ under the License.
     </profile>
     <profile>
         <name>GemFireXD</name>
-        <description>
-          This profile is for tables in GemFireXD.
-        </description>
+        <description>This profile is suitable for using when connecting to GemFireXD</description>
         <plugins>
             <fragmenter>org.apache.hawq.pxf.plugins.gemfirexd.GemFireXDFragmenter</fragmenter>
             <accessor>org.apache.hawq.pxf.plugins.gemfirexd.GemFireXDAccessor</accessor>