Pig
  1. Pig
  2. PIG-600

PiggyBank compilation instructions don't work

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.4.0
    • Component/s: impl
    • Labels:
      None

      Description

      I know that PiggyBank is "as-is" but the instructions are incomplete and should be complete enough (all steps) required to compile PiggyBank.

      http://wiki.apache.org/pig/PiggyBank

      I checked out the types branch version of PiggyBank by modifying the instructions to check out:

      svn co http://svn.apache.org/repos/asf/hadoop/pig/branches/types/contrib/piggybank/

      At step 2 it says:

      To build a jar file that contains all available user defined functions (UDFs), please follow the steps:

      1. Checkout UDF code: svn co http://svn.apache.org/repos/asf/hadoop/pig/trunk/contrib/piggybank
      2. Build the jar file: from trunk/contrib/piggybank/java directory run ant. This will generate piggybank.jar in the same directory.

      So I went into the piggybank/java directory and and ran ant and got the following errors:

      -bash-3.00$ ant
      Buildfile: build.xml
      
      init:
      
      compile:
           [echo]  *** Compiling Pig UDFs ***
          [javac] Compiling 70 source files to /homes/ciemo/piggybank/java/build/classes
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:25: cannot find symbol
          [javac] symbol  : class EvalFunc
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.EvalFunc;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:26: cannot find symbol
          [javac] symbol  : class FuncSpec
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.FuncSpec;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:27: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.Tuple;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:28: package org.apache.pig.impl.logicalLayer.schema does not exist
          [javac] import org.apache.pig.impl.logicalLayer.schema.Schema;
          [javac]                                               ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:29: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.DataType;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:30: package org.apache.pig.impl.logicalLayer does not exist
          [javac] import org.apache.pig.impl.logicalLayer.FrontendException;
          [javac]                                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:31: package org.apache.pig.impl.util does not exist
          [javac] import org.apache.pig.impl.util.WrappedIOException;
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:61: cannot find symbol
          [javac] symbol: class EvalFunc
          [javac] public class ABS extends EvalFunc<Double>{
          [javac]                          ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:67: cannot find symbol
          [javac] symbol  : class Tuple
          [javac] location: class org.apache.pig.piggybank.evaluation.math.ABS
          [javac]     public Double exec(Tuple input) throws IOException {
          [javac]                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:85: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.ABS
          [javac]     public Schema outputSchema(Schema input) {
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:85: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.ABS
          [javac]     public Schema outputSchema(Schema input) {
          [javac]            ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:93: cannot find symbol
          [javac] symbol  : class FuncSpec
          [javac] location: class org.apache.pig.piggybank.evaluation.math.ABS
          [javac]     public List<FuncSpec> getArgToFuncMapping() throws FrontendException {
          [javac]                 ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/ABS.java:93: cannot find symbol
          [javac] symbol  : class FrontendException
          [javac] location: class org.apache.pig.piggybank.evaluation.math.ABS
          [javac]     public List<FuncSpec> getArgToFuncMapping() throws FrontendException {
          [javac]                                                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleBase.java:25: package org.apache.pig.impl.logicalLayer does not exist
          [javac] import org.apache.pig.impl.logicalLayer.FrontendException;
          [javac]                                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleBase.java:26: cannot find symbol
          [javac] symbol  : class FuncSpec
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.FuncSpec;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleBase.java:27: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.Tuple;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleBase.java:28: package org.apache.pig.impl.util does not exist
          [javac] import org.apache.pig.impl.util.WrappedIOException;
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleBase.java:29: package org.apache.pig.impl.logicalLayer.schema does not exist
          [javac] import org.apache.pig.impl.logicalLayer.schema.Schema;
          [javac]                                               ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleBase.java:30: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.DataType;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/Base.java:21: cannot find symbol
          [javac] symbol  : class EvalFunc
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.EvalFunc;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/Base.java:22: package org.apache.pig.impl.logicalLayer.schema does not exist
          [javac] import org.apache.pig.impl.logicalLayer.schema.Schema;
          [javac]                                               ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/Base.java:23: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.DataType;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/Base.java:27: cannot find symbol
          [javac] symbol: class EvalFunc
          [javac] public abstract class Base extends EvalFunc<Double>{
          [javac]                                    ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleBase.java:44: cannot find symbol
          [javac] symbol  : class Tuple
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleBase
          [javac]     public Double exec(Tuple input) throws IOException {
          [javac]                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleBase.java:60: cannot find symbol
          [javac] symbol  : class FuncSpec
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleBase
          [javac]     public List<FuncSpec> getArgToFuncMapping() throws FrontendException {
          [javac]                 ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleBase.java:60: cannot find symbol
          [javac] symbol  : class FrontendException
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleBase
          [javac]     public List<FuncSpec> getArgToFuncMapping() throws FrontendException {
          [javac]                                                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/Base.java:29: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.Base
          [javac]     public Schema outputSchema(Schema input) {
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/Base.java:29: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.Base
          [javac]     public Schema outputSchema(Schema input) {
          [javac]            ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleDoubleBase.java:25: package org.apache.pig.impl.logicalLayer does not exist
          [javac] import org.apache.pig.impl.logicalLayer.FrontendException;
          [javac]                                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleDoubleBase.java:26: cannot find symbol
          [javac] symbol  : class FuncSpec
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.FuncSpec;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleDoubleBase.java:27: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.Tuple;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleDoubleBase.java:28: package org.apache.pig.impl.util does not exist
          [javac] import org.apache.pig.impl.util.WrappedIOException;
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleDoubleBase.java:29: package org.apache.pig.impl.logicalLayer.schema does not exist
          [javac] import org.apache.pig.impl.logicalLayer.schema.Schema;
          [javac]                                               ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleDoubleBase.java:30: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.DataType;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleDoubleBase.java:44: cannot find symbol
          [javac] symbol  : class Tuple
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleDoubleBase
          [javac]     public Double exec(Tuple input) throws IOException {
          [javac]                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleDoubleBase.java:61: cannot find symbol
          [javac] symbol  : class FuncSpec
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleDoubleBase
          [javac]     public List<FuncSpec> getArgToFuncMapping() throws FrontendException {
          [javac]                 ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleDoubleBase.java:61: cannot find symbol
          [javac] symbol  : class FrontendException
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleDoubleBase
          [javac]     public List<FuncSpec> getArgToFuncMapping() throws FrontendException {
          [javac]                                                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleAbs.java:23: cannot find symbol
          [javac] symbol  : class EvalFunc
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.EvalFunc;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleAbs.java:24: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.Tuple;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleAbs.java:25: package org.apache.pig.impl.logicalLayer.schema does not exist
          [javac] import org.apache.pig.impl.logicalLayer.schema.Schema;
          [javac]                                               ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleAbs.java:26: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.DataType;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleAbs.java:27: package org.apache.pig.impl.util does not exist
          [javac] import org.apache.pig.impl.util.WrappedIOException;
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleAbs.java:58: cannot find symbol
          [javac] symbol: class EvalFunc
          [javac] public class DoubleAbs extends EvalFunc<Double>{
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleAbs.java:64: cannot find symbol
          [javac] symbol  : class Tuple
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleAbs
          [javac]     public Double exec(Tuple input) throws IOException {
          [javac]                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleAbs.java:79: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleAbs
          [javac]     public Schema outputSchema(Schema input) {
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleAbs.java:79: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleAbs
          [javac]     public Schema outputSchema(Schema input) {
          [javac]            ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleCopySign.java:23: cannot find symbol
          [javac] symbol  : class EvalFunc
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.EvalFunc;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleCopySign.java:24: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.Tuple;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleCopySign.java:25: package org.apache.pig.impl.logicalLayer.schema does not exist
          [javac] import org.apache.pig.impl.logicalLayer.schema.Schema;
          [javac]                                               ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleCopySign.java:26: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.DataType;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleCopySign.java:27: package org.apache.pig.impl.logicalLayer does not exist
          [javac] import org.apache.pig.impl.logicalLayer.FrontendException;
          [javac]                                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleCopySign.java:28: package org.apache.pig.impl.util does not exist
          [javac] import org.apache.pig.impl.util.WrappedIOException;
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleCopySign.java:59: cannot find symbol
          [javac] symbol: class EvalFunc
          [javac] public class DoubleCopySign extends EvalFunc<Double>{
          [javac]                                     ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleCopySign.java:68: cannot find symbol
          [javac] symbol  : class Tuple
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleCopySign
          [javac]     public Double exec(Tuple input) throws IOException {
          [javac]                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleCopySign.java:81: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleCopySign
          [javac]     public Schema outputSchema(Schema input) {
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleCopySign.java:81: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleCopySign
          [javac]     public Schema outputSchema(Schema input) {
          [javac]            ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleGetExponent.java:23: cannot find symbol
          [javac] symbol  : class EvalFunc
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.EvalFunc;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleGetExponent.java:24: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.Tuple;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleGetExponent.java:25: package org.apache.pig.impl.logicalLayer.schema does not exist
          [javac] import org.apache.pig.impl.logicalLayer.schema.Schema;
          [javac]                                               ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleGetExponent.java:26: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.DataType;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleGetExponent.java:27: package org.apache.pig.impl.util does not exist
          [javac] import org.apache.pig.impl.util.WrappedIOException;
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleGetExponent.java:58: cannot find symbol
          [javac] symbol: class EvalFunc
          [javac] public class DoubleGetExponent extends EvalFunc<Integer>{
          [javac]                                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleGetExponent.java:65: cannot find symbol
          [javac] symbol  : class Tuple
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleGetExponent
          [javac]     public Integer exec(Tuple input) throws IOException {
          [javac]                         ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleGetExponent.java:78: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleGetExponent
          [javac]     public Schema outputSchema(Schema input) {
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleGetExponent.java:78: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleGetExponent
          [javac]     public Schema outputSchema(Schema input) {
          [javac]            ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMax.java:23: package org.apache.pig.impl.util does not exist
          [javac] import org.apache.pig.impl.util.WrappedIOException;
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMax.java:24: cannot find symbol
          [javac] symbol  : class EvalFunc
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.EvalFunc;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMax.java:25: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.Tuple;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMax.java:26: package org.apache.pig.impl.logicalLayer.schema does not exist
          [javac] import org.apache.pig.impl.logicalLayer.schema.Schema;
          [javac]                                               ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMax.java:27: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.DataType;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMax.java:57: cannot find symbol
          [javac] symbol: class EvalFunc
          [javac] public class DoubleMax extends EvalFunc<Double>{
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMax.java:63: cannot find symbol
          [javac] symbol  : class Tuple
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleMax
          [javac]     public Double exec(Tuple input) throws IOException {
          [javac]                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMax.java:77: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleMax
          [javac]     public Schema outputSchema(Schema input) {
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMax.java:77: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleMax
          [javac]     public Schema outputSchema(Schema input) {
          [javac]            ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMin.java:23: package org.apache.pig.impl.util does not exist
          [javac] import org.apache.pig.impl.util.WrappedIOException;
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMin.java:24: cannot find symbol
          [javac] symbol  : class EvalFunc
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.EvalFunc;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMin.java:25: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.Tuple;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMin.java:26: package org.apache.pig.impl.logicalLayer.schema does not exist
          [javac] import org.apache.pig.impl.logicalLayer.schema.Schema;
          [javac]                                               ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMin.java:27: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.DataType;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMin.java:57: cannot find symbol
          [javac] symbol: class EvalFunc
          [javac] public class DoubleMin extends EvalFunc<Double>{
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMin.java:63: cannot find symbol
          [javac] symbol  : class Tuple
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleMin
          [javac]     public Double exec(Tuple input) throws IOException {
          [javac]                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMin.java:77: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleMin
          [javac]     public Schema outputSchema(Schema input) {
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleMin.java:77: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleMin
          [javac]     public Schema outputSchema(Schema input) {
          [javac]            ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextAfter.java:25: cannot find symbol
          [javac] symbol  : class EvalFunc
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.EvalFunc;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextAfter.java:26: cannot find symbol
          [javac] symbol  : class FuncSpec
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.FuncSpec;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextAfter.java:27: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.Tuple;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextAfter.java:28: package org.apache.pig.impl.logicalLayer.schema does not exist
          [javac] import org.apache.pig.impl.logicalLayer.schema.Schema;
          [javac]                                               ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextAfter.java:29: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.DataType;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextAfter.java:30: package org.apache.pig.impl.logicalLayer does not exist
          [javac] import org.apache.pig.impl.logicalLayer.FrontendException;
          [javac]                                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextAfter.java:31: package org.apache.pig.impl.util does not exist
          [javac] import org.apache.pig.impl.util.WrappedIOException;
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextAfter.java:63: cannot find symbol
          [javac] symbol: class EvalFunc
          [javac] public class DoubleNextAfter extends EvalFunc<Double>{
          [javac]                                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextAfter.java:73: cannot find symbol
          [javac] symbol  : class Tuple
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleNextAfter
          [javac]     public Double exec(Tuple input) throws IOException {
          [javac]                        ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextAfter.java:84: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleNextAfter
          [javac]     public Schema outputSchema(Schema input) {
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextAfter.java:84: cannot find symbol
          [javac] symbol  : class Schema
          [javac] location: class org.apache.pig.piggybank.evaluation.math.DoubleNextAfter
          [javac]     public Schema outputSchema(Schema input) {
          [javac]            ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextup.java:23: cannot find symbol
          [javac] symbol  : class EvalFunc
          [javac] location: package org.apache.pig
          [javac] import org.apache.pig.EvalFunc;
          [javac]                      ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextup.java:24: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.Tuple;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextup.java:25: package org.apache.pig.impl.logicalLayer.schema does not exist
          [javac] import org.apache.pig.impl.logicalLayer.schema.Schema;
          [javac]                                               ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextup.java:26: package org.apache.pig.data does not exist
          [javac] import org.apache.pig.data.DataType;
          [javac]                           ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextup.java:27: package org.apache.pig.impl.util does not exist
          [javac] import org.apache.pig.impl.util.WrappedIOException;
          [javac]                                ^
          [javac] /homes/ciemo/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/DoubleNextup.java:58: cannot find symbol
          [javac] symbol: class EvalFunc
          [javac] public class DoubleNextup extends EvalFunc<Double>{
          [javac]                                   ^
          [javac] 100 errors
      
      BUILD FAILED
      /homes/ciemo/piggybank/java/build.xml:74: Compile failed; see the compiler error output for details.
      

        Activity

        Hide
        Olga Natkovich added a comment -

        Thanks, Dmitry for your help with this issue!

        Show
        Olga Natkovich added a comment - Thanks, Dmitry for your help with this issue!
        Hide
        Dmitriy V. Ryaboy added a comment -

        Setting the CLASSPATH environment variable to include pig.jar is sufficient for building the piggybank jar (and avoids the problem of having the whole pig directory checked out).
        I've updated the Wiki.
        This can be closed.

        Show
        Dmitriy V. Ryaboy added a comment - Setting the CLASSPATH environment variable to include pig.jar is sufficient for building the piggybank jar (and avoids the problem of having the whole pig directory checked out). I've updated the Wiki. This can be closed.
        Hide
        David Ciemiewicz added a comment -

        I think the problem is this ... the build.xml file is looking for pig.jar several directories up:

        <property name="pigjar" value="../../../pig.jar" />

        The thing is, I'm relying on another build of pig and not the whole pig directory.

        If you take the instructions for PiggyBank literally (as I did) you will not get a successful build.

        Show
        David Ciemiewicz added a comment - I think the problem is this ... the build.xml file is looking for pig.jar several directories up: <property name="pigjar" value="../../../pig.jar" /> The thing is, I'm relying on another build of pig and not the whole pig directory. If you take the instructions for PiggyBank literally (as I did) you will not get a successful build.

          People

          • Assignee:
            Unassigned
            Reporter:
            David Ciemiewicz
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development