[Solved-2 Solutions] Installing PIG on single node ?



Problem:

  • If you installed Hadoop (1.0.2) for a single node on Windows 7 with Cygwin, and it is working. However, you cannot get PIG (0.10.0) to see the Hadoop.
1) "Error: JAVA_HOME is not set."
  • Added this line to pig (under bin):
export JAVA_HOME=/cygdrive/c/PROGRA~1/Java/jdk1.7.0_05
2) which: no hadoop in (/usr/local/b.....)
cygpath: cannot create short name of C:\pig-0.10.0\logs
Cannot locate pig.jar. do 'ant jar', and try again
  • If you tried adding below lines to pig and it is still not finding hadoop. What should you do?
export PIG_HOME="/cygdrive/c/pig-0.10.0"
export PATH=$PATH:$PIG_HOME/bin

Solution 1:

  • We might need to add your Hadoop install to your path as well.

Example

export HADOOP_INSTALL=/Users/yourname/dev/hadoop-0.20.203.0 
export PATH=$PATH:$HADOOP_INSTALL/bin

Solution 2:

  • Just rename the jar file under ”pig-0.10.1-withouthadoop.jar” to “pig-withouthadoop.jar”.

Related Searches to Installing PIG on single node