Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 09-09-2016 03:44 PM
I am trying to use SparkR in Rstudio in HDP2.4 deployed on AWS EC2 cluster. I installed R, Rstudio and other R packages but after I login to R and try to start spark context, I encountered the problem below.
Sys.setenv(SPARK_HOME="/usr/hdp/current/spark-client/")
.libPaths(c(file.path(Sys.getenv("SPARK_HOME"),"R","lib"),.libPaths()))
library(SparkR)
# Create a spark context and a SQL context
sc <- SparkR::sparkR.init(master = "yarn-client")
Retrying connect to server: ip-xxx-xx-xx-xx.ec2.internal/xxx.xx.xx.xx:8050. Already tried 49 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=50, sleepTime=1000 MILLISECONDS)
16/09/09 11:41:32
Created 09-09-2016 08:48 PM
I assume that your R-Studio is on your laptop. It seems that you are trying to access an internal IP from your laptop. You need to reference a public IP or the public URI for your server.
Created 09-09-2016 08:48 PM
I assume that your R-Studio is on your laptop. It seems that you are trying to access an internal IP from your laptop. You need to reference a public IP or the public URI for your server.
Created 09-09-2016 08:53 PM
Created 09-09-2016 08:57 PM
Actually, I logged in to Rstudio using the address of the server:
ec2-yy-yyy-yyy-yy.compute-1.amazonaws.com:8787
Created 09-09-2016 11:27 PM
Created 09-12-2016 02:30 PM
I used public URI of the server to login and got the error.