Kengo Seki created BIGTOP-3472:
----------------------------------
Summary: Building Hadoop 3.2.1 fails on CentOS 7 due to cmake
version mismatch
Key: BIGTOP-3472
URL: https://issues.apache.org/jira/browse/BIGTOP-3472
Project: Bigtop
Issue Type: Bug
Components: hadoop
Reporter: Kengo Seki
I tried to build Hadoop 3.2.1 on CentOS 7 and came across the following error.
{code:java}
$ git status
# On branch master
nothing to commit, working directory clean
$ git log -1
commit 26a92e4340fee6ab2f6aa6a5925faf33d41ec181
Author: Masatake Iwasaki <[email protected]>
Date: Fri Dec 18 22:12:14 2020 +0900
BIGTOP-3280. Bump Hadoop to 3.2.1. (#704)
$ ./gradlew hadoop-clean hadoop-pkg -Dbuildwithdeps=true
(snip)
[WARNING] -- The C compiler identification is GNU 4.8.5
[WARNING] -- The CXX compiler identification is GNU 4.8.5
[WARNING] -- Check for working C compiler: /usr/bin/cc
[WARNING] -- Check for working C compiler: /usr/bin/cc -- works
[WARNING] -- Detecting C compiler ABI info
[WARNING] -- Detecting C compiler ABI info - done
[WARNING] -- Check for working CXX compiler: /usr/bin/c++
[WARNING] -- Check for working CXX compiler: /usr/bin/c++ -- works
[WARNING] -- Detecting CXX compiler ABI info
[WARNING] -- Detecting CXX compiler ABI info - done
[WARNING] CMake Error at CMakeLists.txt:23 (cmake_minimum_required):
[WARNING] CMake 3.1 or higher is required. You are running version 2.8.12.2
[WARNING]
[WARNING]
[WARNING] -- Configuring incomplete, errors occurred!
[WARNING] See also
"/home/vagrant/bigtop/build/hadoop/rpm/BUILD/hadoop-3.2.1-src/hadoop-common-project/hadoop-common/target/native/CMakeFiles/CMakeOutput.log".
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main 3.2.1 ........................... SUCCESS [ 29.857 s]
[INFO] Apache Hadoop Build Tools .......................... SUCCESS [ 2.092 s]
[INFO] Apache Hadoop Project POM .......................... SUCCESS [ 2.566 s]
[INFO] Apache Hadoop Annotations .......................... SUCCESS [ 6.963 s]
[INFO] Apache Hadoop Assemblies ........................... SUCCESS [ 0.963 s]
[INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [ 2.789 s]
[INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [ 11.651 s]
[INFO] Apache Hadoop MiniKDC .............................. SUCCESS [ 5.019 s]
[INFO] Apache Hadoop Auth ................................. SUCCESS [ 15.952 s]
[INFO] Apache Hadoop Auth Examples ........................ SUCCESS [ 8.631 s]
[INFO] Apache Hadoop Common ............................... FAILURE [ 20.520 s]
(snip)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:51 min
[INFO] Finished at: 2021-01-05T05:31:55Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.hadoop:hadoop-maven-plugins:3.2.1:cmake-compile (cmake-compile) on
project hadoop-common: CMake failed with error code 1 -> [Help 1]
{code}
It seems that we have to install the cmake3 package via toolchain and make it
executable as 'cmake' on CentOS 7.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)