You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by Amit Gupta <gu...@gmail.com> on 2011/04/17 02:37:27 UTC

Need Help with HDFS Build Failure

Hi,
I'm an HDFS newbie. I'm trying to learn more about HDFS by doing a
student project.

Ive been facing build breaks since today with the error messages:

============================================================================================================
*compile-hdfs-test:*
*    [javac] Compiling 194 source files to
/media/Spring_2011/Distributed_Systems/project/hadoop_source_code/hadoop-hdfs/build/test/hdfs/classes
*
*    [javac]
/media/Spring_2011/Distributed_Systems/project/hadoop_source_code/hadoop-hdfs/src/test/hdfs/org/apache/hadoop/cli/CmdFactoryDFS.java:20:
cannot find symbol*
*    [javac] symbol  : class CLICommands*
*    [javac] location: package org.apache.hadoop.cli.util*
*    [javac] import org.apache.hadoop.cli.util.CLICommands;*
*    [javac]                                  ^*
*    [javac]
/media/Spring_2011/Distributed_Systems/project/hadoop_source_code/hadoop-hdfs/src/test/hdfs/org/apache/hadoop/cli/CmdFactoryDFS.java:22:
cannot find symbol*
*    [javac] symbol  : class CmdFactory*
*    [javac] location: package org.apache.hadoop.cli.util*
*    [javac] import org.apache.hadoop.cli.util.CmdFactory;*
*    [javac]                                  ^*
*    [javac]
/media/Spring_2011/Distributed_Systems/project/hadoop_source_code/hadoop-hdfs/src/test/hdfs/org/apache/hadoop/cli/CmdFactoryDFS.java:26:
cannot find symbol*
*    [javac] symbol: class CmdFactory*
*    [javac] public abstract class CmdFactoryDFS extends CmdFactory {*
*    [javac]                                             ^*
*    [javac]
/media/Spring_2011/Distributed_Systems/project/hadoop_source_code/hadoop-hdfs/src/test/hdfs/org/apache/hadoop/cli/CmdFactoryDFS.java:27:
cannot find symbol*
*    [javac] symbol  : class TestCmd*
*    [javac] location: class org.apache.hadoop.cli.util.CLITestData*
*    [javac]   public static CommandExecutor
getCommandExecutor(CLITestData.TestCmd cmd,*
*    [javac]                                                               ^
*
*    [javac]
/media/Spring_2011/Distributed_Systems/project/hadoop_source_code/hadoop-hdfs/src/test/hdfs/org/apache/hadoop/cli/TestHDFSCLI.java:21:
cannot find symbol*
*    [javac] symbol  : class TestCmd*
*    [javac] location: class org.apache.hadoop.cli.util.CLITestData*
*    [javac] import org.apache.hadoop.cli.util.CLITestData.TestCmd;*
*    [javac]                                              ^*
*    [javac]
/media/Spring_2011/Distributed_Systems/project/hadoop_source_code/hadoop-hdfs/src/test/hdfs/org/apache/hadoop/cli/TestHDFSCLI.java:93:
cannot find symbol*
*    [javac] symbol  : class TestCmd*
*    [javac] location: class org.apache.hadoop.cli.TestHDFSCLI*
*    [javac]   protected Result execute(TestCmd cmd) throws Exception {*
*    [javac]                            ^*
*    [javac]
/media/Spring_2011/Distributed_Systems/project/hadoop_source_code/hadoop-hdfs/src/test/hdfs/org/apache/hadoop/cli/CmdFactoryDFS.java:32:
cannot find symbol*
*    [javac] symbol  : variable DFSADMIN*
*    [javac] location: class org.apache.hadoop.cli.CmdFactoryDFS*
*    [javac]       case DFSADMIN:*
*    [javac]            ^*
*    [javac]
/media/Spring_2011/Distributed_Systems/project/hadoop_source_code/hadoop-hdfs/src/test/hdfs/org/apache/hadoop/cli/CmdFactoryDFS.java:33:
package CLICommands does not exist*
*    [javac]         executor = new CLICommands.FSCmdExecutor(tag, new
DFSAdmin());*
*    [javac]                                   ^*
*    [javac]
/media/Spring_2011/Distributed_Systems/project/hadoop_source_code/hadoop-hdfs/src/test/hdfs/org/apache/hadoop/cli/CmdFactoryDFS.java:36:
cannot find symbol*
*    [javac] symbol  : variable CmdFactory*
*    [javac] location: class org.apache.hadoop.cli.CmdFactoryDFS*
*    [javac]         executor = CmdFactory.getCommandExecutor(cmd, tag);*
*    [javac]                    ^*
*    [javac]
/media/Spring_2011/Distributed_Systems/project/hadoop_source_code/hadoop-hdfs/src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/TestStorageRestore.java:355:
cannot find symbol*
*    [javac] symbol  : class TestCmd*
*    [javac] location: class org.apache.hadoop.cli.util.CLITestData*
*    [javac]           new CLITestData.TestCmd(cmd,
CLITestData.TestCmd.CommandType.DFSADMIN),*
*    [javac]                          ^*
*    [javac]
/media/Spring_2011/Distributed_Systems/project/hadoop_source_code/hadoop-hdfs/src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/TestStorageRestore.java:355:
cannot find symbol*
*    [javac] symbol  : variable TestCmd*
*    [javac] location: class org.apache.hadoop.cli.util.CLITestData*
*    [javac]           new CLITestData.TestCmd(cmd,
CLITestData.TestCmd.CommandType.DFSADMIN),*
*    [javac]                                                   ^*
*    [javac] Note: Some input files use or override a deprecated API.*
*    [javac] Note: Recompile with -Xlint:deprecation for details.*
*    [javac] 11 errors*
============================================================================================================

Ive tried applying the following patch (posted by  Konstantin Boudnik)

https://issues.apache.org/jira/browse/HDFS-1486

to my code , but the build continues to fail.

Also, Is there a way for me to build HDFS while excluding hdfs-test for the
time being?

I'd appreciate any help someone could give me with understanding/resolving
this.

Thanks,
-- 
Amit Gupta

Re: Need Help with HDFS Build Failure

Posted by Amit Gupta <gu...@gmail.com>.
Hi Aaron,

Thanks for your reply,
The build looks like its working now
(I had to do a fresh checkout however)

I hope to be able to learn enough to eventually be able
to contribute back to this project.

Thanks,
Amit


On Sun, Apr 17, 2011 at 12:23 AM, Aaron T. Myers <at...@cloudera.com> wrote:

> Hi Amit,
>
> On Sat, Apr 16, 2011 at 5:37 PM, Amit Gupta <gu...@gmail.com>
> wrote:
>
> > Hi,
> > I'm an HDFS newbie. I'm trying to learn more about HDFS by doing a
> > student project.
> >
> > Ive been facing build breaks since today with the error messages:
> >
>
> This was because a commit to common yesterday temporarily broke the HDFS
> build while we were waiting for an associated HDFS patch to be committed.
> That commit happened earlier today, so HDFS should be back to building
> correctly.
>
> Sorry for the trouble in the interim.
>
> --
> Aaron T. Myers
> Software Engineer, Cloudera
>



-- 
Amit Gupta

Re: Need Help with HDFS Build Failure

Posted by "Aaron T. Myers" <at...@cloudera.com>.
Hi Amit,

On Sat, Apr 16, 2011 at 5:37 PM, Amit Gupta <gu...@gmail.com> wrote:

> Hi,
> I'm an HDFS newbie. I'm trying to learn more about HDFS by doing a
> student project.
>
> Ive been facing build breaks since today with the error messages:
>

This was because a commit to common yesterday temporarily broke the HDFS
build while we were waiting for an associated HDFS patch to be committed.
That commit happened earlier today, so HDFS should be back to building
correctly.

Sorry for the trouble in the interim.

--
Aaron T. Myers
Software Engineer, Cloudera