Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing RocksDB JNI

Compiling RocksDBjni 5.7.3

  1. Download the RocksDBjni 5.7.3 source code.
    1
    wget https://codeload.github.com/facebook/rocksdb/zip/v5.7.3
    
  2. Decompress the source code package.
    1
    2
    mv v5.7.3 rocksdbjni-5.7.3.zip
    unzip rocksdbjni-5.7.3.zip
    
  3. Go to the directory generated after the decompression.
    1
    cd rocksdb-5.7.3
    
  4. In the Makefile file, change the value of DEBUG_LEVEL to 0.

  5. Change the Maven repository address in the java/Makefile file to https://repo1.maven.org/maven2/.
    1. Open the file.
      1
      vi java/Makefile
      
    2. Press i to enter the insert mode and set CENTRAL_REPO_URL? to https://repo1.maven.org/maven2/.
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Compile the source code and package it into rocksdbjni-5.7.3-linux64.jar in the rocksdb-5.7.3/java/target directory.
    1
    PORTABLE=1 make rocksdbjava -j8
    

Compiling RocksDBjni 5.14.2

  1. Download the RocksDBjni 5.14.2 source code.
    1
    wget https://codeload.github.com/facebook/rocksdb/zip/v5.14.2
    
  2. Decompress the source code package.
    1
    2
    mv v5.14.2 rocksdbjni-5.14.2.zip
    unzip rocksdbjni-5.14.2.zip
    
  3. Go to the directory generated after the decompression.
    1
    cd rocksdb-5.14.2
    
  4. In the Makefile file, change the value of DEBUG_LEVEL to 0.

  5. Change the Maven repository address in the java/Makefile file to https://repo1.maven.org/maven2/.
    1. Open the file.
      1
      vi java/Makefile
      

    2. Press i to enter the insert mode and set CENTRAL_REPO_URL? to https://repo1.maven.org/maven2/.
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Compile the source code and package rocksdbjni-5.14.2-linux64.jar to the rocksdb-5.14.2/java/target directory.
    1
    PORTABLE=1 make rocksdbjava -j8
    

Compiling RocksDBjni 5.15.10

  1. Download the RocksDBjni 5.15.10 source code.
    1
    wget https://codeload.github.com/facebook/rocksdb/zip/v5.15.10
    
  2. Decompress the source code package.
    1
    2
    mv v5.15.10 rocksdbjni-5.15.10.zip
    unzip rocksdbjni-5.15.102.zip
    
  3. Go to the directory generated after the decompression.
    1
    cd rocksdb-5.15.10
    
  4. In the Makefile file, change the value of DEBUG_LEVEL to 0.

  5. Change the Maven repository address in the java/Makefile file to https://repo1.maven.org/maven2/.
    1. Open the file.
      1
      vi java/Makefile
      

    2. Press i to enter the insert mode and set CENTRAL_REPO_URL? to https://repo1.maven.org/maven2/.
    3. Press Esc.
  6. Compile the source code and package rocksdbjni-5.15.10-linux64.jar to the rocksdb-5.15.10/java/target directory.
    1
    PORTABLE=1 make rocksdbjava -j8