templates for r hadoop streaming