Steps to Install RSTUDIO in HortonWorks Sandbox
- Login to HortonWorks sandbox with root user
- Install RStudio Server
- Create a different user (sandbox)
- Add port forward in VirtualBox
- Restart Hortonwors Hadoop Sandbox
- Login to Sandbox other than root user (Use user created in step 3)
- Open the RStudio in web browser.
- Open Google Chrome and type htt127.0.0.1:8787
Login to HortonWorks Sandbox
·
Start the Sandbox
·
Click ALT+F5
·
Login with user root and pwd hadoop
INSTALL RSTUDIO SERVER
Run
the following commands in the sandbox console
sudo yum install --nogpgcheck
rstudio-server-0.97.332-x86_64.rpm
CREATE ANOTHER USER
useradd sandbox
passwd sandbox
useradd sandbox
passwd sandbox
This is because you can not use root to log into
RStudio Server. Here I use sandbox as username, but you can choose whatever you
want.
ADDING PORT FORWARD IN VIRTUALBOX
1.
Go To Devices à
Network à
Network Settings
2.
Click on Advanced à
Port Forwarding (If Advanced is expanded you can see Port Forwarding)
3.
Click on Add button
4.
Add the RStudio port forwarding entries
6. You
need to use Google Chrome browser