Support Questions
Find answers, ask questions, and share your expertise

How can I run r in browser?

Explorer

I am trying to run R in a browser using <IP address>:8787. I have it installed on ambari, but it still does not open. It just gives me an error saying: this site can't be reached. How can I run r in browser?

26 REPLIES 26

Re: How can I run r in browser?

Super Collaborator

Hi Martin,

Please check the 8787 port is listening with R process.

please run netstat -ntlp command in server

Re: How can I run r in browser?

Explorer

Hi Subhash,

I'm glad that you want to help me! I am not sure, what it means that 8787 port is listening with R. How can I check this? I also ran the command.

Re: How can I run r in browser?

Explorer

Is this what you mean by checking?6671-hdp-r.png

Re: How can I run r in browser?

Super Collaborator

yes Martin, can you run the same command with root user. it will list the PID No/Name in last column

Re: How can I run r in browser?

Super Collaborator

stop firewall or add rule in firewall to accept the connections from outside in server if the firewall is running your server.

Re: How can I run r in browser?

Explorer

So it seems to be listening. Unfortunately I still cannot run R in browser.

Re: How can I run r in browser?

Explorer

I tried to stop my firewall. This did not solve the problem.

Re: How can I run r in browser?

@Martin Mouridsen

As per your above comment the port 8787 is running. Looks like the issue is with the iptables.

service iptables status -> if it is running

Stop iptables by using : service iptables stop

And now check if you are able to access the R UI from browser.

Re: How can I run r in browser?

Explorer

This is what I get now. I still can't access R from browser.6673-hdp-r2.png