Skip to content

Instantly share code, notes, and snippets.

@jeffrade
Created September 11, 2019 19:06
Show Gist options
  • Select an option

  • Save jeffrade/913b058aa6f8f324a9b2c1cc7aeaf82e to your computer and use it in GitHub Desktop.

Select an option

Save jeffrade/913b058aa6f8f324a9b2c1cc7aeaf82e to your computer and use it in GitHub Desktop.

Revisions

  1. jeffrade created this gist Sep 11, 2019.
    17 changes: 17 additions & 0 deletions install_kafka.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #!/bin/bash

    echo "Starting..."

    cd ~/
    wget https://download.java.net/java/GA/jdk12.0.1/69cfe15208a647278a19ef0990eea691/12/GPL/openjdk-12.0.1_linux-x64_bin.tar.gz
    tar -xzvf openjdk-12.0.1_linux-x64_bin.tar.gz
    echo "PATH=$PATH:$HOME/jdk-12.0.1/bin" >> ~/.bash_profile
    echo "export PATH" >> ~/.bash_profile
    echo "export JAVA_HOME=$HOME/jdk-12.0.1" >> ~/.bash_profile
    wget http://mirror.olnevhost.net/pub/apache/kafka/2.3.0/kafka_2.12-2.3.0.tgz
    tar -xzvf kafka_2.12-2.3.0.tgz
    cd kafka_2.12-2.3.0.tgz
    echo "export KAFKA_HOME=$HOME/kafka_2.12-2.3.0" >> ~/.bash_profile
    source ~/.bash_profile

    echo "Done!"