<commit_before># Cookbook Name : bcpc-hadoop
# Recipe Name : oozie_client
# Description : To setup oozie-client

include_recipe 'bcpc-hadoop::oozie_config'
::Chef::Recipe.send(:include, Bcpc_Hadoop::Helper)
::Chef::Resource::Bash.send(:include, Bcpc_Hadoop::Helper)

package hwx_pkg_str('oozie-client', node[:bcpc][:hadoop][:distribution][:release]) do
   action :install
end

hdp_select('oozie-client', node[:bcpc][:hadoop][:distribution][:active_release])

oozie_url = "http://#{node[:bcpc][:management][:vip]}:" +
  node[:bcpc][:hadoop][:oozie_port].to_s

file '/etc/profile.d/oozie-url.sh' do
  mode 0555
  user 'root'
  group 'root'
  content <<-EOM
    # This file was created by Chef.
    # Local changes will be reverted.
    export OOZIE_URL=#{oozie_url}
  EOM
end
<commit_msg>Add the correct oozie prefix to the VIP URL<commit_after># Cookbook Name : bcpc-hadoop
# Recipe Name : oozie_client
# Description : To setup oozie-client

include_recipe 'bcpc-hadoop::oozie_config'
::Chef::Recipe.send(:include, Bcpc_Hadoop::Helper)
::Chef::Resource::Bash.send(:include, Bcpc_Hadoop::Helper)

package hwx_pkg_str('oozie-client', node[:bcpc][:hadoop][:distribution][:release]) do
   action :install
end

hdp_select('oozie-client', node[:bcpc][:hadoop][:distribution][:active_release])

oozie_url = "http://#{node[:bcpc][:management][:vip]}:" +
  node[:bcpc][:hadoop][:oozie_port].to_s + '/oozie'

file '/etc/profile.d/oozie-url.sh' do
  mode 0555
  user 'root'
  group 'root'
  content <<-EOM
    # This file was created by Chef.
    # Local changes will be reverted.
    export OOZIE_URL=#{oozie_url}
  EOM
end

{'fraction_non_alphanumeric': 0.16367017978921264, 'fraction_numerical': 0.0049597024178549285, 'mean_word_length': 5.669421487603306, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '968573', 'n_tokens_mistral': 621, 'n_tokens_neox': 605, 'n_words': 119}