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

Commit

Permalink
Merge pull request #7 from galthaus/pull-req-release-fred-master-86ab…
Browse files Browse the repository at this point in the history
…effe03

 [1/3]
  • Loading branch information
galthaus committed Jun 29, 2012
2 parents fb3a82d + 86abeff commit 709bce3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chef/cookbooks/hive/attributes/hive-site.rb
Expand Up @@ -80,4 +80,4 @@
default[:hive][:javax_jdo_option_ConnectionDriverName] = "org.apache.derby.jdbc.EmbeddedDriver"

# JDBC connect string for a JDBC metastore.
default[:hive][:javax_jdo_option_ConnectionURL] = "jdbc:derby:;databaseName=metastore_db;create=true"
default[:hive][:javax_jdo_option_ConnectionURL] = "/var/metastore/metadb"
10 changes: 10 additions & 0 deletions chef/cookbooks/hive/recipes/default.rb
Expand Up @@ -29,12 +29,22 @@
action :install
end

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

# Setup the hive config file.
template "/etc/hive/conf/hive-site.xml" do
owner node[:hive][:process_file_system_owner]
group node[:hive][:global_file_system_group]
mode "0644"
source "hive-site.xml.erb"
notifies :restart, resources(:service => "hiveserver")
end

service "hiveserver" do
action :start
end

#######################################################################
Expand Down
2 changes: 1 addition & 1 deletion chef/data_bags/crowbar/bc-template-hive.json
Expand Up @@ -20,7 +20,7 @@
"hive_metastore_uris": "file:///var/metastore/metadb/",
"hive_metastore_warehouse_dir": "/user/hive/warehouse",
"javax_jdo_option_ConnectionDriverName": "org.apache.derby.jdbc.EmbeddedDriver",
"javax_jdo_option_ConnectionURL": "jdbc:derby:;databaseName=metastore_db;create=true"
"javax_jdo_option_ConnectionURL": "/var/metastore/metadb"
}
},
"deployment": {
Expand Down

0 comments on commit 709bce3

Please sign in to comment.