Hadoop Common
  1. Hadoop Common
  2. HADOOP-8133

upgrade commons-daemon.version in hadoop-project/pom.xml from 1.0.3 to 1.0.5 to avoid jsvc / libcap.so linking problem

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: 0.23.0
    • Fix Version/s: None
    • Component/s: build, native
    • Labels:
      None

      Description

      On several recent Linux distributions (tested Ubuntu 9.04, RHEL 6.2, Amazon Linux AMI release 2011.09), there is no libcap.so.1. With commons-daemon 1.0.3, the current version selected by hadoop-project/pom.xml, this causes a linking error:

      $ wget http://archive.apache.org/dist/commons/daemon/binaries/1.0.3/linux/commons-daemon-1.0.3-bin-linux-x86_64.tar.gz
      $ tar xfz commons-daemon-1.0.3-bin-linux-x86_64.tar.gz
      $ ldd jsvc 
      	linux-vdso.so.1 =>  (0x00007ffff43cc000)
      	libdl.so.2 => /lib64/libdl.so.2 (0x00007f9cbbeee000)
      	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9cbbcd2000)
      	libcap.so.1 => not found
      	libc.so.6 => /lib64/libc.so.6 (0x00007f9cbb930000)
      	/lib64/ld-linux-x86-64.so.2 (0x00007f9cbc0fb000)
      

      The same problem also occurs with 1.0.4, but 1.0.5 doesn't have the problem:

      $ wget http://archive.apache.org/dist/commons/daemon/binaries/1.0.5/linux/commons-daemon-1.0.5-bin-linux-x86_64.tar.gz
      $ tar xfz commons-daemon-1.0.5-bin-linux-x86_64.tar.gz 
      $ ldd jsvc 
      	linux-vdso.so.1 =>  (0x00007fff157ff000)
      	libdl.so.2 => /lib64/libdl.so.2 (0x00007f9e14778000)
      	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9e1455c000)
      	libcap.so.2 => /lib64/libcap.so.2 (0x00007f9e14357000)
      	libc.so.6 => /lib64/libc.so.6 (0x00007f9e13fb6000)
      	/lib64/ld-linux-x86-64.so.2 (0x00007f9e14985000)
      	libattr.so.1 => /lib64/libattr.so.1 (0x00007f9e13db2000)
      
      1. HADOOP-8133.patch
        0.5 kB
        Eugene Koontz

        Issue Links

          Activity

          Eugene Koontz created issue -
          Eugene Koontz made changes -
          Field Original Value New Value
          Description On several recent Linux distributions (tested Ubuntu 9.04, RHEL 6.2, Amazon Linux AMI release 2011.09), there is no libcap.so.1. With commons-daemon 1.0.3, the current version selected by {{hadoop-project/pom.xml}}, this causes a linking error:

          {{
          $ wget http://archive.apache.org/dist/commons/daemon/binaries/1.0.3/linux/commons-daemon-1.0.3-bin-linux-x86_64.tar.gz
          $ tar xfz commons-daemon-1.0.3-bin-linux-x86_64.tar.gz
          $ ldd jsvc
          linux-vdso.so.1 => (0x00007ffff43cc000)
          libdl.so.2 => /lib64/libdl.so.2 (0x00007f9cbbeee000)
          libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9cbbcd2000)
          libcap.so.1 => not found
          libc.so.6 => /lib64/libc.so.6 (0x00007f9cbb930000)
          /lib64/ld-linux-x86-64.so.2 (0x00007f9cbc0fb000)
          }}
          The same problem also occurs with 1.0.4, but 1.0.5 doesn't have the problem:

          {{
          $ wget http://archive.apache.org/dist/commons/daemon/binaries/1.0.5/linux/commons-daemon-1.0.5-bin-linux-x86_64.tar.gz
          $ tar xfz commons-daemon-1.0.5-bin-linux-x86_64.tar.gz
          $ ldd jsvc
          linux-vdso.so.1 => (0x00007fff157ff000)
          libdl.so.2 => /lib64/libdl.so.2 (0x00007f9e14778000)
          libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9e1455c000)
          libcap.so.2 => /lib64/libcap.so.2 (0x00007f9e14357000)
          libc.so.6 => /lib64/libc.so.6 (0x00007f9e13fb6000)
          /lib64/ld-linux-x86-64.so.2 (0x00007f9e14985000)
          libattr.so.1 => /lib64/libattr.so.1 (0x00007f9e13db2000)
          }}
          On several recent Linux distributions (tested Ubuntu 9.04, RHEL 6.2, Amazon Linux AMI release 2011.09), there is no libcap.so.1. With commons-daemon 1.0.3, the current version selected by {{hadoop-project/pom.xml}}, this causes a linking error:

          {code}
          $ wget http://archive.apache.org/dist/commons/daemon/binaries/1.0.3/linux/commons-daemon-1.0.3-bin-linux-x86_64.tar.gz
          $ tar xfz commons-daemon-1.0.3-bin-linux-x86_64.tar.gz
          $ ldd jsvc
          linux-vdso.so.1 => (0x00007ffff43cc000)
          libdl.so.2 => /lib64/libdl.so.2 (0x00007f9cbbeee000)
          libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9cbbcd2000)
          libcap.so.1 => not found
          libc.so.6 => /lib64/libc.so.6 (0x00007f9cbb930000)
          /lib64/ld-linux-x86-64.so.2 (0x00007f9cbc0fb000)
          {code}
          The same problem also occurs with 1.0.4, but 1.0.5 doesn't have the problem:

          {code}
          $ wget http://archive.apache.org/dist/commons/daemon/binaries/1.0.5/linux/commons-daemon-1.0.5-bin-linux-x86_64.tar.gz
          $ tar xfz commons-daemon-1.0.5-bin-linux-x86_64.tar.gz
          $ ldd jsvc
          linux-vdso.so.1 => (0x00007fff157ff000)
          libdl.so.2 => /lib64/libdl.so.2 (0x00007f9e14778000)
          libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9e1455c000)
          libcap.so.2 => /lib64/libcap.so.2 (0x00007f9e14357000)
          libc.so.6 => /lib64/libc.so.6 (0x00007f9e13fb6000)
          /lib64/ld-linux-x86-64.so.2 (0x00007f9e14985000)
          libattr.so.1 => /lib64/libattr.so.1 (0x00007f9e13db2000)
          {code}
          Eugene Koontz made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Eugene Koontz made changes -
          Summary upgrade {{commons-daemon.version}} in from 1.0.3 to 1.0.5 to avoid jsvc / libcap.so linking problem upgrade commons-daemon.version in hadoop-project/pom.xml from 1.0.3 to 1.0.5 to avoid jsvc / libcap.so linking problem
          Eugene Koontz made changes -
          Attachment HADOOP-8133.patch [ 12516855 ]
          Eugene Koontz made changes -
          Link This issue relates to DAEMON-234 [ DAEMON-234 ]
          Eugene Koontz made changes -
          Link This issue relates to DAEMON-242 [ DAEMON-242 ]
          Eugene Koontz made changes -
          Link This issue is superceded by HDFS-2303 [ HDFS-2303 ]
          Aaron T. Myers made changes -
          Link This issue is related to HDFS-2962 [ HDFS-2962 ]
          Aaron T. Myers made changes -
          Link This issue is related to HDFS-2303 [ HDFS-2303 ]
          Harsh J made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Not A Problem [ 8 ]
          Harsh J made changes -
          Affects Version/s 0.23.0 [ 12315569 ]
          Affects Version/s 0.24.0 [ 12317652 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Eugene Koontz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development