Install PIG on one node

I installed Hadoop (1.0.2) for a single node on Windows 7 with Cygwin and it works. However, I cannot get PIG (0.10.0) to see Hadoop.

1) "Error: JAVA_HOME is not set." 

I added this line to the pigs (in the basket): 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 

I tried to add below line to the pig, and it still does not find hadoop. What should I do?

 export PIG_HOME="/cygdrive/c/pig-0.10.0" export PATH=$PATH:$PIG_HOME/bin export PIG_CLASSPATH=/cygdrive/hadoop/hadoop-1.0.2/conf 
+7
source share
6 answers

You may need to add your Hadoop installation to your path. eg.

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

I had the same problem with pig-0.11. This seems to be a special cygwin issue.

Copying pig-0.11.1-withouthadoop to pigs using houtouthadoop.jar under PIG_HOME fixed the problem for me

+2
source

I tried to configure PIG on my gateway machine that is running Windows 7.

This issue is very specific to Cygwin.

After breaking my head for a couple of hours, I found a solution:

The solution is very simple.

Just rename the jar file under "pig-0.10.1-withouthadoop.jar" to "pig-withouthadoop.jar".

Registered here

+1
source

Alternatively, you can add the path: (hadoop directory) \ hadoop-vvv \ bin to the environment variables manually in Windows 7. This will solve this problem.

 which: no hadoop in (/usr/local/b.....) 
0
source

I had a similar problem with Pig 0.12.0 (and Hadoop 1.0.3) installed on Fedora 19. When I tried to execute any Pig command, for example

 pig -help 

I was getting the error:

 Cannot locate pig-withouthadoop.jar. do 'ant jar-withouthadoop.jar', and try again 

The Hadoop and Pig / bin folders were correctly included in my PATH.

Just copying the pig-0.12.0-withouthadoop.jar folder to the PIG_HOME folder fixed the problem for me.

0
source

You should visit this to install pig 12 on hadoop 2.2.0 without any errors, as it compiles the pig library for the specified hadoop version.

http://javatute.com/javatute/faces/post/hadoop/2014/installing-pig-11-for-hadoop-2-on-ubuntu-12-lts.xhtml

After completing the steps, you will get a running pig without any grunt errors.

Just enjoy it.

 % pig [return] 
0
source

All Articles