refactor to support new ubuntu AMI with CDH4.1.2 already setup and yarn support