Search This Blog

January 20, 2015

Hadoop: Install Rstudio Server on Horton Works Hadoop Sandbox



Steps to Install RSTUDIO in HortonWorks Sandbox

  1.  Login to HortonWorks sandbox with root user
  2.  Install RStudio Server
  3.   Create a different user (sandbox)
  4.  Add port forward in VirtualBox
  5.  Restart Hortonwors Hadoop Sandbox
  6. Login to Sandbox other than root user (Use user created in step 3)
  7.  Open the RStudio in web browser.
  8.  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

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
5.       You can browse the RSTUDIO from the browser using http://127.0.0.1:8787
6.  You need to use Google Chrome browser


No comments: