Nice catch of the bug, Jon.. hopefully this was a typo on Srini's part, not actually in the code. Srini, did javac give you a filename and line number to go with that error message?
That being said, technically even with the bug, this will compile. That's not the issue Srini is encountering. The issue is that he doesn't have hadoop jars on the classpath. D On Mon, Aug 22, 2011 at 6:40 AM, Jonathan Coveney <[email protected]>wrote: > It should be: input == null || input.size() == 0 > > In java, = means variable assignment, whereas == is equality. > > 2011/8/19 SRINIVAS SURASANI <[email protected]> > > > Hi, > > > > Iam able to compile pig udf for pig-0.8.0 version . Its giving me an > error > > when I have tried compiling on pig-0.8.1 version. > > > > following is the error message: > > > > cannot access org.apache.hadoop.io.WritableComparable > > class file for org.apache.hadoop.io.WritableComparable not found > > if ( input = null || input.size() = 0) > > ^ > > > > Any help apprecaited! > > > > Thanks, > > Srini > > >
