Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: remove broken link to old doc

Storage Formats

Table of Contents

SerDes and Storage Formats

HCatalog As of version 0.4 (when HCatalog was in the Apache Incubator), HCatalog uses Hive's SerDe class to serialize and deserialize data. SerDes are provided for RCFile, CSV text, JSON text, and SequenceFile formats. Check the SerDe documentation for additional SerDes that might be included in new versions. For example, the Avro SerDe was added in Hive 0.9.1, the ORC file format was added in Hive 0.11.0, and Parquet was added in Hive 0.10.0 (plug-in) and Hive 0.13.0 (native).

Users can write SerDes for custom formats using the these instructions at https://cwiki.apache.org/confluence/display/Hive/:

For information about how to create a table with a custom or native SerDe, see Row Format, Storage Format, and SerDe.

Usage from Hive

Hive and HCatalog (version 0.4 and later) share the same storage abstractions, and thus, you can read from and write to HCatalog tables from within Hive, and vice versa.

However, for HCatalog versions 0.4 and 0.5 Hive does not know where to find the HCatalog jar by default, so if you use any features that have been introduced by HCatalog, such as a table using the JSON SerDe, you might get a "class not found" exception. In this situation, before you run Hive, set environment variable HIVE_AUX_JARS_PATH to the directory with your HCatalog jar. (If the examples in the Installation document were followed, that should be /usr/local/hcat/share/hcatalog/.)

After version 0.5, HCatalog is part of the Hive distribution and you do not have to add the HCatalog jar to HIVE_AUX_JARS_PATH.

CTAS Issue with JSON SerDe

...

See HCATALOG-436 for details.

 

Panel
titleColorindigo
titleBGColorsilver
titleNavigation Links

Previous: Command Line Interface
Next: Dynamic Partitioning

SerDe general information: Hive SerDe
SerDe details: SerDe
SerDe DDL: Row Format, Storage Format, and SerDe

General: HCatalog ManualWebHCat (Templeton) ManualHive Home
Old version (HCatalog 0.5.0): Storage FormatsWiki HomeHive Project Site