Last active
October 31, 2023 10:01
-
-
Save ruanyl/ccd890fa911b0b621d63 to your computer and use it in GitHub Desktop.
install and setup pig in macos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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