Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25177

docker build failed for Ambari 2.7.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Information Provided
    • 2.7.3
    • 2.7.3
    • ambari-web
    • docker version: 1.12.6

      Ambari: 2.7.3

      build ambari with docker

    Description

      It seemed that some problems existed in Dockerfile. Currently maven version is 3.0.5. Python is 2.6.

      Need to upgrade following components version.
      maven 3.5.0
      python 2.7.5
      centos 7.0
      npm 3.10.10

       

      When executing command "docker build -t ambari/build ./dev-support/docker/docker",  following problems occurred.

      [DEBUG] Configuring mojo org.codehaus.mojo:exec-maven-plugin:1.2.1:exec from plugin realm ClassRealm[plugin>org.codehaus.mojo:exec-maven-plugin:1.2.1, parent: sun.misc.Launcher$AppClassLoader@7852e922]
      [DEBUG] Configuring mojo 'org.codehaus.mojo:exec-maven-plugin:1.2.1:exec' with basic configurator -->
      [DEBUG]   (f) basedir = /tmp/ambari/ambari-web
      [DEBUG]   (f) classpathScope = runtime
      [DEBUG]   (f) commandlineArgs = -rf public node_modules
      [DEBUG]   (f) executable = rm
      [DEBUG]   (f) longClasspath = false
      [DEBUG]   (f) project = MavenProject: org.apache.ambari:ambari-web:3.0.0.0-SNAPSHOT @ /tmp/ambari/ambari-web/pom.xml
      [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@61884cb1
      [DEBUG]   (f) skip = false
      [DEBUG]   (s) successCodes = [0, 1, 2]
      [DEBUG]   (f) workingDirectory = /tmp/ambari/ambari-web
      [DEBUG] – end configuration --
      [DEBUG] Executing command line: rm -rf public node_modules
      [INFO]
      [INFO] — exec-maven-plugin:1.2.1:exec (clean-mkdir) @ ambari-web ---
      [DEBUG] Configuring mojo org.codehaus.mojo:exec-maven-plugin:1.2.1:exec from plugin realm ClassRealm[plugin>org.codehaus.mojo:exec-maven-plugin:1.2.1, parent: sun.misc.Launcher$AppClassLoader@7852e922]
      [DEBUG] Configuring mojo 'org.codehaus.mojo:exec-maven-plugin:1.2.1:exec' with basic configurator -->
      [DEBUG]   (f) basedir = /tmp/ambari/ambari-web
      [DEBUG]   (f) classpathScope = runtime
      [DEBUG]   (f) commandlineArgs =  public
      [DEBUG]   (f) executable = mkdir
      [DEBUG]   (f) longClasspath = false
      [DEBUG]   (f) project = MavenProject: org.apache.ambari:ambari-web:3.0.0.0-SNAPSHOT @ /tmp/ambari/ambari-web/pom.xml
      [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@61884cb1
      [DEBUG]   (f) skip = false
      [DEBUG]   (f) workingDirectory = /tmp/ambari/ambari-web
      [DEBUG] – end configuration --
      [DEBUG] Executing command line: mkdir public
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Ambari Web ........................................ FAILURE [26:16.596s]
      [INFO] Apache Ambari Project POM ......................... SKIPPED
      [INFO] Ambari Views ...................................... SKIPPED
      [INFO] Ambari Admin View ................................. SKIPPED
      [INFO] ambari-utility .................................... SKIPPED
      [INFO] Ambari Server SPI ................................. SKIPPED
      [INFO] Ambari Service Advisor ............................ SKIPPED
      [INFO] Ambari Server ..................................... SKIPPED
      [INFO] Ambari Functional Tests ........................... SKIPPED
      [INFO] Ambari Agent ...................................... SKIPPED
      [INFO] Ambari Main ....................................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 29:17.131s
      [INFO] Finished at: Tue Mar 05 07:47:38 UTC 2019
      [INFO] Final Memory: 15M/281M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.0.1:clean (flatten.clean) on project ambari-web: The plugin org.codehaus.mojo:flatten-maven-plugin:1.0.1 requires Maven version 3.2.5 -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.0.1:clean (flatten.clean) on project ambari-web: The plugin org.codehaus.mojo:flatten-maven-plugin:1.0.1 requires Maven version 3.2.5
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:170)
          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:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          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.PluginIncompatibleException: The plugin org.codehaus.mojo:flatten-maven-plugin:1.0.1 requires Maven version 3.2.5
          at org.apache.maven.plugin.internal.DefaultMavenPluginManager.checkRequiredMavenVersion(DefaultMavenPluginManager.java:283)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:166)
          ... 19 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/PluginIncompatibleException_
      The command '/bin/sh -c mvn -B -X clean install package rpm:rpm -DskipTests -Dpython.ver="python >= 2.6" -Preplaceurl' returned a non-zero code: 1

       

      Need to upgrade maven in docker file to fix this problem.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yu2003w Jared
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified