Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling Dependencies

  1. Use the Yum source to install the base library.
    1
    yum install openssl-devel zlib-devel automake libtool
    
  2. Optional: Compile Snappy.

    Snappy is an optional compression library. You can add compilation options to the Hadoop software package.

    1. Download the Snappy dependency package.
      1
      wget https://github.com/google/snappy/archive/refs/tags/1.1.7.tar.gz
      

      The name of the installation package downloaded using the wget command is 1.1.7.tar.gz, while that downloaded using the browser is snappy-1.1.7.tar.gz.

    2. After decompression, go to the target directory. For example, if the downloaded installation package is named 1.1.7.tar.gz, run the following commands:
      1
      2
      tar -zxvf 1.1.7.tar.gz
      cd snappy-1.1.7
      
    3. Modify the CMakeLists.txt file to enable the dynamic link library compilation.
      1. Open the file.
        1
        vi CMakeLists.txt
        
      2. Press i to enter the insert mode and change the value of this option from OFF to ON.
        1
        option(BUILD_SHARED_LIBS "Build shared libraries(DLLs)." ON)
        
      3. Press Esc, type :wq!, and press Enter to save the file and exit.
    4. Create a compilation directory and perform compilation.
      1
      2
      3
      4
      mkdir build
      cd build
      cmake ../
      make install