<?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 Re: Error running Pyspark Interpreter after Installing Miniconda in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218834#M180735</link>
    <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/39242/ashikinhtc.html"&gt;@Ashikin&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Try setting the below instead of PYSPARK_DRIVER_PYTHON&lt;/P&gt;&lt;P&gt;export PYSPARK_PYTHON=&amp;lt;anaconda python path&amp;gt;&lt;/P&gt;&lt;P&gt;ex: export PYSPARK_PYTHON=/home/ambari/anaconda3/bin/python&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2017 13:15:34 GMT</pubDate>
    <dc:creator>asirna</dc:creator>
    <dc:date>2017-10-13T13:15:34Z</dc:date>
    <item>
      <title>Error running Pyspark Interpreter after Installing Miniconda</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218827#M180728</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="40800-pandas-error.png" style="width: 639px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16037i51700D837EA0B518/image-size/medium?v=v2&amp;amp;px=400" role="button" title="40800-pandas-error.png" alt="40800-pandas-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi, I am having trouble when running Pyspark Interpreter. I edited &lt;EM&gt;zeppelin.pyspark.python &lt;/EM&gt;variable with /usr/lib/miniconda2/bin/python. Besides, I also can't execute pandas.&lt;/P&gt;&lt;P&gt;Below is the error in Zeppelin UI&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="40799-zeppelin-ui.png" style="width: 818px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16038iE4004BEA379D73CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="40799-zeppelin-ui.png" alt="40799-zeppelin-ui.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:45:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218827#M180728</guid>
      <dc:creator>ashikinhtc</dc:creator>
      <dc:date>2019-08-18T02:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error running Pyspark Interpreter after Installing Miniconda</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218828#M180729</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/39242/ashikinhtc.html" nodeid="39242"&gt;@Ashikin&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Do you have pandas installed ? Try installing pandas and run&lt;/P&gt;&lt;PRE&gt;conda install pandas&lt;/PRE&gt;&lt;P&gt;Other useful libraries are matplotlib, numpy if you want to install.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:18:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218828#M180729</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-12T12:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error running Pyspark Interpreter after Installing Miniconda</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218829#M180730</link>
      <description>&lt;P&gt;Hi Aditya, I had installed pandas. I can execute pandas at PySpark CLI tho but not in Zeppelin.&lt;/P&gt;&lt;P&gt;There are errors stated when I run pyspark command:&lt;/P&gt;&lt;PRE&gt;error: [Errno 111] Connection refused
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java se              rver
Traceback (most recent call last):
  File "/usr/hdp/2.5.3.0-37/spark/python/lib/py4j-0.9-src.zip/py4j/java_gateway.              py", line 690, in start
    self.socket.connect((self.address, self.port))
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java se              rver
Traceback (most recent call last):
  File "/usr/hdp/2.5.3.0-37/spark/python/lib/py4j-0.9-src.zip/py4j/java_gateway.              py", line 690, in start
    self.socket.connect((self.address, self.port))
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/hdp/2.5.3.0-37/spark/python/pyspark/shell.py", line 43, in &amp;lt;module&amp;gt;
    sc = SparkContext(pyFiles=add_files)
  File "/usr/hdp/2.5.3.0-37/spark/python/pyspark/context.py", line 115, in __ini              t__
    conf, jsc, profiler_cls)
  File "/usr/hdp/2.5.3.0-37/spark/python/pyspark/context.py", line 172, in _do_i              nit
    self._jsc = jsc or self._initialize_context(self._conf._jconf)
  File "/usr/hdp/2.5.3.0-37/spark/python/pyspark/context.py", line 235, in _init              ialize_context
    return self._jvm.JavaSparkContext(jconf)
  File "/usr/hdp/2.5.3.0-37/spark/python/lib/py4j-0.9-src.zip/py4j/java_gateway.              py", line 1062, in __call__
  File "/usr/hdp/2.5.3.0-37/spark/python/lib/py4j-0.9-src.zip/py4j/java_gateway.              py", line 631, in send_command
  File "/usr/hdp/2.5.3.0-37/spark/python/lib/py4j-0.9-src.zip/py4j/java_gateway.              py", line 624, in send_command
  File "/usr/hdp/2.5.3.0-37/spark/python/lib/py4j-0.9-src.zip/py4j/java_gateway.              py", line 579, in _get_connection
  File "/usr/hdp/2.5.3.0-37/spark/python/lib/py4j-0.9-src.zip/py4j/java_gateway.              py", line 585, in _create_connection
  File "/usr/hdp/2.5.3.0-37/spark/python/lib/py4j-0.9-src.zip/py4j/java_gateway.              py", line 697, in start
