[ 
https://issues.apache.org/jira/browse/MAPREDUCE-659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732964#action_12732964
 ] 

Chris Douglas commented on MAPREDUCE-659:
-----------------------------------------

Sorry, I hadn't placed a watch on this issue.
{quote}
When someone tries to build gridmix2 by untarring 
hadoop-mapred-0.21.0-dev.tar.gz
$\{hadoop.dir\}/build doesn't exit and build would fail. 
{quote}

The change was a superset of the original patch; it only adds the build dir to 
the classpath, so gridmix2 will be linked against those classes/jars if they 
exist.

{quote}
To catch the compilation failures early, gridmix should be added to the 
binary/package target itself.

User should be able to build the jar just by doing in ant in the 
src/benchmarks/gridmix2 directory. If there are any dependencies with streaming 
and test, they should be added to build.xml
{quote}

This is reasonable, but gridmix2 shouldn't be a top-level target, it has too 
many dependencies to model cleanly in our current setup, and it's not a 
critical component. We could move it to contrib, but we don't have a way to 
model dependencies between contrib modules. I guess it could go into tools, but 
that's a stretch. For now, fixing the compilation error seems sufficient.

> gridmix2 not compiling under mapred module trunk/src/benchmarks/gridmix2 
> -------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-659
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-659
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: build
>         Environment: latest trunk
>            Reporter: Iyappan Srinivasan
>            Assignee: Giridharan Kesavan
>            Priority: Critical
>         Attachments: 659-1.patch, MAPREDUCE-659.PATCH
>
>
> When build is tried in gridmix2, it fails
> trunk/src/benchmarks/gridmix2 $ ant
> Buildfile: build.xml
> init:
> compile:
>     [javac] Compiling 3 source files to 
> /home/iyappans/new_trunk1/mapreduce/trunk/src/benchmarks/gridmix2/build
>     [javac] 
> /home/iyappans/new_trunk1/mapreduce/trunk/src/benchmarks/gridmix2/src/java/org/apache/hadoop/mapred/GridMixRunner.java:40:
>  package org.apache.hadoop.streaming does not exist
>     [javac] import org.apache.hadoop.streaming.StreamJob;
>     [javac]                                   ^
>     [javac] 
> /home/iyappans/new_trunk1/mapreduce/trunk/src/benchmarks/gridmix2/src/java/org/apache/hadoop/mapred/GridMixRunner.java:123:
>  cannot find symbol
>     [javac] symbol: variable StreamJob
>     [javac]         JobConf jobconf = StreamJob.createJob(args);
>     [javac]                           ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 2 errors
> BUILD FAILED
> /home/iyappans/new_trunk1/mapreduce/trunk/src/benchmarks/gridmix2/build.xml:27:
>  Compile failed; see the compiler error output for details.
> Total time: 1 second

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to