Skip to content

Instantly share code, notes, and snippets.



Last active Mar 25, 2017
What would you like to do?
This pig script loads the data from the hive table to the pig relation
--execute this file by using -useHCatalog flag
--the flag "-useHCatalog" enables Pig to pick jars for HCatalog
--HCatalog is used for loading data from Apache Hive to Pig
--loading the data in "products" hive table into a Pig Relation
hive_data = LOAD 'products' USING org.apache.hive.hcatalog.pig.HCatLoader();
--looking at the structure of the data
DESCRIBE hive_data;
--dumping the data on the terminal window
DUMP hive_data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.