Setup Local Confluent Platform - theryanwatson/confluent-kafka-scripts GitHub Wiki

  1. Download the Confluent Platform tar:
    $ wget https://packages.confluent.io/archive/6.2/confluent-6.2.0.tar.gz -P ~/Downloads/
    
  2. Extract it and make a symlink for easy updating:
    $ tar -xzf ~/Downloads/confluent-6.2.0.tar.gz -C ~/Downloads/ && \
    sudo mv ~/Downloads/confluent-6.2.0 /usr/lib/ && \
    sudo rm -f /usr/lib/confluent && \
    sudo ln -s /usr/lib/confluent-6.2.0 /usr/lib/confluent && \
    ls -al /usr/lib/confluent
    
  3. Delete the tar to save disk-space when you're done:
    $ rm ~/Downloads/confluent-6.2.0.tar.gz
    
  4. Add the bin path to your ~/.profile (and restart or source the file, as needed)
    # set confluent bin path
    export CONFLUENT_HOME=/usr/lib/confluent
    if [ -d "${CONFLUENT_HOME}/bin" ]; then
        PATH="${CONFLUENT_HOME}/bin:$PATH"
    fi
    
  5. Start/Stop/Destroy Local Confluent by running commands like:
    confluent local services start; # Start All Local Services
    confluent local services stop; # Stop All Local Services
    confluent local destroy; # Stop & Remove All Local Service Configurations, Changes, etc.
    
  6. See more options in the Confluent CLI Reference Documentation