Use jps to make "start hdfs <node>" idempotent.

Output of jps looks something like this:
#vagrant@precise64:~$ sudo jps
#9022 NameNode
#9436 Jps
#9121 SecondaryNameNode
#8935 DataNode
Make "create <...> dir" resources idempotent.
Create  /done_intermediate. Change /staging owner.

Create /tmp/hadoop-yarn/staging/history/done_intermediate dir.
Make "mapred" user an owner of "staging" dir.
Create  /var/log/hadoop-yarn dir.
Use "hadoop fs -test ..." for file existence check.
Start mapreduce services.
Reformat code.
Ignore IDEA IDE files.
Refactoring: use "service" resource.
Use "remote_file" resource.
Use 'chefspec' and 'fauxhai' to write specs.