Skip to content

Instantly share code, notes, and snippets.

@ruanyl
Last active October 31, 2023 10:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ruanyl/ccd890fa911b0b621d63 to your computer and use it in GitHub Desktop.
Save ruanyl/ccd890fa911b0b621d63 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