Feb 6, 2016

Cannot locate pig-core-h2.jar. do 'ant -Dhadoopversion=23 jar', and try again


Error:

While running Pig (in local mode from command line) if we may come across the following error"

Cannot locate pig-core-h2.jar. do 'ant -Dhadoopversion=23 jar', and try again.


Solution:

Please make sure in your .bash_profile or .bashrc you have following environment variables: 

export PIG_HOME="/Library/apache-pig-0.15.0"

export PATH="/Library/apache-pig-0.15.0/bin:${PATH}"

restart the machine or restart the unix terminal;

Thanks!

1 comment: