The second one
HCatalog Installation HCatalog provides table data access for CDH components such as Pig, Sqoop, and MapReduce. Table definitions are maintained in the Hive metastore, which HCatalog requires. HCatalog makes the same table information available to Hive, Pig, MapReduce, and REST clients. This page explains how to install and configure HCatalog for REST access and for MapReduce and Pig access. For Sqoop, see the section on Sqoop-HCatalog integration in the Sqoop User Guide.