Skip to content

Instantly share code, notes, and snippets.

@rgabo
Created January 11, 2014 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgabo/8375487 to your computer and use it in GitHub Desktop.
Save rgabo/8375487 to your computer and use it in GitHub Desktop.
Pig requires `HIVE_HOME` and `HCAT_HOME` set to load the correct Jars when launched with `-useHCatalog` (transcript is a Fish shell, hence `set -x`)
rgabo@stanford ~> pig -useHCatalog
Please initialize HIVE_HOME
rgabo@stanford ~> set -x HIVE_HOME /usr/local/Cellar/hive/0.12.0/libexec/
rgabo@stanford ~> pig -useHCatalog
Please initialize HCAT_HOME
rgabo@stanford ~> set -x HCAT_HOME /usr/local/Cellar/hive/0.12.0/libexec/hcatalog/
rgabo@stanford ~> pig -useHCatalog
2014-01-11 11:18:45,137 [main] INFO org.apache.pig.Main - Apache Pig version 0.12.0 (r1529718) compiled Oct 07 2013, 12:20:14
2014-01-11 11:18:45,138 [main] INFO org.apache.pig.Main - Logging error messages to: /Users/rgabo/pig_1389467925133.log
2014-01-11 11:18:45,167 [main] INFO org.apache.pig.impl.util.Utils - Default bootup file /Users/rgabo/.pigbootup not found
2014-01-11 11:18:45,420 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: file:///
grunt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment