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

Ambari: installing ODPi mpack fails due to changing its file name

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.1
    • Component/s: None
    • Labels:
      None

      Description

      BIGTOP-2729 seemed to change the tarball name for ODPi mpack from odpi-ambari-mpack-1.0.0.0-SNAPSHOT.tar.gz to odpi-ambari-mpack-1.0.0.0-SNAPSHOT-odpi-ambari-mpack.tar.gz, so now deploying ambari via puppet fails with the following error:

      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns: Using python  /usr/bin/python
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns: Installing management pack
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns: INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns: INFO: Installing management pack /var/lib/ambari-server/resources/odpi-ambari-mpack-1.0.0.0-SNAPSHOT.tar.gz
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns: INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns: INFO: Download management pack to temp location /var/lib/ambari-server/data/tmp/odpi-ambari-mpack-1.0.0.0-SNAPSHOT.tar.gz
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns: INFO: Downloading /var/lib/ambari-server/resources/odpi-ambari-mpack-1.0.0.0-SNAPSHOT.tar.gz to /var/lib/ambari-server/data/tmp/odpi-ambari-mpack-1.0.0.0-SNAPSHOT.tar.gz
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns: Traceback (most recent call last):
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:   File "/usr/sbin/ambari-server.py", line 941, in <module>
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:     mainBody()
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:   File "/usr/sbin/ambari-server.py", line 911, in mainBody
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:     main(options, args, parser)
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:   File "/usr/sbin/ambari-server.py", line 863, in main
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:     action_obj.execute()
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:   File "/usr/sbin/ambari-server.py", line 78, in execute
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:     self.fn(*self.args, **self.kwargs)
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:   File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 861, in install_mpack
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:     (mpack_metadata, mpack_name, mpack_version, mpack_staging_dir, mpack_archive_path) = _install_mpack(options, replay_mode)
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:   File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 690, in _install_mpack
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:     tmp_archive_path = download_mpack(mpack_path)
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:   File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 140, in download_mpack
      Error: /bin/bash -c 'echo yes | /usr/sbin/ambari-server install-mpack --purge --verbose --mpack=/var/lib/ambari-server/resources/odpi-ambari-mpack-1.0.0.0-SNAPSHOT.tar.gz' returned 1 instead of one of [0]
      Error: /Stage[main]/Ambari::Server/Exec[mpack install]/returns: change from notrun to 0 failed: /bin/bash -c 'echo yes | /usr/sbin/ambari-server install-mpack --purge --verbose --mpack=/var/lib/ambari-server/resources/odpi-ambari-mpack-1.0.0.0-SNAPSHOT.tar.gz' returned 1 instead of one of [0]
      Warning: /Stage[main]/Ambari::Server/Exec[server setup]: Skipping because of failed dependencies
      Warning: /Stage[main]/Ambari::Server/Service[ambari-server]: Skipping because of failed dependencies
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:     download_file(mpack_path, tmp_archive_path)
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:   File "/usr/lib/python2.6/site-packages/ambari_commons/inet_utils.py", line 58, in download_file
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:     force_download_file(link, destination, chunk_size, progress_func = progress_func)
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:   File "/usr/lib/python2.6/site-packages/ambari_commons/inet_utils.py", line 126, in force_download_file
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:     response = urllib2.urlopen(request)
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:   File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:     return opener.open(url, data, timeout)
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:   File "/usr/lib/python2.7/urllib2.py", line 421, in open
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:     protocol = req.get_type()
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:   File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns:     raise ValueError, "unknown url type: %s" % self.__original
      Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns: ValueError: unknown url type: /var/lib/ambari-server/resources/odpi-ambari-mpack-1.0.0.0-SNAPSHOT.tar.gz
      

        Issue Links

          Activity

          Hide
          sekikn Kengo Seki added a comment -

          Thanks! Committed and pushed.

          Show
          sekikn Kengo Seki added a comment - Thanks! Committed and pushed.
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user asfgit closed the pull request at:

          https://github.com/apache/bigtop/pull/225

          Show
          githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/bigtop/pull/225
          Hide
          warwithin YoungWoo Kim added a comment -

          +1

          Show
          warwithin YoungWoo Kim added a comment - +1
          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user sekikn opened a pull request:

          https://github.com/apache/bigtop/pull/225

          BIGTOP-2789. Ambari: installing ODPi mpack fails due to changing its file name

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/sekikn/bigtop BIGTOP-2789

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/bigtop/pull/225.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #225


          commit 94805de10d5ce2dcbebf22f5b3a70e16070cc0ad
          Author: Kengo Seki <sekikn@apache.org>
          Date: 2017-05-29T22:56:33Z

          BIGTOP-2789. Ambari: installing ODPi mpack fails due to changing its file name


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user sekikn opened a pull request: https://github.com/apache/bigtop/pull/225 BIGTOP-2789 . Ambari: installing ODPi mpack fails due to changing its file name You can merge this pull request into a Git repository by running: $ git pull https://github.com/sekikn/bigtop BIGTOP-2789 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/bigtop/pull/225.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #225 commit 94805de10d5ce2dcbebf22f5b3a70e16070cc0ad Author: Kengo Seki <sekikn@apache.org> Date: 2017-05-29T22:56:33Z BIGTOP-2789 . Ambari: installing ODPi mpack fails due to changing its file name

            People

            • Assignee:
              sekikn Kengo Seki
              Reporter:
              sekikn Kengo Seki
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development