misc changes

This commit is contained in:
Shane Peters
2019-01-15 13:59:01 -05:00
parent 41a9162c9c
commit 8b580286ba
7 changed files with 44 additions and 14 deletions

View File

@@ -8,7 +8,7 @@ log() {
echo -e "\t\e[96m[*]${1}\e[93m"
}
export KAFKA_URL='http://apache.claz.org/kafka/0.11.0.0/kafka_2.11-0.11.0.0.tgz'
export KAFKA_URL='http://apache.claz.org/kafka/2.1.0/kafka_2.12-2.1.0.tgz'
export IP=$(ip route | awk '/src/{print $9}')
echo "kafka" >/etc/hostname
echo "${IP}\tkafka" >> /etc/hosts
@@ -22,7 +22,7 @@ apt-get install -y htop wget default-jre zookeeperd prometheus-node-exporter
useradd -r -d /opt/kafka -s /bin/true kafka
mkdir /var/lib/kafka && chown kafka /var/lib/kafka
wget -O /opt/kafka.tgz ${KAFKA_URL}
wget -O /opt/kafka.tgz ${KAFKA_URL} || (echo "COULDN'T DOWNLOAD KAFKA" && exit 1)
tar -xzf /opt/kafka.tgz -C /opt
rm /opt/kafka.tgz
mv /opt/kafka_* /opt/kafka