I would like to know what are the different ways to enable hcatalog and tez in writing pig scripts.
To use both the options, use below command:
pig -useHCatalog -x tez -f script.pig
To use only Hcat:
pig -useHCatalog -f script.pig
To use only tez:
pig -x tez -f script.pig
View solution in original post
Is there any way like ,Using "set" in directly grunt shell???
eg: set exectype=tez;
Unfortunately No! Either we need to pass it via command line or set "exectype=tez" in pig.properties via Ambari
you can enable hcatalog commands in pig programmatically, use the steps in the following article https://community.hortonworks.com/questions/1954/hcatbin-is-not-defined-define-it-to-be-your-hcat-s....