Created
May 9, 2014 21:45
-
-
Save kornypoet/16852e2cdf5ee144cc2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cluster(:hdp) do | |
| cluster_role.override_attributes({ | |
| hadoop: { | |
| distribution: { | |
| provider: 'hortonworks', | |
| version: '2.0', | |
| }, | |
| }, | |
| }) | |
| with_systemwide | |
| with_devtools | |
| facet :nn do | |
| instances 1 | |
| cloud(:ec2).flavor 'm1.large' | |
| recipe 'hadoop::namenode' | |
| recipe 'hadoop::secondarynn' | |
| recipe 'hadoop::config_files' | |
| facet_role.override_attributes({ | |
| hadoop: { | |
| namenode: { run_state: :stop }, | |
| secondarynn: { run_state: :stop }, | |
| } | |
| }) | |
| end | |
| facet :rm do | |
| instances 1 | |
| cloud(:ec2).flavor 'm1.large' | |
| recipe 'hadoop::resourcemanager' | |
| recipe 'hadoop::historyserver' | |
| recipe 'hadoop::config_files' | |
| facet_role.override_attributes({ | |
| hadoop: { | |
| resourcemanager: { run_state: :stop }, | |
| historyserver: { run_state: :stop }, | |
| } | |
| }) | |
| end | |
| facet :dnnm do | |
| instances 3 | |
| cloud(:ec2).flavor 'm1.large' | |
| recipe 'hadoop::datanode' | |
| recipe 'hadoop::nodemanager' | |
| recipe 'hadoop::config_files' | |
| facet_role.override_attributes({ | |
| hadoop: { | |
| datanode: { run_state: :stop }, | |
| nodemanager: { run_state: :stop }, | |
| } | |
| }) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment