continuuity/hadoop_cookbook — pull request #35 by wolf31o2 (2014-04-21 19:26:21+00:00)
Title: Feature/create hdfs tmp

Add creation of HDFS /tmp to hadoop_yarn_resourcemanager to be called from a wrapper cookbook.

Example:
```ruby
dfs = node['hadoop']['core_site']['fs.defaultFS']

ruby_block "initaction-create-yarn-hdfs-tmpdir" do
block do
resources('execute[yarn-hdfs-tmpdir').run_action(:run)
end
not_if "hdfs dfs -test -d #{dfs}/tmp", :user => 'hdfs'
end
```