With reference to the below link, I was following step to install RStudio in Cloudera Quickstart Vmware.
Step 2: Install R
sudo yum install R -y
Step 3: Install RStudio Server
Use the following commands to install the latest stable release of RStudio Server. At the time this article was written, it is 1.0.136.
sudo yum install --nogpgcheck rstudio-server-rhel-1.0.136-x86_64.rpm -y
above step ran successfully.
But below steps are not running.
After the installation, the RStudio Server service should have gotten
started. You can check its status and set it to run on boot as below:
sudo systemctl status rstudio-server.service
sudo systemctl enable rstudio-server.service
Error: [root@quickstart cloudera]# sudo system ctl status rstudio-server.service
sudo: system: command not found
Step 4: Access RStudio Server from a web browser
In order to allow web access, you need to modify firewall settings as below:
sudo firewall-cmd --permanent --zone=public --add-port=8787/tcp
sudo firewall-cmd --reload
Now, point your web browser to http://203.0.113.1:8787,
and then sign in with the credentials of the current sudo user. If
nothing goes wrong, you will be brought into the RStudio Server IDE in
which you can write and test your R code.
Step 5 (optional): Add more packages from CRAN
If you want to install more packages from CRAN (Comprehensive R Archive Network), you can make it happen as follows:
Install development tools:
sudo yum groupinstall "Development Tools" -y
Enter the R shell:
sudo -i R
Install the package you need as below, and more packages can be installed in the same fashion:
quit the R shell: