Using Profiles to Read and Write Data
For example, if you are writing single line records to text files on HDFS, you could use the built-in HdfsTextSimple profile. You specify this profile when you create the PXF external table used to write the data to HDFS.
- HDFS File Data (Read + Write)
- Hive (Read only)
- HBase (Read only)
- JSON (Read only)
You can specify a built-in profile when you want to read data that exists inside HDFS files, Hive tables, HBase tables, or JSON files, and when you want to write data into HDFS files.
Adding and Updating Profiles
Each profile has a mandatory unique name and an optional description. In addition, each profile contains a set of plug-ins that are an extensible set of metadata attributes. Administrators can add new profiles or edit the built-in profiles defined in /etc/pxf/conf/pxf-profiles.xml
.
After you make changes in pxf-profiles.xml
(or any other PXF configuration file), propagate the changes to all nodes with PXF installed, and then restart the PXF service on all nodes.