Hadoop coding snippets