Hortonworks Knowledgebase
HOWTO: Working with Files in HCatalog Tables
ISSUE:
How can I use HCatalog to discover which files are associated with a partition in a table so that the files can be read directly from HDFS?
How do I place files in HDFS and then add them as a new partition to an existing table?
SOLUTION:
This document describes how to use HCatalog to discover which files are associated with a particular partition in a table so that those files can be read directly from HDFS, and how to place files in HDFS and then add them as a new partition to an existing table.
If you installed the code as tarballs, you will need to know the following before starting:
- hadoop_home: location where Hadoop is installed on your client machine. For example, if you did an install under /home/hadoop/hdp10/hadoop then this will be your hadoop_home value.
- hcat_home location where the HCatalog client is installed on your client machine.
…