code samples in cloudhadoop.com