running HCatalog commands within Pig scripts in Oozie
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3oKASJq2yg3KlXq0bYtEwZCjlY9HcnJszOsDXeIKbFlXLQopvyF2XzhE-1HpB_mYxyQMgHW5II0BWGE0tYq75BjfnMUfJFvs6SjXjBopi21AaS4mOe7dVdrJQKi5POx_IT7-0LJP3wQt_/s320/img2.png)
Apache Pig introduced a new option of executing HCatalog commands inside Pig scripts and Grunt shell. For details to get started with it, take a look at my previous post . When you try to execute a pig script with HCatalog command in Oozie, you will actually get the same error, irrelevant whether you changed pig.properties file as described in the previous article. The error is below: ERROR 2997: Encountered IOException. hcat.bin is not defined. Define it to be your hcat script (Usually $HCAT_HOME/bin/hcat java.io.IOException: hcat.bin is not defined. Define it to be your hcat script (Usually $HCAT_HOME/bin/hcat at org.apache.pig.tools.grunt.GruntParser.processSQLCommand(GruntParser.java:1283) at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:501) at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:230) at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:205) at org.apache.pig.to