I'm trying to build Hadoop 3.0.3 on Fedora 28. When the build gets to building Apache Hadoop Pipes the build stops with the error:
[WARNING] /home/hadoop/tool/hadoop-3.0.3-src/hadoop-tools/hadoop-pipes/src/main/native/utils/impl/SerialUtils.cc:22:10: fatal error: rpc/types.h: No such file or directory
I understand that Fedora 28 removed Sun RPC and was replaced by libtirpc.
I tried instructing maven gcc to build using the libtirrpc using the following commands:
1) Specifying CFLAGS
$ export CFLAGS=-I/usr/include/tirpc
$ mvn package -Pdist,native -DskipTests -Dtar -Drequire.isal
2) Using container-executor.additional_cflags
$ mvn package -Pdist,native -DskipTests -Dtar -Drequire.isal -Dcontainer-executor.additional_cflags="-I/usr/include/tirpc"
Unfortunately I always get the same error.
What am I doing wrong? I would greatly appreciate any suggestions of how to solve this problem.
Kind regards
Jean