Hive vs Pig

From WikiVS, the open comparison website
Jump to: navigation, search


[edit] Paradigms

Both languages have background in set manipulation.

  • Pig uses a procedural structure to manipulate sets. E.G., Load this file, apply this function, aggregate and map and save..
  • Hive uses a SQL-like approach, with extension of tables mapping them to files for parsing of content before processing. SQL is limited to those operations which can be translated to map-reduce jobs.


[edit] Readability

Both highly readable. Pig script tends to be shorter for the same functionality.

See Also the Following Articles

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox