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

Use CMake 3.19.0 in Debian 10

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • build
    • Reviewed

    Description

      HDFS Native Client fails to build on Debian 10 due to the following error -

      [WARNING] CMake Error at main/native/libhdfspp/CMakeLists.txt:68 (FetchContent_MakeAvailable):
      [WARNING]   Unknown CMake command "FetchContent_MakeAvailable".
      [WARNING] 
      [WARNING] 
      [WARNING] -- Configuring incomplete, errors occurred!
      

      Jenkins run - https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4371/2/artifact/out/branch-compile-hadoop-hdfs-project_hadoop-hdfs-native-client.txt

      This cause for this issue is that the version of CMake on Debian 10 (which is installed through apt) is 3.13 and FetchContent_MakeAvailable was introduced in CMake 3.14

      Thus, we upgrade CMake by installing through the install-cmake.sh script from pkg-resolver which installs CMake 3.19.0, instead of installing CMake through apt on Debian 10.

      Attachments

        Issue Links

          Activity

            People

              gaurava Gautham Banasandra
              gaurava Gautham Banasandra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h