Uploaded image for project: 'CDH (READ-ONLY)'
  1. CDH (READ-ONLY)
  2. DISTRO-297

Building Oozie from tarball fails due to misconfiguration in pom.xml

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: CDH3u0, CDH3u1
    • Fix Version/s: CDH3u2
    • Component/s: Oozie
    • Labels:

      Description

      Downloaded: http://repo1.maven.org/maven2/org/mortbay/jetty/servlet-api-2.5/6.1.5/servlet-api-2.5-6.1.5.jar (130 KB at 57.5 KB/sec)
      [INFO] Unable to load parent project from a relative path: 1 problem was encountered while building the effective model
      [FATAL] Non-readable POM /home/esteban/src/oozie-2.3.0-cdh3u1/src/../pom.xml: /home/esteban/src/oozie-2.3.0-cdh3u1/src/../pom.xml (No such file or directory) @
       for project  at /home/esteban/src/oozie-2.3.0-cdh3u1/src/../pom.xml for project  at /home/esteban/src/oozie-2.3.0-cdh3u1/src/../pom.xml
      [INFO] Parent project loaded from repository.
      Downloading: http://repository.codehaus.org/com/cloudera/cdh/cdh-root/3.0-u1/cdh-root-3.0-u1-site_en.xml
      Downloading: https://repository.cloudera.com/content/groups/cloudera-repos/com/cloudera/cdh/cdh-root/3.0-u1/cdh-root-3.0-u1-site_en.xml
      Downloading: https://repository.cloudera.com/content/repositories/snapshots/com/cloudera/cdh/cdh-root/3.0-u1/cdh-root-3.0-u1-site_en.xml
      Downloading: https://repository.cloudera.com/content/groups/cdh-releases-rcs/com/cloudera/cdh/cdh-root/3.0-u1/cdh-root-3.0-u1-site_en.xml
      Downloading: http://www.datanucleus.org/downloads/maven2/com/cloudera/cdh/cdh-root/3.0-u1/cdh-root-3.0-u1-site_en.xml
      Downloading: http://download.java.net/maven/2/com/cloudera/cdh/cdh-root/3.0-u1/cdh-root-3.0-u1-site_en.xml
      Downloading: https://repository.cloudera.com/content/repositories/third-party/com/cloudera/cdh/cdh-root/3.0-u1/cdh-root-3.0-u1-site_en.xml
      Downloading: http://repo1.maven.org/maven2/com/cloudera/cdh/cdh-root/3.0-u1/cdh-root-3.0-u1-site_en.xml
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Oozie Main ........................................ SUCCESS [2:45.093s]
      [INFO] Oozie Client ...................................... SUCCESS [1:47.732s]
      [INFO] Oozie Share Lib ................................... SUCCESS [5:27.961s]
      [INFO] Oozie Core ........................................ SUCCESS [5:15.946s]
      [INFO] Oozie Docs ........................................ FAILURE [1:19.379s]
      [INFO] Oozie WebApp ...................................... SKIPPED
      [INFO] Oozie Examples .................................... SKIPPED
      [INFO] Oozie Distro ...................................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 17:04.847s
      [INFO] Finished at: Tue Aug 16 16:03:17 PDT 2011
      [INFO] Final Memory: 49M/119M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:2.0-beta-6:site (default) on project oozie-docs: The site descriptor cannot be resolved from the repository: Could not transfer artifact com.cloudera.cdh:cdh-root:xml:site_en:3.0-u1 from/to cdh.snapshots.repo (https://repository.cloudera.com/content/repositories/snapshots): Error transferring file: Server returned HTTP response code: 409 for URL: https://repository.cloudera.com/content/repositories/snapshots/com/cloudera/cdh/cdh-root/3.0-u1/cdh-root-3.0-u1-site_en.xml
      [ERROR] com.cloudera.cdh:cdh-root:xml:3.0-u1
      [ERROR]
      [ERROR] from the specified remote repositories:
      [ERROR] Codehaus repository (http://repository.codehaus.org/, releases=true, snapshots=false),
      [ERROR] cdh.repo (https://repository.cloudera.com/content/groups/cloudera-repos, releases=true, snapshots=false),
      [ERROR] cdh.snapshots.repo (https://repository.cloudera.com/content/repositories/snapshots, releases=true, snapshots=true),
      [ERROR] cdh.releases.repo (https://repository.cloudera.com/content/groups/cdh-releases-rcs, releases=true, snapshots=false),
      [ERROR] datanucleus (http://www.datanucleus.org/downloads/maven2, releases=true, snapshots=false),
      [ERROR] java.net repository (http://download.java.net/maven/2, releases=true, snapshots=false),
      [ERROR] cdh.thirdparty.repo (https://repository.cloudera.com/content/repositories/third-party, releases=true, snapshots=false),
      [ERROR] central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
      [ERROR] -> [Help 1]
      

      A workaround for the issue is to edit pom.xml and disable 'releases' in the 'cdh.snapshots.repo' repository:

      <repository>
                  <id>cdh.snapshots.repo</id>
                  <url>https://repository.cloudera.com/content/repositories/snapshots</url>
                  <name>Cloudera Snapshots Repository</name>
                   <releases><enabled>false</enabled></releases> <!-- disabled -->
                  <snapshots>
                      <enabled>true</enabled>
                  </snapshots>
      </repository>
      
      

        Attachments

          Activity

            People

            • Assignee:
              andrew Andrew Bayer
              Reporter:
              esteban Esteban Gutierrez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: