Browse Source

Merge pull request #167 from Shopify/vagrant-tweaks

Vagrant tweaks
Evan Huus 11 years ago
parent
commit
a1bfb70deb
3 changed files with 2 additions and 3 deletions
  1. 1 1
      Vagrantfile
  2. 0 1
      vagrant/install_cluster.sh
  3. 1 1
      vagrant/server.properties

+ 1 - 1
Vagrantfile

@@ -12,6 +12,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
   config.vm.network "private_network", ip: "192.168.100.67"
 
   config.vm.provider "vmware_fusion" do |v|
-    v.vmx["memsize"] = "2048"
+    v.vmx["memsize"] = "3072"
   end
 end

+ 0 - 1
vagrant/install_cluster.sh

@@ -20,7 +20,6 @@ for i in 1 2 3 4 5; do
     # broker configuration
     cp ${REPOSITORY_ROOT}/vagrant/server.properties ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT}/config/
     sed -i s/KAFKAID/${KAFKA_PORT}/g ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT}/config/server.properties
-    sed -i s/ZK_PORT/${ZK_PORT}/g ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT}/config/server.properties
     sed -i s/KAFKA_HOSTNAME/${KAFKA_HOSTNAME}/g ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT}/config/server.properties
 
     KAFKA_DATADIR="${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT}/data"

+ 1 - 1
vagrant/server.properties

@@ -115,7 +115,7 @@ log.cleaner.enable=false
 # server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
 # You can also append an optional chroot string to the urls to specify the
 # root directory for all kafka znodes.
-zookeeper.connect=localhost:ZK_PORT
+zookeeper.connect=localhost:2181,localhost:2182,localhost:2183,localhost:2184,localhost:2185
 
 # Timeout in ms for connecting to zookeeper
 zookeeper.connection.timeout.ms=1000000