Created
July 28, 2016 09:49
-
-
Save anonymous/1c5c3d5cb9e9f5968f66ef9992ebc5f7 to your computer and use it in GitHub Desktop.
This file contains 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
[root@localhost orchestrate]# vi start_hdfs.sls | |
[root@localhost orchestrate]# vi start_hdfs.sls | |
▽ | |
start_namenode: | |
cmd.state.sls: | |
- tgt: 'I@profiles:hadoop-name-node and I@environment_id:{{ data['data']['environment_id'] }}' | |
- expr_form: compound | |
- arg: | |
- hadoop.orchestrate.start_namenode | |
start_secondary_namenode: | |
cmd.state.sls: | |
- tgt: 'I@profiles:hadoop-secondary-name-node and I@environment_id:{{ data['data']['environment_id'] }}' | |
- expr_form: compound | |
- arg: | |
- hadoop.orchestrate.start_secondary_namenode | |
- require: | |
- cmd: start_namenode | |
start_datanode: | |
cmd.state.sls: | |
- tgt: 'I@profiles:hadoop-data-node and I@environment_id:{{ data['data']['environment_id'] }}' | |
- expr_form: compound | |
- arg: | |
- hadoop.orchestrate.start_datanode | |
- require: | |
- cmd: start_namenode | |
- cmd: start_secondary_namenode | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment