<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question sparkR - Error in socketConnection(port = monitorPort) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144536#M107118</link>
    <description>&lt;P&gt;I have centos 7.1.&lt;/P&gt;&lt;P&gt;On my multinode Hadoop cluster (2.3.4) I have , through Ambari, installed spark 1.5.2.
I am trying to connect to sparkR from CLI and after I run sparkR I get the following error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error in value[[3L]](cond) : Failed to connect JVM
In addition: Warning message:
In socketConnection(host = hostname, port = port, server = FALSE,  :

localhost:9001 cannot be opened&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The port (9001) is opened on the namenode (where Im running sparkR)

Do you have any ideas what Im doing wrong?

Ive seen this link:
&lt;A href="http://hortonworks.com/hadoop-tutorial/apache-spark-1-5-1-technical-preview-with-hdp-2-3/" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/apache-spark-1-5-1-technical-preview-with-hdp-2-3/&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;and I followed also this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.jason-french.com/blog/2013/03/11/installing-r-in-linux/" target="_blank"&gt;http://www.jason-french.com/blog/2013/03/11/installing-r-in-linux/&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;To install R on all datanodes.

I appreicate your contribution.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2016 00:04:00 GMT</pubDate>
    <dc:creator>marko_kole</dc:creator>
    <dc:date>2016-02-17T00:04:00Z</dc:date>
    <item>
      <title>sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144536#M107118</link>
      <description>&lt;P&gt;I have centos 7.1.&lt;/P&gt;&lt;P&gt;On my multinode Hadoop cluster (2.3.4) I have , through Ambari, installed spark 1.5.2.
I am trying to connect to sparkR from CLI and after I run sparkR I get the following error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error in value[[3L]](cond) : Failed to connect JVM
In addition: Warning message:
In socketConnection(host = hostname, port = port, server = FALSE,  :

localhost:9001 cannot be opened&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The port (9001) is opened on the namenode (where Im running sparkR)

Do you have any ideas what Im doing wrong?

Ive seen this link:
&lt;A href="http://hortonworks.com/hadoop-tutorial/apache-spark-1-5-1-technical-preview-with-hdp-2-3/" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/apache-spark-1-5-1-technical-preview-with-hdp-2-3/&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;and I followed also this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.jason-french.com/blog/2013/03/11/installing-r-in-linux/" target="_blank"&gt;http://www.jason-french.com/blog/2013/03/11/installing-r-in-linux/&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;To install R on all datanodes.

I appreicate your contribution.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 00:04:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144536#M107118</guid>
      <dc:creator>marko_kole</dc:creator>
      <dc:date>2016-02-17T00:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144537#M107119</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/931/marko-kole.html" nodeid="931"&gt;@marko&lt;/A&gt;&lt;P&gt; please use the steps here &lt;A href="http://hortonworks.com/hadoop-tutorial/apache-spark-1-6-technical-preview-with-hdp-2-3/" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/apache-spark-1-6-technical-preview-with-hdp-2-3/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 00:05:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144537#M107119</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-17T00:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144538#M107120</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/931/marko-kole.html" nodeid="931"&gt;@marko&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;I recommend this &lt;A href="http://hortonworks.com/hadoop/spark/#section_6" target="_blank"&gt;http://hortonworks.com/hadoop/spark/#section_6&lt;/A&gt;  but your link is good too based on your spark version.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 00:05:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144538#M107120</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-17T00:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144539#M107121</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/931/marko-kole.html" nodeid="931"&gt;@marko&lt;/A&gt;  Now, let's troubleshoot 9001 issue.&lt;/P&gt;&lt;P&gt;netstat -anp | grep 9001  --&amp;gt; whats the output?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 00:09:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144539#M107121</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-17T00:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144540#M107122</link>
      <description>&lt;P&gt;Im looking at the code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/amplab-extras/SparkR-pkg/blob/master/pkg/src/src/main/scala/edu/berkeley/cs/amplab/sparkr/SparkRRunner.scala"&gt;https://github.com/amplab-extras/SparkR-pkg/blob/master/pkg/src/src/main/scala/edu/berkeley/cs/amplab/sparkr/SparkRRunner.scala&lt;/A&gt;&lt;/P&gt;&lt;P&gt;env variable EXISTING_SPARKR_BACKEND_PORT can be defined through bashrc, &lt;/P&gt;&lt;P&gt;the try-catch that returns my error is the following:&lt;/P&gt;&lt;PRE&gt;tryCatch({    
	connectBackend("localhost", backendPort)  
	error = function(err) {    
		stop("Failed to connect JVM\n")
&lt;/PRE&gt;&lt;P&gt;Isnt it interesting that localhost is written in it this way? Or is there an explanation for it?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 00:13:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144540#M107122</guid>
      <dc:creator>marko_kole</dc:creator>
      <dc:date>2016-02-17T00:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144541#M107123</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; &lt;/P&gt;&lt;P&gt;running sudo netstat -anp | grep 9001&lt;/P&gt;&lt;P&gt;returns:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;unix  2      [ ACC ]     STREAM     LISTENING     9001     1202/master          private/proxywrite&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 00:16:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144541#M107123</guid>
      <dc:creator>marko_kole</dc:creator>
      <dc:date>2016-02-17T00:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144542#M107124</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/931/marko-kole.html" nodeid="931"&gt;@marko&lt;/A&gt;  ps -ef | grep &lt;EM&gt;1202&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you don't need it then kill it ...&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 00:17:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144542#M107124</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-17T00:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144543#M107125</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/931/marko-kole.html" nodeid="931"&gt;@marko&lt;/A&gt; check whether firewall is blocking the port on each node.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 00:17:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144543#M107125</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-17T00:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144544#M107126</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Ive seen this one as well, dont see a big difference between this one and 1.5.2&lt;/P&gt;&lt;P&gt;I have SPARK_HOME and JAVA_HOME defined.&lt;/P&gt;&lt;P&gt;My hive-site.xml is also on its place.&lt;/P&gt;&lt;P&gt;If I scroll down to the SparkR part:
R is installed on all the nodes.&lt;/P&gt;&lt;P&gt;by the way, when I run sparkR, I dont get the nice Spark graphic (logo) seems as if Im starting just R.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 00:20:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144544#M107126</guid>
      <dc:creator>marko_kole</dc:creator>
      <dc:date>2016-02-17T00:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144545#M107127</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I killed process, also restarted spark from ambari.&lt;/P&gt;&lt;P&gt;If I run &lt;EM&gt;sudo netstat -anp | grep 9001 &lt;/EM&gt;I dont see anything.&lt;/P&gt;&lt;P&gt;I also have this one in my bashrc on the node where Im running sparkR:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;export EXISTING_SPARKR_BACKEND_PORT=9001&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Funny thing, if i run sparkR with my centos user I get the error mentioned in the original post.&lt;/P&gt;&lt;P&gt;If i run sudo -u spark sparkR then I get:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error in socketConnection(port = monitorPort) :
  cannot open the connection
In addition: Warning message:
In socketConnection(port = monitorPort) : localhost:53654 cannot be opened&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 00:32:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144545#M107127</guid>
      <dc:creator>marko_kole</dc:creator>
      <dc:date>2016-02-17T00:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144546#M107128</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/931/marko-kole.html" nodeid="931"&gt;@marko&lt;/A&gt; Interesting...see this &lt;/P&gt;&lt;P&gt;&lt;A href="http://pastebin.com/VefGqMea" target="_blank"&gt;http://pastebin.com/VefGqMea&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 00:40:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144546#M107128</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-17T00:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144547#M107129</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; &lt;/P&gt;&lt;P&gt;hmmm..&lt;/P&gt;&lt;P&gt;So this is the part where the show ends for me:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Launching java with spark-submit command /usr/hdp/2.3.4.0-3485/spark/bin/spark-submit   "sparkr-shell" /tmp/Rtmp69Q264/backend_portae4c24444ac20&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So now I checked if spark-submit works by running the following example:&lt;/P&gt;&lt;P&gt;cd $SPARK_HOME&lt;/P&gt;&lt;P&gt;sudo -u spark ./bin/spark-submit --class org.apache.spark.examples.SparkPi--master yarn-client --num-executors 3--driver-memory 512m--executor-memory 512m--executor-cores 1 lib/spark-examples*.jar 10&lt;/P&gt;&lt;P&gt;And the result is&lt;/P&gt;&lt;P&gt;Lots of these:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INFO Client: Application report for application_1455610402042_0021 (state: ACCEPTED)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SparkException: Yarn application has already ended! It might have been killed or unable to launch application master.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In the file, the whole error can be found&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/2168-spark-submit-error.txt"&gt;spark-submit-error.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Am I missing something in Spark setup?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 01:03:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144547#M107129</guid>
      <dc:creator>marko_kole</dc:creator>
      <dc:date>2016-02-17T01:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144548#M107130</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/931/marko-kole.html" nodeid="931"&gt;@marko&lt;/A&gt; See this &lt;A href="http://pastebin.com/uDEcpmga"&gt;http://pastebin.com/uDEcpmga&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 01:15:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144548#M107130</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-17T01:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144549#M107131</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I ran the same spark-submit command with ONE difference:&lt;/P&gt;&lt;P&gt;--master was yarn-cluster&lt;/P&gt;&lt;P&gt;I came to the status FINISHED:&lt;/P&gt;&lt;P&gt;INFO Client: Application report for application_1455610402042_0022 (state: FINISHED)&lt;/P&gt;&lt;P&gt;and it ended up with this:&lt;/P&gt;&lt;P&gt;Exception in thread "main" org.apache.spark.SparkException: Application application_1455610402042_0022 finished with failed status
        at org.apache.spark.deploy.yarn.Client.run(Client.scala:974)
        at org.apache.spark.deploy.yarn.Client$.main(Client.scala:1020)
        at org.apache.spark.deploy.yarn.Client.main(Client.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;16/02/16 18:15:58 INFO ShutdownHookManager: Shutdown hook called
16/02/16 18:15:58 INFO ShutdownHookManager: Deleting directory /tmp/spark-3ba9f87c-18c2-4d0d-b360-49fa10408631&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 01:19:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144549#M107131</guid>
      <dc:creator>marko_kole</dc:creator>
      <dc:date>2016-02-17T01:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144550#M107132</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/931/marko-kole.html" nodeid="931"&gt;@marko&lt;/A&gt;  yarn log -applicationid application_1455610402042_0021&lt;/P&gt;&lt;P&gt;Output of the above command?  I hope its not failing because of memory&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 01:57:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144550#M107132</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-17T01:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144551#M107133</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ive ran the command you recommended and Im getting an error saying &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error: Could not find or load main class log&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have setup another cluster - namenode + 3 datanodes using ambari. Ive followed this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/hadoop-tutorial/apache-spark-1-6-technical-preview-with-hdp-2-3/"&gt;http://hortonworks.com/hadoop-tutorial/apache-spark-1-6-technical-preview-with-hdp-2-3/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I installed R on all the nodes.&lt;/P&gt;&lt;P&gt;All examples worked until I came to the sparkR:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Launching java with spark-submit command /usr/hdp/2.3.4.0-3485/spark/bin/spark-submit   "sparkr-shell" /tmp/Rtmphs2DlM/backend_port3b7b4c9a912b
16/02/17 09:37:36 WARN SparkConf: The configuration key 'spark.yarn.applicationMaster.waitTries' has been deprecated as of Spark 1.3 and and may be removed in the future. Please use the new key 'spark.yarn.am.waitTime' instead. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error in socketConnection(port = monitorPort) : &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  cannot open the connection&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;
In addition: Warning message: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In socketConnection(port = monitorPort) : localhost:40949 cannot be opened &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Ive opened all the ports (1-65535) and port 0 for the namenode and the datanodes.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/17301/sparkr-error-in-socketconnectionport-monitorport.html#"&gt;@Artem Ervits&lt;/A&gt; - do you have any idea what I am missing?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 16:45:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144551#M107133</guid>
      <dc:creator>marko_kole</dc:creator>
      <dc:date>2016-02-17T16:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144552#M107134</link>
      <description>&lt;P&gt;Now I installed Spark 1.6.0 just to test if Ambari makes some changes during spark installation:
Same result:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error in socketConnection(port = monitorPort) :
  cannot open the connection
In addition: Warning message:
In socketConnection(port = monitorPort) : localhost:51604 cannot be opened&lt;/EM&gt;
&lt;/P&gt;&lt;P&gt;Could it be YARN?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 17:27:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144552#M107134</guid>
      <dc:creator>marko_kole</dc:creator>
      <dc:date>2016-02-17T17:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144553#M107135</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/931/marko-kole.html" nodeid="931"&gt;@marko&lt;/A&gt; please check whether firewall is blocking.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 19:15:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144553#M107135</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-17T19:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144554#M107136</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I ran:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sudo systemctl status firewalld &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And the result is this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;firewalld.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 19:24:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144554#M107136</guid>
      <dc:creator>marko_kole</dc:creator>
      <dc:date>2016-02-17T19:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: sparkR - Error in socketConnection(port = monitorPort)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144555#M107137</link>
      <description>&lt;P&gt;Is this centos7? If not try below, also make sure to do that on all nodes&lt;/P&gt;&lt;PRE&gt;sudo service iptables stop
&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2016 19:27:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/sparkR-Error-in-socketConnection-port-monitorPort/m-p/144555#M107137</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-17T19:27:40Z</dc:date>
    </item>
  </channel>
</rss>

