Skip to content

Commit

Permalink
Merge pull request #55 from continuuity/feature/update-hdp-repo-layout
Browse files Browse the repository at this point in the history
Update HDP section of repo recipe to support 2.1.2.0 update
  • Loading branch information
dereklwood committed May 7, 2014
2 parents a5137be + 87bd6e6 commit 4f48b7e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions recipes/repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@
case node['hadoop']['distribution']
when 'hdp'
case node['hadoop']['distribution_version']
when '2.0.4.0', '2.0.5.0', '2.0.6.0', '2.0.6.1', '2.0.10.0', '2.0.11.0'
when '2.0.5.0', '2.0.6.0', '2.0.6.1', '2.0.10.0', '2.0.11.0'
hdp_version = '2.0.4.0'
hdp_update_version = node['hadoop']['distribution_version']
when '2.0'
hdp_version = '2.0.4.0'
hdp_update_version = '2.0.11.0'
when '2.1.1.0', '2.1', '2'
hdp_version = '2.1.1.0'
when '2.1.1.0', '2.0.4.0'
hdp_version = node['hadoop']['distribution_version']
hdp_update_version = nil
when '2.1.2.0', '2.1', '2'
hdp_version = '2.1.1.0'
hdp_update_version = '2.1.2.0'
else
Chef::Application.fatal!('This cookbook only supports HDP 2.x')
end
Expand Down

0 comments on commit 4f48b7e

Please sign in to comment.