Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9777

RPM should not claim ownership of paths owned by the platform

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.2
    • Fix Version/s: None
    • Component/s: build
    • Labels:
      None
    • Environment:

      Fedora 19 x64

    • Tags:
      rpm

      Description

      Installing Apache Hadoop rpm ( hadoop-1.1.2-1.x86_64.rpm ) on Fedora 19 x64 fails with:

      [root@laptop hadoop]# rpm -i /home/sslavic/Downloads/hadoop-1.1.2-1.x86_64.rpm
      file /usr/bin from install of hadoop-1.1.2-1.x86_64 conflicts with file from package filesystem-3.2-12.fc19.x86_64
      file /usr/lib from install of hadoop-1.1.2-1.x86_64 conflicts with file from package filesystem-3.2-12.fc19.x86_64
      file /usr/lib64 from install of hadoop-1.1.2-1.x86_64 conflicts with file from package filesystem-3.2-12.fc19.x86_64
      file /usr/sbin from install of hadoop-1.1.2-1.x86_64 conflicts with file from package filesystem-3.2-12.fc19.x86_64

      Same issue occurs if one tries to install as non-root user:

      [sslavic@laptop ~]$ sudo rpm -i Downloads/hadoop-1.1.2-1.x86_64.rpm
      file /usr/bin from install of hadoop-1.1.2-1.x86_64 conflicts with file from package filesystem-3.2-12.fc19.x86_64
      file /usr/lib from install of hadoop-1.1.2-1.x86_64 conflicts with file from package filesystem-3.2-12.fc19.x86_64
      file /usr/lib64 from install of hadoop-1.1.2-1.x86_64 conflicts with file from package filesystem-3.2-12.fc19.x86_64
      file /usr/sbin from install of hadoop-1.1.2-1.x86_64 conflicts with file from package filesystem-3.2-12.fc19.x86_64

      It seems these 4 directories in Hadoop rpm have wrong permissions (+w for owner).
      This is violation of packaging rules. Hadoop rpm spec and/or build scripts need to be fixed, so that rpm on installation doesn't try to claim ownership of paths owned by the platform, in this case, filesystem.

        Activity

        Hide
        stevel@apache.org Steve Loughran added a comment -

        Have you tried this with later versions of Hadoop artifacts?

        Show
        stevel@apache.org Steve Loughran added a comment - Have you tried this with later versions of Hadoop artifacts?
        Hide
        farrellee Matthew Farrellee added a comment -

        http://www.us.apache.org/dist/hadoop/common/

        1.1.2 is the only release that appears to have an RPM option.

        Where can I find a later version in RPM form?

        Show
        farrellee Matthew Farrellee added a comment - http://www.us.apache.org/dist/hadoop/common/ 1.1.2 is the only release that appears to have an RPM option. Where can I find a later version in RPM form?
        Hide
        farrellee Matthew Farrellee added a comment -

        This is still an issue in the recently released 1.2.1 RPMs -

        Transaction check error:
        file /usr/bin from install of hadoop-1.2.1-1.x86_64 conflicts with file from package filesystem-3.2-13.fc19.x86_64
        file /usr/lib from install of hadoop-1.2.1-1.x86_64 conflicts with file from package filesystem-3.2-13.fc19.x86_64
        file /usr/lib64 from install of hadoop-1.2.1-1.x86_64 conflicts with file from package filesystem-3.2-13.fc19.x86_64
        file /usr/sbin from install of hadoop-1.2.1-1.x86_64 conflicts with file from package filesystem-3.2-13.fc19.x86_64

        Show
        farrellee Matthew Farrellee added a comment - This is still an issue in the recently released 1.2.1 RPMs - Transaction check error: file /usr/bin from install of hadoop-1.2.1-1.x86_64 conflicts with file from package filesystem-3.2-13.fc19.x86_64 file /usr/lib from install of hadoop-1.2.1-1.x86_64 conflicts with file from package filesystem-3.2-13.fc19.x86_64 file /usr/lib64 from install of hadoop-1.2.1-1.x86_64 conflicts with file from package filesystem-3.2-13.fc19.x86_64 file /usr/sbin from install of hadoop-1.2.1-1.x86_64 conflicts with file from package filesystem-3.2-13.fc19.x86_64
        Hide
        aw Allen Wittenauer added a comment -

        Closing as won't fix, since we no longer build RPMs as part of the main Hadoop project.

        Show
        aw Allen Wittenauer added a comment - Closing as won't fix, since we no longer build RPMs as part of the main Hadoop project.

          People

          • Assignee:
            Unassigned
            Reporter:
            sslavic Stevo Slavic
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development