Please try  to install R and Hadoop on Ubuntu by referring to the document " R Integration with Hadoop (UBUNTU) "  present in the Module 7 of your LMS.