Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling Third-Party Dependencies Is Suspended and Execution Cannot Be Completed

Symptom

Executing sh build-thirdparty.sh is suspended at "Finished patching vectorscan-vectorscan-5.4.11" for a long time, and the program execution cannot be completed.

Key Process and Cause Analysis

The downloading progress of https://doris-thirdparty-repo.bj.bcebos.com/thirdparty/aws-crt-cpp-1.11.119.tar.gz is too slow.

Conclusion and Solution

  1. Press Ctrl+C to terminate the program.
  2. Open the download-thirdparty.sh file.
    1
    vi /opt/tools/installed/doris-2.1.2-rc04/thirdparty/download-thirdparty.sh
    
  3. Press i to enter the insert mode and comment out lines 366, 368, 369 and 370.
    #if wget --no-check-certificate -q https://doris-thirdparty-repo.bj.bcebos.com/thirdparty/aws-crt-cpp-1.11.119.tar.gz -O aws-crt-cpp-1.11.119.tar.gz; then
    tar xzf aws-crt-cpp-1.11.119.tar.gz
    #else
    #bash ./prefetch_crt dependency,sh
    #fi

  4. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Download aws-crt-cpp-1.11.119.tar.gz, upload it to the server, and decompress it to the thirdparty/src/aws-sdk-cpp-1.11.119 directory.
  6. Run the command again:
    1
    2
    cd /opt/tools/installed/doris-2.1.2-rc04/thirdparty
    sh build-thirdparty.sh