You need protoc version 2.4+ for Hadoop 0.23 and trunk compilation.
Using 2.3 or lesser will not work.

On Fri, Mar 2, 2012 at 10:56 PM, Akshay Singh <[email protected]> wrote:
> Hi Folks,
>
> I have also run in to the similar problem, while trying to set up Hadoop 
> Develop Environment for Eclipse. 
> (http://wiki.apache.org/hadoop/EclipseEnvironment)
>
> *******
> ...
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-antrun-plugin:1.6:run (compile-proto) on 
> project hadoop-common: An Ant BuildException has occured: exec returned: 1 -> 
> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> ...
> ********
> Detailed logs at : http://pastebin.ca/2123540
>
> as per suggestions I have protoc on the right path and I guess I need not 
> explicitly appended LD_LIBRARY_PATH, as libprotobuf is in my /usr/lib
>
> $ protoc --version
> libprotoc 2.3.0
>
> $ locate libprotobuf
> .......
> /usr/lib/libprotobuf.so.6
> /usr/lib/libprotobuf.so.6.0.0
> /usr/share/doc/libprotobuf6
> /usr/share/doc/libprotobuf6/changelog.Debian.gz
> /usr/share/doc/libprotobuf6/changelog.gz
> /usr/share/doc/libprotobuf6/copyright
> /var/lib/dpkg/info/libprotobuf6.list
> /var/lib/dpkg/info/libprotobuf6.md5sums
>
> Any more suggestions ??
>
> Thanks
> -Akshay
>
>
> ________________________________
>  From: Ronald Petty <[email protected]>
> To: [email protected]
> Sent: Monday, 16 January 2012 1:44 PM
> Subject: Re: failed to build trunk, what's wrong?
>
> Hello,
>
> If you type protoc on the command line is it found?
>
> Kindest regards.
>
> Ron
>
> On Sat, Jan 14, 2012 at 5:52 PM, smith jack <[email protected]> wrote:
>
>> mvn compile and failed:(
>> jdk version is "1.6.0_23"
>> maven version is Apache Maven 3.0.3
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-antrun-plugin:1.6:run (compile-proto) on
>> project hadoop-common: An Ant BuildException has occured: exec returned:
>> 127 -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (compile-proto)
>> on project hadoop-common: An Ant BuildException has occured: exec returned:
>> 127
>>        at
>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
>>        at
>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>        at
>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>        at
>>
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>        at
>>
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>        at
>>
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>        at
>>
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>        at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>        at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>        at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant
>> BuildException has occured: exec returned: 127
>>        at
>> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:283)
>>        at
>>
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>        at
>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>        ... 19 more
>> Caused by:
>>
>> /home/jack/home/download/build/hadoop-common/hadoop-common-project/hadoop-common/target/antrun/build-main.xml:23:
>> exec returned: 127
>>        at
>> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:650)
>>        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:676)
>>        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:502)
>>        at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at
>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>>        at org.apache.tools.ant.Task.perform(Task.java:348)
>>        at org.apache.tools.ant.Target.execute(Target.java:390)
>>        at org.apache.tools.ant.Target.performTasks(Target.java:411)
>>        at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
>>        at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
>>        at
>> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:270)
>>        ... 21 more
>> [ERROR]
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>> [ERROR]
>> [ERROR] After correcting the problems, you can resume the build with the
>> command
>> [ERROR]   mvn <goals> -rf :hadoop-common
>>



-- 
Harsh J

Reply via email to