Search code examples
javahadoopjareclipse-pluginapache-pig

Setting up eclipse for Pig


I am trying to setup my eclipse (Mars) to write some Pig UDF. I downloaded 4 different JAR's but still I am having issues.

Following are the 4 JAR's which I added as External library.

  1. pig-0.8.3.jar
  2. pig-0.14.0.jar
  3. pig.0.11.1.jar
  4. piggybank-0.11.0.jar

I am trying to write a Pig UDF for Decode. Can anyone point me, where am I going wrong ?

Thanks in advance.


Solution

  • From your comment:

    Cannot find the class file for org.apache.commons.logging.Log

    You need to add commons logging jar file. Probably a bunch of others too. You will want to consider using maven. It automatically downloads the dependencies it needs.