Skip to content

Instantly share code, notes, and snippets.

@suhail-sullad
Last active February 6, 2020 09:47
Show Gist options
  • Save suhail-sullad/8ec2e1183a70f0e03835d348ac69c550 to your computer and use it in GitHub Desktop.
Save suhail-sullad/8ec2e1183a70f0e03835d348ac69c550 to your computer and use it in GitHub Desktop.
#!/bin/sh
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
sudo service sshd restart
pgrep java | sudo xargs kill -9
sudo yum update -y
sudo yum install -y net-tools java-1.8.0-openjdk.x86_64 maven.noarch
rm -rf kafka_2.13-2.4.0
curl -L -O -C - http://mirrors.estointernet.in/apache/kafka/2.4.0/kafka_2.13-2.4.0.tgz
tar -zxvf kafka_2.13-2.4.0.tgz
cd kafka_2.13-2.4.0
bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
sleep 10s
bin/kafka-server-start.sh -daemon config/server.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment