Tanvir
Tanvir

Reputation: 174

Hive and Pig on top of same dataset

Lets say: I have a table associated with a hive structure. Can I create a pig schema over this table data? Will hive query and pig schema -both be workable?

Upvotes: 0

Views: 30

Answers (1)

nobody
nobody

Reputation: 11080

Yes. You will need HCatalog.In Pig Shell run the below command to import the necessary jars.

pig -useHCatalog

Then load the table into a relation like this

A = LOAD 'tablename' USING org.apache.hive.hcatalog.pig.HCatLoader();

Upvotes: 1

Related Questions