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

include hbase client libraries to oozie's libext, and enable hbase delegation for oozie workflows #681

Merged
merged 1 commit into from
Sep 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions cookbooks/bcpc-hadoop/recipes/oozie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,33 @@
end
end

if not (node.run_list.expand(node.chef_environment).recipes
.include?('bcpc-hadoop::hbase_master')) then
package 'hbase' do
action :upgrade
end
end

if not (node.run_list.expand(node.chef_environment).recipes
.include?('bcpc-hadoop::hbase_master')) then
package 'hbase' do
action :upgrade
end
end

HBASE_CLIENT_LIB = "/usr/hdp/#{hdp_rel}/hbase/lib"
(["hbase-common.jar", "hbase-client.jar", "hbase-server.jar",
"hbase-protocol.jar", "hbase-hadoop2-compat.jar"].map do |flname|
"#{HBASE_CLIENT_LIB}/#{flname}"
end +
Dir["/usr/hdp/#{hdp_rel}/hbase/lib/htrace-core-*"] +
Dir["/usr/hdp/#{hdp_rel}/hbase/lib/netty-*"]).each do |link_candidate|
link "link_hbase_jar_#{link_candidate}" do
to link_candidate
target_file "#{OOZIE_CLIENT_PATH}/libext/#{File.basename(link_candidate)}"
end
end

bash 'copy ssl configuration' do
code <<-EOH
cp -r /usr/hdp/#{hdp_rel}/oozie/tomcat-deployment/conf/ssl /etc/oozie/conf/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@
<name>oozie.credentials.credentialclasses</name>
<value>
hcat=org.apache.oozie.action.hadoop.HCatCredentials,
hbase=org.apache.oozie.action.hadoop.HbaseCredentials,
hive2=org.apache.oozie.action.hadoop.Hive2Credentials
</value>
</property>
Expand Down