Skip to content

Commit

Permalink
Fix Kafka and Storm recipes to work with new download URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-blanchard committed Apr 6, 2015
1 parent d48ffa7 commit 394b927
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion examples/kafka-jvm/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Vagrant.configure("2") do |config|

:python => {
"min_version" => "2.7.5",
"install_method" => "source"
# "install_method" => "source"
},

:zookeeper => {
Expand All @@ -52,6 +52,7 @@ Vagrant.configure("2") do |config|
:kafka => {
:version => "0.8.1.1",
:download_url => "http://mirror.its.dal.ca/apache/kafka",
:checksum => "123c72a6d7562db836c71362ae9c6bc21e9549cf20c97cccf9acef0a83118f74",
:advertised_host_name => "streamparse-box",
},

Expand Down
4 changes: 2 additions & 2 deletions examples/kafka-jvm/chef/cookbooks/kafka/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
end

# pull the remote file only if we create the directory
tarball = "kafka-#{node[:kafka][:version]}.tar.gz"
download_file = "#{node[:kafka][:download_url]}/#{tarball}"
tarball = "kafka-#{node[:kafka][:version]}-src.tgz"
download_file = "#{node[:kafka][:download_url]}/#{node[:kafka][:version]}/#{tarball}"

remote_file "#{Chef::Config[:file_cache_path]}/#{tarball}" do
source download_file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

default[:storm][:ui][:childopts] = "-Xmx512m -Djava.net.preferIPv4Stack=true"

default[:storm][:version] = "0.9.2-incubating"
default[:storm][:version] = "0.9.4"

2 changes: 1 addition & 1 deletion examples/kafka-jvm/chef/cookbooks/storm/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
cwd "/home/#{node[:storm][:deploy][:user]}"
code <<-EOH
mkdir storm-data || true
wget http://apache.mirror.iweb.ca/incubator/storm/apache-storm-#{node[:storm][:version]}/apache-storm-#{node[:storm][:version]}.zip
wget http://apache.mirror.iweb.ca/storm/apache-storm-#{node[:storm][:version]}/apache-storm-#{node[:storm][:version]}.zip
unzip apache-storm-#{node[:storm][:version]}.zip
cd apache-storm-#{node[:storm][:version]}
EOH
Expand Down

0 comments on commit 394b927

Please sign in to comment.