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

Commit

Permalink
Merge pull request #681 from pu239ppy/habse_libs_in_oozie
Browse files Browse the repository at this point in the history
include hbase client libraries to oozie's libext, and enable hbase delegation for oozie workflows
  • Loading branch information
ekund committed Sep 30, 2016
2 parents cf1552b + 016debc commit 3e7368c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions cookbooks/bcpc-hadoop/recipes/oozie.rb
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
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

0 comments on commit 3e7368c

Please sign in to comment.