py4j.protocol.Py4JNetworkError: An error occurred while trying to connect to the               Java server
&amp;gt;&amp;gt;&amp;gt; import pandas as pd
&amp;gt;&amp;gt;&amp;gt;


&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Oct 2017 10:40:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218829#M180730</guid>
      <dc:creator>ashikinhtc</dc:creator>
      <dc:date>2017-10-13T10:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error running Pyspark Interpreter after Installing Miniconda</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218830#M180731</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39242/ashikinhtc.html" nodeid="39242"&gt;@Ashikin&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Try setting PYSPARK_DRIVER_PYTHON environment variable so that Spark uses Anaconda/Miniconda.&lt;/P&gt;&lt;P&gt;From the logs looks like spark is using pyspark which is  bundled&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 11:37:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218830#M180731</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-13T11:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error running Pyspark Interpreter after Installing Miniconda</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218831#M180732</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39242/ashikinhtc.html" nodeid="39242"&gt;@Ashikin&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Try setting PYSPARK_DRIVER environment variable so that Spark uses Anaconda/Miniconda.&lt;/P&gt;&lt;P&gt;From the logs looks like spark is using pyspark which is bundled. Check the link for more info&lt;/P&gt;&lt;P&gt;&lt;A href="https://spark.apache.org/docs/1.6.2/programming-guide.html#linking-with-spark" target="_blank"&gt;https://spark.apache.org/docs/1.6.2/programming-guide.html#linking-with-spark&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 11:39:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218831#M180732</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-13T11:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error running Pyspark Interpreter after Installing Miniconda</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218832#M180733</link>
      <description>&lt;P&gt;Should I declare the variable like this?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;export PYSPARK_DRIVER_PYTHON=miniconda2&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Oct 2017 12:39:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218832#M180733</guid>
      <dc:creator>ashikinhtc</dc:creator>
      <dc:date>2017-10-13T12:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error running Pyspark Interpreter after Installing Miniconda</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218833#M180734</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39242/ashikinhtc.html" nodeid="39242"&gt;@Ashikin&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Try setting the below instead of PYSPARK_DRIVER_PYTHON&lt;/P&gt;&lt;P&gt;export PYSPARK_PYTHON=&amp;lt;anaconda python path&amp;gt;&lt;/P&gt;&lt;P&gt;ex: export PYSPARK_PYTHON=/home/ambari/anaconda3/bin/python&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 13:14:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218833#M180734</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-13T13:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error running Pyspark Interpreter after Installing Miniconda</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218834#M180735</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/39242/ashikinhtc.html"&gt;@Ashikin&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Try setting the below instead of PYSPARK_DRIVER_PYTHON&lt;/P&gt;&lt;P&gt;export PYSPARK_PYTHON=&amp;lt;anaconda python path&amp;gt;&lt;/P&gt;&lt;P&gt;ex: export PYSPARK_PYTHON=/home/ambari/anaconda3/bin/python&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 13:15:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218834#M180735</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-13T13:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error running Pyspark Interpreter after Installing Miniconda</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218835#M180736</link>
      <description>&lt;P&gt;Aditya, I got this error at Zeppelin UI&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39792-pyspark-connection-refused.png" style="width: 775px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16036iF0CE78B3CB46E4D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39792-pyspark-connection-refused.png" alt="39792-pyspark-connection-refused.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:45:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-running-Pyspark-Interpreter-after-Installing-Miniconda/m-p/218835#M180736</guid>
      <dc:creator>ashikinhtc</dc:creator>
      <dc:date>2019-08-18T02:45:41Z</dc:date>
    </item>
  </channel>
</rss>

