Actually protobuf version is still 2.5.0 on master. Hadoop forces everyone to use 2.5.0 for compatibility.
<protobuf.version>2.5.0</protobuf.version> Please check to see whether protoc is firstly in your path and confirm that "protoc —version” returns 2.5.0 thanks — Hitesh On Sep 2, 2015, at 1:47 AM, Sandeep Kumar <[email protected]> wrote: > In case you are trying to compile master branch then its pom.xml refers to > 2.6.0 protoc. So, you have to install protoc 2.6.0 on your host to compile > tez master branch. AFAIK tez 0.7.0 uses older version of protoc 2.5.0. > > > > On Wed, Sep 2, 2015 at 2:08 PM, Xiaoyong Zhu <[email protected]> wrote: > Hi experts > > > > > > I am trying to build the tez master branch but it always gives me the error > message (it seems that the pom file has something wrong?) > > > > I am sure I am using protobuf 2.5, and not sure why there’s such kind of > issue…the log is also attached. > > > > Thanks! > > > > [INFO] --- hadoop-maven-plugins:2.6.0:protoc (compile-protoc) @ tez-api --- > > [DEBUG] org.apache.hadoop:hadoop-maven-plugins:jar:2.6.0: > > [DEBUG] org.apache.maven:maven-plugin-api:jar:3.0:compile > > [DEBUG] org.apache.maven:maven-model:jar:3.0:compile > > [DEBUG] org.apache.maven:maven-artifact:jar:3.0:compile > > [DEBUG] org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile > > [DEBUG] org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile > > [DEBUG] org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile > > [DEBUG] org.apache.maven:maven-core:jar:3.0:compile > > [DEBUG] org.apache.maven:maven-settings:jar:3.0:compile > > [DEBUG] org.apache.maven:maven-settings-builder:jar:3.0:compile > > [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.0:compile > > [DEBUG] org.apache.maven:maven-model-builder:jar:3.0:compile > > [DEBUG] org.apache.maven:maven-aether-provider:jar:3.0:runtime > > [DEBUG] org.sonatype.aether:aether-impl:jar:1.7:compile > > [DEBUG] org.sonatype.aether:aether-spi:jar:1.7:compile > > [DEBUG] org.sonatype.aether:aether-api:jar:1.7:compile > > [DEBUG] org.sonatype.aether:aether-util:jar:1.7:compile > > [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.14:compile > > [DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.5:compile (version > managed from 2.0.4) > > [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile > > [DEBUG] > org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile > > [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile > > > > > > > > [ERROR] Failed to execute goal > org.apache.hadoop:hadoop-maven-plugins:2.6.0:protoc (compile-protoc) on > project tez-api: org.apache.maven.plugin.MojoExecutionException: protoc > failure -> [Help 1] > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.hadoop:hadoop-maven-plugins:2.6.0:protoc (compile-protoc) on > project tez-api: org.apache.maven.plugin.MojoExecutionException: protoc > failure > > 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:320) > > 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:57) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:606) > > 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: > org.apache.maven.plugin.MojoExecutionException: protoc failure > > at > org.apache.hadoop.maven.plugin.protoc.ProtocMojo.execute(ProtocMojo.java:105) > > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > > Xiaoyong > > > >
