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

Fix Ambari deployment on CentOS 8, Fedora 31 and Debian 10

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • None
    • None

    Description

      Deploying Ambari fails on CentOS 8 and Fedora 31 due to the lack of diffutils:

      https://ci.bigtop.apache.org/job/Bigtop-trunk-smoke-tests/169/COMPONENTS=ambari.bigtop-utils@ambari,OS=centos-8-x86_64-deploy/console
      https://ci.bigtop.apache.org/job/Bigtop-trunk-smoke-tests/169/COMPONENTS=ambari.bigtop-utils@ambari,OS=fedora-31-aarch64-deploy/console
      https://ci.bigtop.apache.org/job/Bigtop-trunk-smoke-tests/169/COMPONENTS=ambari.bigtop-utils@ambari,OS=fedora-31-x86_64-deploy/console

      Sep 25 03:43:54 ee06f4cdb722 systemd[1]: Starting LSB: ambari-agent daemon...
      Sep 25 03:43:54 ee06f4cdb722 ambari-agent[1930]: Verifying Python version compatibility...
      Sep 25 03:43:54 ee06f4cdb722 ambari-agent[1930]: Using python  /usr/bin/python2
      Sep 25 03:43:54 ee06f4cdb722 ambari-agent[1930]: Checking for previously running Ambari Agent...
      Sep 25 03:43:54 ee06f4cdb722 ambari-agent[1930]: Checking ambari-common dir...
      Sep 25 03:43:54 ee06f4cdb722 ambari-agent[1930]: /var/lib/ambari-agent/bin/ambari-agent: line 174: diff: command not found
      Sep 25 03:43:54 ee06f4cdb722 ambari-agent[1930]: ERROR: ambari_commons folder mismatch. /usr/lib/python2.6/site-packages/ambari_commons content should be the same as /usr/lib/ambari-agent/lib/ambari_commons. Either ambari-agent is co-hosted with ambari-server and agent was upgraded without server or the link was broken.
      Sep 25 03:43:54 ee06f4cdb722 systemd[1]: ambari-agent.service: Control process exited, code=exited status=255
      

      And on Debian 10 when resolving java path:

      https://ci.bigtop.apache.org/job/Bigtop-trunk-smoke-tests/169/COMPONENTS=ambari.bigtop-utils@ambari,OS=debian-10-amd64-deploy/console
      https://ci.bigtop.apache.org/job/Bigtop-trunk-smoke-tests/169/COMPONENTS=ambari.bigtop-utils@ambari,OS=debian-10-arm64-deploy/console

      Notice: /Stage[main]/Ambari::Server/Exec[server setup]/returns: Checking JDK...
      Notice: /Stage[main]/Ambari::Server/Exec[server setup]/returns: ERROR: Exiting with exit code 1. 
      Notice: /Stage[main]/Ambari::Server/Exec[server setup]/returns: REASON: Downloading or installing JDK failed: 'Fatal exception: Path to java home /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin/java or java binary file does not exists, exit code 1'. Exiting.
      Error: '/usr/sbin/ambari-server setup -j $(readlink -f /usr/bin/java | sed 's@jre/bin/java@@') -s' returned 1 instead of one of [0]
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sekikn Kengo Seki
            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 - 1h
                1h

                Slack

                  Issue deployment