Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Commit

Permalink
Added support for hive metastore remote mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Webster authored and Paul Webster committed Dec 21, 2012
1 parent a456e8f commit 1110c20
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
Binary file not shown.
26 changes: 22 additions & 4 deletions chef/cookbooks/hive/recipes/default.rb
Expand Up @@ -27,7 +27,6 @@
hive_packages=%w{
hive
hive-metastore
hive-server
hive-server2
}

Expand All @@ -37,8 +36,27 @@
end
end

if node[:hive][:hive_metastore_mode] == "embedded"
package "mysql-server" do
action :install
end

cookbook_file "/usr/lib/hive/lib" do
source "mysql-connector-java-5.1.22-bin.jar"
end

service "mysqld" do
supports :start => true, :stop => true, :status => true, :restart => true
action :enable
end

service "mysqld" do
action :start
end
end

# Define the hive server process.
service "hive-server" do
service "hive-server2" do
supports :start => true, :stop => true, :status => true, :restart => true
action :enable
end
Expand All @@ -49,11 +67,11 @@
group node[:hive][:global_file_system_group]
mode "0644"
source "hive-site.xml.erb"
notifies :restart, resources(:service => "hive-server")
notifies :restart, resources(:service => "hive-server2")
end

# Start the hive server.
service "hive-server" do
service "hive-server2" do
action :start
end

Expand Down

0 comments on commit 1110c20

Please sign in to comment.