Skip to content

Instantly share code, notes, and snippets.

@visuddha
Forked from ruanyl/install_pig
Created June 22, 2022 06:34
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 visuddha/e08b984bdf58ab0bdc7c1cd4464830bf to your computer and use it in GitHub Desktop.
Save visuddha/e08b984bdf58ab0bdc7c1cd4464830bf to your computer and use it in GitHub Desktop.
install and setup pig in macos
This gist assuming that you have apahce hadoop installed and running.
step to install and config pig:
>1. brew install pig
>2. export JAVA_HOME="$(/usr/libexec/java_home)"
>3. export PIG_CLASSPATH=/path/to/pig.jar, normally if you install pig via homebrew, the path should be like:/usr/local/Cellar/pig/0.13.0/pig-0.13.0-h1.jar
step 2 & 3 are mandatory for me, otherwise *pig* wont work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment