I can't speak for hadoop. For pig the change was that we recently switched to using 1.6. I don't believe we've changed anything in the config files.

Alan.

On Feb 13, 2009, at 10:34 AM, nitesh bhatia wrote:

Thanks. I set the path of JAVA_HOME to exact path. Now it is compiling.

I am having this problem in recent releases of Hadoop and Pig. Earlier sort of same problem came while setting Hadoop 0.19. Is their any major change in
source config file ?

--nitesh

On Fri, Feb 13, 2009 at 8:19 PM, Alan Gates <ga...@yahoo-inc.com> wrote:

I don't think you are compiling on 1.6. Those are all errors you see when trying to compile when using 1.5. The IOException(String, Throwable) is in 1.6 and not 1.5, and @Override semantics changed slightly. You may have the right version of java but the wrong version of javac. I see you're building
on the mac.  On my mac before I build I set JAVA_HOME to
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/ Home

This assures that I get the right version of javac.

Alan.


On Feb 13, 2009, at 6:24 AM, nitesh bhatia wrote:

I am compiling it on Java 6.

trace:

nitesh-bhatias-macbook:~ niteshbhatia$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)

--nitesh

On Fri, Feb 13, 2009 at 7:42 PM, Mridul Muralidharan
<mrid...@yahoo-inc.com>wrote:


You need jdk 1.6. Maybe that will help ?

- Mridul


nitesh bhatia wrote:

Hi
I've downloaded latest Pig code from trunk today. It is not getting
compiled
using 'ant' command.

Trace:

nitesh-bhatias-macbook:trunk niteshbhatia$ ant
Buildfile: build.xml

init:

cc-compile:

compile:
 [echo] *** Building Main Sources ***
 [echo] *** To compile with all warnings enabled, supply
-Dall.warnings=1 on command line ***
 [echo] *** If all.warnings property is supplied,
compile-sources-all-warnings target will be executed ***
[echo] *** Else, compile-sources (which only warns about deprecations)
target will be executed ***

compile-sources:
[javac] Compiling 401 source files to
/Users/niteshbhatia/hadoop/pig/trunk/build/classes
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/ PigException.java:134:
cannot find symbol
[javac] symbol  : constructor IOException(java.lang.Throwable)
[javac] location: class java.io.IOException
[javac]         super(cause);
[javac]         ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/ PigException.java:144:
cannot find symbol
[javac] symbol  : constructor
IOException(java.lang.String,java.lang.Throwable)
[javac] location: class java.io.IOException
[javac]         super(message, cause);
[javac]         ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/ PigException.java:244:
cannot find symbol
[javac] symbol  : constructor
IOException(java.lang.String,java.lang.Throwable)
[javac] location: class java.io.IOException
[javac]         super(message, cause);
[javac]         ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/ PigServer.java:377:
cannot find symbol
[javac] symbol  : constructor IOException(java.lang.Throwable)
[javac] location: class java.io.IOException
[javac]             throw new IOException(e.getCause());
[javac]                   ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/ PigServer.java:381:
cannot find symbol
[javac] symbol  : constructor IOException(java.lang.Throwable)
[javac] location: class java.io.IOException
[javac]             throw new IOException(e.getCause());
[javac]                   ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/executionengine/mapReduceLayer/PigInputFormat.java:122: warning: [deprecation] validateInput(org.apache.hadoop.mapred.JobConf)
in
org.apache.hadoop.mapred.InputFormat has been deprecated
[javac] public void validateInput(JobConf job) throws IOException {
[javac]                 ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/executionengine/mapReduceLayer/PigMapBase.java:109:
cannot find symbol
[javac] symbol  : constructor
IOException (java.lang.String,org.apache.pig.impl.plan.VisitorException)
[javac] location: class java.io.IOException
[javac]             throw new IOException("Error trying to finish
UDFs",e);
[javac]                   ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/executionengine/mapReduceLayer/PigMapReduce.java:355:
cannot find symbol
[javac] symbol  : constructor
IOException (java.lang.String,org.apache.pig.impl.plan.VisitorException)
[javac] location: class java.io.IOException
[javac] throw new IOException("Error trying to finish
UDFs",e);
[javac]                       ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseSlice.java:122:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseSlice.java:128:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseSlice.java:135:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseSlice.java:140:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseSlice.java:147:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseSlice.java:153:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseSlice.java:189:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseSlice.java:238:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseStorage.java:71:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseStorage.java:98:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseStorage.java:114:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseStorage.java:120:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseStorage.java:127:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/backend/ hadoop/hbase/HBaseStorage.java:132:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/builtin/ Distinct.java:54:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/builtin/ Distinct.java:62:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/builtin/ Distinct.java:70:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ NonSpillableDataBag.java:110:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ NonSpillableDataBag.java:115:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ NonSpillableDataBag.java:122:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ NonSpillableDataBag.java:127:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ NonSpillableDataBag.java:132:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ NonSpillableDataBag.java:137:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ NonSpillableDataBag.java:142:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ NonSpillableDataBag.java:184:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:33:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:41:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:49:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:57:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:65:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:73:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:81:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:89:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:97:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:105:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:113:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:124:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:135:
method does not override a method from its superclass
[javac]     @Override
[javac]      ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:146:
method does not override a method from its superclass
[javac]         @Override
[javac]          ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:154:
method does not override a method from its superclass
[javac]         @Override
[javac]          ^
[javac]


/Users/niteshbhatia/hadoop/pig/trunk/src/org/apache/pig/data/ SingleTupleBag.java:164:
method does not override a method from its superclass
[javac]         @Override
[javac]          ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 48 errors
[javac] 1 warning

BUILD FAILED
/Users/niteshbhatia/hadoop/pig/trunk/build.xml:189: The following error
occurred while executing this line:
/Users/niteshbhatia/hadoop/pig/trunk/build.xml:228: Compile failed; see
the
compiler error output for details.

Total time: 4 seconds

Is there any change in code?

--nitesh





--
Nitesh Bhatia
Dhirubhai Ambani Institute of Information & Communication Technology
Gandhinagar
Gujarat

"Life is never perfect. It just depends where you draw the line."

visit:
http://www.awaaaz.com - connecting through music
http://www.volstreet.com - lets volunteer for better tomorrow
http://www.instibuzz.com - Voice opinions, Transact easily, Have fun





--
Nitesh Bhatia
Dhirubhai Ambani Institute of Information & Communication Technology
Gandhinagar
Gujarat

"Life is never perfect. It just depends where you draw the line."

visit:
http://www.awaaaz.com - connecting through music
http://www.volstreet.com - lets volunteer for better tomorrow
http://www.instibuzz.com - Voice opinions, Transact easily, Have fun

Reply via email to