Last active
February 5, 2016 06:00
-
-
Save ducas/c7c63742f3ecf6cef950 to your computer and use it in GitHub Desktop.
Vagrant machine for Confluent 2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "private_network", ip: "192.168.33.50" | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "2048" | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo add-apt-repository "deb http://packages.confluent.io/deb/2.0 stable main" | |
sudo apt-get update && sudo apt-get install -y --force-yes openjdk-7-jdk confluent-platform-2.11.7 | |
sed "/^advertised.host.name=.*/d" /etc/kafka/server.properties | |
echo "advertised.host.name=192.168.33.50" >> /etc/kafka/server.properties | |
SHELL | |
config.vm.provision "shell", run: "always", inline: <<-SHELL | |
zookeeper-server-start -daemon /etc/kafka/zookeeper.properties | |
kafka-server-start -daemon /etc/kafka/server.properties | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment