mathyourlife / apache_kafka

10 stars 19 forks source link

Vagrant up - File templates/default/bin/kafka-server-start.sh.erb does not exist for cookbook apache_kafka #25

Open ctippur opened 9 years ago

ctippur commented 9 years ago

I am trying to install kafka on a vagrant server via chef solo.

I seem to get a template file not found error but the file exists. Wondering what could be wrong?

I am trying to install chef.add_recipe "apache_kafka::default"

I see the below error:

==> broker01: [2015-09-14T07:09:38+00:00] DEBUG: RuntimeError: template[/usr/local/kafka/bin/kafka-server-start.sh](apache_kafka::configure line 19) had an error: RuntimeError: File templates/default/bin/kafka-server-start.sh.erb does not exist for cookbook apache_kafka

==> broker01: Error executing action create on resource 'template[/usr/local/kafka/bin/kafka-server-start.sh]' ==> broker01:
==> broker01: ================================================================================ ==> broker01:
==> broker01: ==> broker01: ==> broker01:
==> broker01: RuntimeError ==> broker01:
==> broker01: ------------ ==> broker01:
==> broker01: File templates/default/bin/kafka-server-start.sh.erb does not exist for cookbook apache_kafka ==> broker01:
==> broker01: ==> broker01: ==> broker01: Resource Declaration: ==> broker01: --------------------- ==> broker01: # In /tmp/vagrant-chef/e4231cd6254356aabd54fc71d790907d/cookbooks/apache_kafka-1.5.0/recipes/configure.rb ==> broker01:
==> broker01: 19: template ::File.join(node["apache_kafka"]["bin_dir"], bin) do ==> broker01: 20: source "bin/#{bin}.erb" ==> broker01: 21: owner "kafka" ==> broker01: 22: action :create ==> broker01: 23: mode "0755" ==> broker01: 24: variables( ==> broker01: 25: :config_dir => node["apache_kafka"]["config_dir"], ==> broker01: 26: :bin_dir => node["apache_kafka"]["bin_dir"] ==> broker01: 27: ) ==> broker01: 28: notifies :restart, "service[kafka]", :delayed ==> broker01: 29: end ==> broker01: 30: end ==> broker01:
==> broker01: Compiled Resource: ==> broker01: ------------------ ==> broker01: # Declared in /tmp/vagrant-chef/e4231cd6254356aabd54fc71d790907d/cookbooks/apache_kafka-1.5.0/recipes/configure.rb:19:in `block in from_file' ==> broker01:
==> broker01: template("/usr/local/kafka/bin/kafka-server-start.sh") do ==> broker01: action [:create] ==> broker01: retries 0 ==> broker01: retry_delay 2 ==> broker01: default_guard_interpreter :default ==> broker01: path "/usr/local/kafka/bin/kafka-server-start.sh" ==> broker01: backup 5 ==> broker01: atomic_update true ==> broker01: source "bin/kafka-server-start.sh.erb" ==> broker01: variables {:config_dir=>"/usr/local/kafka/config", :bin_dir=>"/usr/local/kafka/bin"} ==> broker01: declared_type :template ==> broker01: cookbook_name :apache_kafka ==> broker01: recipe_name "configure" ==> broker01: owner "kafka" ==> broker01: mode "0755" ==> broker01: end

mathyourlife commented 9 years ago

Can you provide more information on your environment, and how your are running the recipe?