The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

Hortonworks Sandbox Forum

Sandbox and RStudio Server

  • #15096

    I managed to install R and R Studio Server into the sandbox with the intent of eventually installing the rmr2 library that enables R to define and run MapReduce jobs.

    The URL for the server is active, and you need to enter user and password in a login screen. I can’t use root as the user, and I guessed that perhaps there is a valid user named sandbox for the sandbox but maybe I am wrong. What user (not root) exists that I can login as? Do do I as root make a new user, user directory etc. This an OS user, not a hadoop user.

    Suggestions appreciated.

  • Author
  • #15101

    I need the password for this user if one exists.


    I created a new user in the VM (rstudiouser) and gave that user a password. I could then authenticate as that user in the RStudio dialog. Success!. But the new user is not an HDFS user and the Hue interface is set to only login the sandbox user.

    So, can I login to the tutorial UI as another user? Hue as configured in other hadoop distro’s has a user administration pane. This is not available with the sandbox.

    Perhaps the easiest route to success is for someone to tell us what password the sandbox user has.

    I did all of the installations by following the spirit of the advice given here:

    I ignored the VirtualBox config steps at the beginning. This blog used a Cloudera VM as the foundation but the sandbox seems fine. I even was able to run the hello world Big Data example at the bottom of the blog.

    But to use the File Browser, I need to be logged as a recognized hadoop user, not this ad hoc user I created.

    Looking for guidance.

    Sasha J

    I do not know what is the default password for user “sandbox”, but you can change it to something your own, ind all things continue to work normally.
    Just login to sandbox as root and do “passwd sandbox”.

    Thank you!


    Thanks Sasha,

    I thought of doing that but was afraid to do so thinking I might break things. I will do this now. I will also add this user as a member of the sudoers group as well.


    Cheryle Custer

    Hi James,

    Were you successful in getting R up and running on the Sandbox?


    Yes, thanks for asking.

    I was successful and I recall posting about this to a forum thread here but I guess not this one. I just changed the password of the sandbox user since I did not know what it was (thanks to Sasha for the tip) and then I could follow the instructions I found for the Cloudera VM.

    Works well.


    Larry Liu

    Hi, James

    Thanks for letting us know.

    please let us know if you have any other questions.


    Mur Raguthu

    James I am trying to install R and R studio on my VM Player (sandbox). I got stuck at step. $ sudo bash is not working in my VM..I am not expert in VMs. Please help..

    Run console
    Switch to root user:
    $ sudo bash
    Update linux kernel:
    $ yum install kernel -y
    Run console
    Open internet browser (Firefox) and download the following file (link below):
    Click on link for file: kernel-devel-2.6.32-220.23.1.el6.x86_64.rpm
    Download and save file to folder ‘Downloads’ under ‘home/cloudera’ (Either create new folder using ‘Save’ dialog box or use console: mkdir /home/cloudera/Downloads



    I did not do any of the steps relating to updating VirtualBox. I am using VMware player and after importing the Sandbox initially, I have not done any customization of it. All of the steps up to step 8 are about the customization of the VM assuming you are using VirtualBox– you should be able to ignore them — I did!

    So you should be able to start at step 8:

    8. Installation of R
    First add the EPEL repository, then install git, wget and R.

    From there on things should work. I used putty to ssh into the Sandbox to execute these steps. You want to change the password of the user sandbox as Sasha describes earlier in this thread.


    Mur Raguthu

    Thanks James. I was able to install RStudio and working towards my POC. Great help and I appreciate for your contribution to the team.


    Hi Mur,

    It’s good to hear that you were able to get R installed.



    I documented my steps to insert R, RStudio Server and the RHadoop R package in blog post here:

    Cheryle Custer

    Nice! Thanks for sharing the blog post. Could you update it to say that it’s the Hortonworks Sandbox VM?? The first sentence says that it’s a Cloudera VM… 😉


    My exposition is based on one (linked to in my post) that used Cloudera. My mention of Cloudera refers to the original blog. I will see if the wording can be improved to make this clear.


    I made the link to the original blog, that does cover steps for Cloudera, to be explicitly shown rather than hiding it in the word “here” as I had done previously.

The forum ‘Hortonworks Sandbox’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.