Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-3357

Can't build ambari 2.6.2

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Do
    • Affects Version/s: 1.4.0
    • Fix Version/s: backlog
    • Component/s: build
    • Labels:
      None
    • Environment:

      Description

      Trying to build via git:

      ./gradlew ambari-pkg -Pgit_repo="https://github.com/apache/ambari.git" -Pgit_ref="release-2.6.2" -Pbase_version="2.6.2" --stacktrace

      I run into an issue with one of the patches not working correctly.

       

      + STATUS=0
      + '[' 0 -ne 0 ']'
      + cd apache-ambari-2.6.2-src
      + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
      + echo 'Patch #0 (patch0-AMBARI.diff):'
      Patch #0 (patch0-AMBARI.diff):
      + /usr/bin/cat /home/ec2-user/bigtop/build/ambari/rpm/SOURCES/patch0-AMBARI.diff
      + /usr/bin/patch -p1 --fuzz=0
      patching file contrib/management-packs/odpi-ambari-mpack/pom.xml
      + echo 'Patch #1 (patch1-AMBARI-storm.diff):'
      Patch #1 (patch1-AMBARI-storm.diff):
      + /usr/bin/cat /home/ec2-user/bigtop/build/ambari/rpm/SOURCES/patch1-AMBARI-storm.diff
      + /usr/bin/patch -p1 --fuzz=0
      patching file ambari-metrics/ambari-metrics-storm-sink/pom.xml
      Reversed (or previously applied) patch detected!  Assume -R? [n] 
      Apply anyway? [n] 
      Skipping patch.
      1 out of 1 hunk ignored -- saving rejects to file ambari-metrics/ambari-metrics-storm-sink/pom.xml.rej
      error: Bad exit status from /var/tmp/rpm-tmp.RrUJcn (%prep)
          Bad exit status from /var/tmp/rpm-tmp.RrUJcn (%prep)
      
      
      
      
      RPM build errors:
      
      
      > Task :ambari-rpm FAILED
      
      
      FAILURE: Build failed with an exception.
      
      
      * Where:
      Script '/home/ec2-user/bigtop/packages.gradle' line: 500
      
      
      * What went wrong:
      Execution failed for task ':ambari-rpm'.
      > Process 'command 'rpmbuild'' finished with non-zero exit value 1
      
      
      * Try:
      Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      
      
      

      removing patch1-AMBARI-storm.diff from

      /bigtop/bigtop-packages/src/common/ambari/ 

      allows build to complete.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mandruff Matt Andruff
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: