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

Fix Mpack's build and deployment problems on Ubuntu

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0, 3.0.1
    • None
    • None

    Description

      1. Building Mpack on Ubuntu fails as follows, due to an unwanted binary file.

      $ ./gradlew allclean bigtop-ambari-mpack-pkg-ind -POS=ubuntu-18.04
      
      ...
      
      dpkg-source: error: unwanted binary file: debian/bgtp-ambari-mpack/src/main/resources/stacks/BGTP/1.0/hooks/before-START/files/fast-hdfs-resource.jar
      
      > Task :bigtop-ambari-mpack-sdeb FAILED
      dpkg-source: error: detected 1 unwanted binary file (add it in debian/source/include-binaries to allow its inclusion).
      :bigtop-ambari-mpack-sdeb (Thread[Execution worker for ':' Thread 8,5,main]) completed. Took 2.81 secs.
      dpkg-buildpackage: error: dpkg-source -b bigtop-ambari-mpack-2.7.5.0 subprocess returned exit status 29
      4 actionable tasks: 4 executed
      
      FAILURE: Build failed with an exception.
      

      2. This Mpack adds a repo definition, which has "BGTP" and "main" for its suite and component respectively.

      2022-03-25 13:47:34,471 - Repository['BGTP-1.0-repo-2'] {'base_url': 'http://repos.bigtop.apache.org/releases/1.5.0/ubuntu/18.04/$(ARCH)', 'action': ['prepare'], 'components': [u'BGTP', 'main'], 'repo_template': '{{package_type}} {{base_url}} {{components}}', 'repo_file_name': 'ambari-bgtp-2', 'mirror_list': None}
      2022-03-25 13:47:34,475 - Repository[None] {'action': ['create']}
      2022-03-25 13:47:34,477 - File['/tmp/tmpvON77X'] {'content': 'deb http://repos.bigtop.apache.org/releases/1.5.0/ubuntu/18.04/$(ARCH) BGTP main'}
      2022-03-25 13:47:34,477 - Writing File['/tmp/tmpvON77X'] because contents don't match
      2022-03-25 13:47:34,478 - File['/tmp/tmp9unX4H'] {'content': StaticFile('/etc/apt/sources.list.d/ambari-bgtp-2.list')}
      
      $ cat /etc/apt/sources.list.d/ambari-bgtp-2.list 
      deb http://repos.bigtop.apache.org/releases/1.5.0/ubuntu/18.04/$(ARCH) BGTP main
      

      Unfortunately it doesn't work and causes the following error. They should be "bigtop" and "contrib".

      RuntimeError: Failed to execute command '/usr/bin/apt-get -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install hadoop', exited with code '100', message: 'E: Unable to locate package hadoop'
      

      Attachments

        Activity

          People

            Xcellence David
            sekikn Kengo Seki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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