From 66d2fd643bcd58a70ceed25935bc0bbf8de2a032 Mon Sep 17 00:00:00 2001 From: Emrecan BATI Date: Thu, 7 Feb 2019 17:37:33 +0300 Subject: [PATCH 1/2] Update provision.sh kafka version Kafka 1.0.0 is not available to download. --- vagrant/provision.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vagrant/provision.sh b/vagrant/provision.sh index 13a8d5623..215ba91cf 100755 --- a/vagrant/provision.sh +++ b/vagrant/provision.sh @@ -7,7 +7,7 @@ yes | apt-get install default-jre export KAFKA_INSTALL_ROOT=/opt export KAFKA_HOSTNAME=192.168.100.67 -export KAFKA_VERSION=1.0.0 +export KAFKA_VERSION=1.0.2 export REPOSITORY_ROOT=/vagrant sh /vagrant/vagrant/install_cluster.sh From a07e392c6100bc209a181220e766a0013d2db3a4 Mon Sep 17 00:00:00 2001 From: Emrecan BATI Date: Thu, 7 Feb 2019 17:39:43 +0300 Subject: [PATCH 2/2] Introduce new environment variable KAFKA_SCALA_VERSION Recommended scala version is different for different versions of kafka so new environment variable is added to supply recommended scala version. --- .travis.yml | 6 +++--- vagrant/install_cluster.sh | 2 +- vagrant/provision.sh | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index eb54a0ddc..b7f7874e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,9 +11,9 @@ env: - KAFKA_HOSTNAME=localhost - DEBUG=true matrix: - - KAFKA_VERSION=1.1.1 - - KAFKA_VERSION=2.0.1 - - KAFKA_VERSION=2.1.0 + - KAFKA_VERSION=1.1.1 KAFKA_SCALA_VERSION=2.11 + - KAFKA_VERSION=2.0.1 KAFKA_SCALA_VERSION=2.12 + - KAFKA_VERSION=2.1.0 KAFKA_SCALA_VERSION=2.12 before_install: - export REPOSITORY_ROOT=${TRAVIS_BUILD_DIR} diff --git a/vagrant/install_cluster.sh b/vagrant/install_cluster.sh index 295db830b..ed9099cf3 100755 --- a/vagrant/install_cluster.sh +++ b/vagrant/install_cluster.sh @@ -6,7 +6,7 @@ TOXIPROXY_VERSION=2.1.3 mkdir -p ${KAFKA_INSTALL_ROOT} if [ ! -f ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_VERSION}.tgz ]; then - wget --quiet https://www-us.apache.org/dist/kafka/${KAFKA_VERSION}/kafka_2.11-${KAFKA_VERSION}.tgz -O ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_VERSION}.tgz + wget --quiet https://www-us.apache.org/dist/kafka/${KAFKA_VERSION}/kafka_${KAFKA_SCALA_VERSION}-${KAFKA_VERSION}.tgz -O ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_VERSION}.tgz fi if [ ! -f ${KAFKA_INSTALL_ROOT}/toxiproxy-${TOXIPROXY_VERSION} ]; then wget --quiet https://github.com/Shopify/toxiproxy/releases/download/v${TOXIPROXY_VERSION}/toxiproxy-server-linux-amd64 -O ${KAFKA_INSTALL_ROOT}/toxiproxy-${TOXIPROXY_VERSION} diff --git a/vagrant/provision.sh b/vagrant/provision.sh index 215ba91cf..dc1b5db92 100755 --- a/vagrant/provision.sh +++ b/vagrant/provision.sh @@ -8,6 +8,7 @@ yes | apt-get install default-jre export KAFKA_INSTALL_ROOT=/opt export KAFKA_HOSTNAME=192.168.100.67 export KAFKA_VERSION=1.0.2 +export KAFKA_SCALA_VERSION=2.11 export REPOSITORY_ROOT=/vagrant sh /vagrant/vagrant/install_cluster.sh