Skip to content

Instantly share code, notes, and snippets.

@choplin
Created November 16, 2012 04:16
Show Gist options
  • Select an option

  • Save choplin/4084003 to your computer and use it in GitHub Desktop.

Select an option

Save choplin/4084003 to your computer and use it in GitHub Desktop.
chef recipe for impala
yum_key "Impala-GPG-KEY" do
url "http://beta.cloudera.com/impala/redhat/6/x86_64/impala/RPM-GPG-KEY-cloudera"
action :add
end
yum_repository "Impala" do
url "http://beta.cloudera.com/impala/redhat/6/x86_64/impala/0/"
gpg "Impala-GPG-KEY"
action :add
end
package "impala" do
options "-f --force-yes"
action :upgrade
end
directory '/usr/lib/impala/conf' do
owner 'impala'
group 'impala'
mode '0755'
action :create
end
%w(core-site.xml hdfs-site.xml).each do |file|
template "/usr/lib/impala/conf/#{file}" do
mode "0644"
owner "impala"
group "impala"
source "etc/hadoop/conf/#{file}.erb"
end
end
template "/usr/lib/impala/conf/hive-site-xml" do
mode "0644"
owner "impala"
group "impala"
source "etc/hive/conf/hive-site.xml.erb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment