Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

SparkR, RStudio, HDP 2.5

avatar
Expert Contributor

Hello,

I try to run:

  1. wget https://download2.rstudio.org/rstudio-server-rhel-0.99.893-x86_64.rpm
  2. sudo yum install --nogpgcheck rstudio-server-rhel-0.99.893-x86_64.rpm
  3. sudo rstudio-server verify-installation
  4. sudo rstudio-server stop
  5. sudo rstudio-server start

However, with (2), I get this error:

Running Transaction Installing : rstudio-server-0.99.893-1.x86_64 1/1 groupadd: group 'rstudio-server' already exists rsession: no process killed initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused Verifying : rstudio-server-0.99.893-1.x86_64 1/1

Installed: rstudio-server.x86_64 0:0.99.893-1

Complete!

----

Then when I try (3), I get this error: [root@sandbox ~]# sudo rstudio-server verify-installation Unable to find an installation of R on the system (which R didn't return valid output); Unable to locate R binary by scanning standard locations initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused [root@sandbox ~]#

---

Looking forward to your suggestions.

Thanks,

Marcia

1 ACCEPTED SOLUTION

avatar
Expert Contributor

It's working now...

I used the following advice:

"I found this page because I had the exact same issue! Solved it by looking in /etc/init/rstudio-server.conf Within a centos docker you can start rstudio via:

exec /usr/lib/rstudio-server/bin/rserver

That will also close your docker shell, so you might want to put it in a supervisord script, or run as daemon, or .... Maybe look at some rstudio-server dockerfiles for the different approaches usually used."

<<<https://support.rstudio.com/hc/en-us/community/posts/202767523-Fail-to-install-rstudio-in-a-centos-d...>>>

View solution in original post

24 REPLIES 24

avatar
Super Guru

avatar
Expert Contributor

Thanks, but this does not solve my problem.

avatar
Expert Contributor

Hello,

I did the following, and the installation of RStudio is loading:

  1. wget https://download2.rstudio.org/rstudio-server-rhel-0.99.893-x86_64.rpm
  2. sudo yum install --nogpgcheck rstudio-server-rhel-0.99.893-x86_64.rpm
  3. ln -s /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.6
  4. ln -s /usr/lib64/libcrypto.so.10 /usr/lib64/libcrypto.so.6
  5. yum install dpkg
  6. dpkg-divert --local --rename --add /sbin/initctl
  7. ln -s /bin/true /sbin/initctl
  8. yum install R
  9. rstudio-server verify-installation
  10. rstudio-server start

Now, how do I login to rstudio-server?

I tried: http://127.0.0.1:8787 ... but it does not work...

I look forward to your suggestions.

Thanks,

Marcia

avatar
Super Collaborator

Hi @Marcy, you are not able to access 8787 because it is not forwarded to this docker sandbox container. You have two options:

1. Edit the /etc/rstudio/rserver.conf to use a port which is opened for both VM and docker. 8090 and 8091 are two such ports which you can use. Go to that file and add an entry:

www-port = 8090

After this, restart the RStudio server by typing service rstudio-server restart

2. You can also open the default port 8787, just follow this tutorial about how to open the ports for Hortonworks Docker Sandbox.

avatar
Expert Contributor

Hello,

I tried to do (1). I added the line, www-port = 8090, then I tried to use both http://127.0.0.1:8787 and http://127.0.0.1:8090 . None works...

avatar
Expert Contributor

I tried to follow this article, but no luck:

https://www.r-bloggers.com/install-rstudio-server-on-centos6-5/

avatar
Expert Contributor

I also tried (2)... no luck...

avatar
Super Collaborator

make sure your rstudio-server is even running or not. Try rstudio-server status or ps -ef | grep rstudio-server.

If they do not show anything that means your RStudio is not running. Configuring ports step come after this.

avatar
Expert Contributor

Also, my HDP 2.5 version is the VirtualBox version, not the docker version.

avatar
Super Collaborator

Hi @Marcy , the VirtualBox and VmWare ones actually run a Docker container inside it to make it easier to setup and configure. So when you do ssh to 2222, it gets you to the docker container, which is inside the VM. You can also use third one which is the native docker version. That means all Sandbox versions are now docker containers.