Skip to content

Instantly share code, notes, and snippets.

@wongster80
Created May 15, 2014 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wongster80/dab98d35fb004d5d705f to your computer and use it in GitHub Desktop.
Save wongster80/dab98d35fb004d5d705f to your computer and use it in GitHub Desktop.
{% if grains.NODEGROUPS == 'publisher_payment_qa-group' %}
{{ HDFS_LOGS }}:
file.directory:
- user: hdfs
- group: hadoop
- mode: 755
- makedirs: True
{% for DIR in DFS_NAME_DIRS %}
{{ DIR }}/dfs/nn:
file.directory:
- user: hdfs
- group: hadoop
- mode: 775
- makedirs: True
{% endfor %}
{{ JN_DIR }}:
file.directory:
- user: hdfs
- group: hadoop
- mode: 700
- makedirs: True
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment