Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11235

execute maven plugin(compile-protoc) failed

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      ubuntu 14.04
      jdk 1.7
      eclipse 4.4.1
      m2e 1.5

      Description

      [ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.5.1:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.5.1:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
      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:108)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
      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:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.apache.maven.plugin.MojoExecutionException: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version
      at org.apache.hadoop.maven.plugin.protoc.ProtocMojo.execute(ProtocMojo.java:105)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      ... 19 more
      Caused by: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version
      at org.apache.hadoop.maven.plugin.protoc.ProtocMojo.execute(ProtocMojo.java:68)
      ... 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

        Activity

        Hide
        yys yys added a comment -

        I resovled my problem,it was caused by the 64-bit-windows and the version of jdk(1.8) is too high for hadoop.I replaced the jdk_1.8 with jdk_1.7,then copy thebinary file protoc.exe to C:\Windows\SysWOW64,rebuild it ,then it worked!thanks.

        Show
        yys yys added a comment - I resovled my problem,it was caused by the 64-bit-windows and the version of jdk(1.8) is too high for hadoop.I replaced the jdk_1.8 with jdk_1.7,then copy thebinary file protoc.exe to C:\Windows\SysWOW64,rebuild it ,then it worked!thanks.
        Hide
        yys yys added a comment -

        @Ganesh Raju,did you resole this error? I am getting the same error.

        Show
        yys yys added a comment - @Ganesh Raju,did you resole this error? I am getting the same error.
        Hide
        ozawa Tsuyoshi Ozawa added a comment -

        Ganesh Raju hi, we only support protobuf 2.5.0 to compile.

        Show
        ozawa Tsuyoshi Ozawa added a comment - Ganesh Raju hi, we only support protobuf 2.5.0 to compile.
        Hide
        v_ganeshraju Ganesh Raju added a comment -

        @ccin, how did you resolve this error? I am getting same error message. I see that protobuf is installed and 'protoc --version' gives 'libprotoc 2.6.1'. Some how error message shows 2.6.0 as version. I also have the path set to protobuf/bin directory.

        [ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.6.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version -> [Help 1]

        Show
        v_ganeshraju Ganesh Raju added a comment - @ccin, how did you resolve this error? I am getting same error message. I see that protobuf is installed and 'protoc --version' gives 'libprotoc 2.6.1'. Some how error message shows 2.6.0 as version. I also have the path set to protobuf/bin directory. [ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.6.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version -> [Help 1]
        Hide
        superc254 ccin added a comment -

        thank you for your reply ,my problem has been resolved.

        Show
        superc254 ccin added a comment - thank you for your reply ,my problem has been resolved.
        Hide
        fs111 André Kelpe added a comment -

        yes, you have to install it yourself: sudo apt-get install protobuf-compiler -y

        Show
        fs111 André Kelpe added a comment - yes, you have to install it yourself: sudo apt-get install protobuf-compiler -y
        Hide
        superc254 ccin added a comment -

        i think maven should install this for me.should i install this separate?

        Show
        superc254 ccin added a comment - i think maven should install this for me.should i install this separate?
        Hide
        fs111 André Kelpe added a comment -

        did you install the protobuf compiler?

        Show
        fs111 André Kelpe added a comment - did you install the protobuf compiler?

          People

          • Assignee:
            Unassigned
            Reporter:
            superc254 ccin
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development