Using SparkR with RStudio
Let's learn how to use RStudio with SparkR in this section. RStudio is an integrated development environment (IDE) interface for R that provides developer productivity. It is open source and available on multiple platforms including Linux, macOS, and Windows with optional commercial support. It has a familiar R shell, a syntax-highlighting editor that supports direct code execution, tools for plotting, history, debugging, and workspace management. It has a desktop and server version for running from a desktop or centrally from a server. Let's use RStudio Server, which provides a web browser to do analytics, using the following steps:
Let's install RStudio Server using the following commands:
wget https://download2.rstudio.org/rstudio-server-rhel-0.99.903-x86_64.rpm sudo yum -y install --nogpgcheck rstudio-server-rhel-0.99.903-x86_64.rpm
Open the Firefox browser in the VM and open the page using
http://localhost:8787/auth-sign-in
. Usecloudera
/cloudera
credentials...