[
https://issues.apache.org/jira/browse/HADOOP-16739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16985825#comment-16985825
]
Masatake Iwasaki commented on HADOOP-16739:
-------------------------------------------
I attached 001. The fix links the library of hadoop-pipes only if rpc.h
provided by glibc is not found in order to keep current dependencies on already
working environment.
I tested this on CentOS 8, CentOS 7 and Ubuntu 19.04.
On CentOS 8, libtirpc is used.
{noformat}
$ rpm -q libtirpc-devel
libtirpc-devel-1.1.4-3.el8.x86_64
$ ldd hadoop-tools/hadoop-pipes/target/native/examples/pipes-sort | grep tirpc
libtirpc.so.3 => /lib64/libtirpc.so.3 (0x00007fe7b81d2000)
{noformat}
On CentOS 7, libtirpc is not used even if libtirpc-devel is installed since
rpc.h is provided by glibc-headers.
{noformat}
$ rpm -q libtirpc-devel
libtirpc-devel-0.2.4-0.16.el7.x86_64
$ rpm -ql glibc-headers | grep rpc.h
/usr/include/rpc/rpc.h
$ ldd hadoop-tools/hadoop-pipes/target/native/examples/pipes-sort | grep tirpc
{noformat}
Same on Ubuntu 19.04.
{noformat}
$ apt list libtirpc-dev
Listing... Done
libtirpc-dev/disco,now 1.1.4-0.4 amd64 [installed]
$ apt-file list libc6-dev | grep rpc.h
libc6-dev: /usr/include/rpc/rpc.h
$ ldd hadoop-tools/hadoop-pipes/target/native/examples/pipes-sort | grep tirpc
{noformat}
> Fix native build failure of hadoop-pipes on CentOS 8
> ----------------------------------------------------
>
> Key: HADOOP-16739
> URL: https://issues.apache.org/jira/browse/HADOOP-16739
> Project: Hadoop Common
> Issue Type: Improvement
> Components: tools/pipes
> Reporter: Masatake Iwasaki
> Assignee: Masatake Iwasaki
> Priority: Major
> Attachments: HADOOP-16739.001.patch
>
>
> Native build fails in hadoop-tools/hadoop-pips on CentOS 8 due to lack of
> rpc.h which was removed from glibc.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]