<?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 Import error on pyspark and Zeppelin for local module in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Import-error-on-pyspark-and-Zeppelin-for-local-module/m-p/211082#M78730</link>
    <description>&lt;P&gt;I am moving to pyspark &amp;amp; zeppelin . I created a two notebook my_settings.py and main.py . &lt;/P&gt;&lt;P&gt;But when I do following in main.py &lt;/P&gt;&lt;PRE&gt;%pyspark 
import my_settings 

ImportError: No module named my_settings&lt;/PRE&gt;&lt;P&gt;I get import error saying , no modules found. &lt;/P&gt;&lt;P&gt;This works fine on my local server. &lt;/P&gt;&lt;P&gt;I wonder if there's any env setting for this to work. &lt;/P&gt;</description>
    <pubDate>Fri, 25 May 2018 18:00:50 GMT</pubDate>
    <dc:creator>bharatbs13</dc:creator>
    <dc:date>2018-05-25T18:00:50Z</dc:date>
    <item>
      <title>Import error on pyspark and Zeppelin for local module</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Import-error-on-pyspark-and-Zeppelin-for-local-module/m-p/211082#M78730</link>
      <description>&lt;P&gt;I am moving to pyspark &amp;amp; zeppelin . I created a two notebook my_settings.py and main.py . &lt;/P&gt;&lt;P&gt;But when I do following in main.py &lt;/P&gt;&lt;PRE&gt;%pyspark 
import my_settings 

ImportError: No module named my_settings&lt;/PRE&gt;&lt;P&gt;I get import error saying , no modules found. &lt;/P&gt;&lt;P&gt;This works fine on my local server. &lt;/P&gt;&lt;P&gt;I wonder if there's any env setting for this to work. &lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 18:00:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Import-error-on-pyspark-and-Zeppelin-for-local-module/m-p/211082#M78730</guid>
      <dc:creator>bharatbs13</dc:creator>
      <dc:date>2018-05-25T18:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Import error on pyspark and Zeppelin for local module</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Import-error-on-pyspark-and-Zeppelin-for-local-module/m-p/211083#M78731</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/83153/bharatbs13.html" nodeid="83153"&gt;@bharat sharma&lt;/A&gt; Notebooks are not python modules. If you are trying to import a notebook as if it was a python module AFAIK that won't work. &lt;/P&gt;&lt;P&gt;If you are trying to import modules to pyspark application you have different ways to do this. One way is to copy the python file to hdfs and use the following:&lt;/P&gt;&lt;PRE&gt;%pyspark
sc.addPyFile("/user/zeppelin/my_settings.py")
import my_settings &lt;/PRE&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 22:21:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Import-error-on-pyspark-and-Zeppelin-for-local-module/m-p/211083#M78731</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-05-25T22:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Import error on pyspark and Zeppelin for local module</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Import-error-on-pyspark-and-Zeppelin-for-local-module/m-p/211084#M78732</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/83153/bharatbs13.html" nodeid="83153"&gt;@bharat sharma&lt;/A&gt; If the above answer helped addressed your question, please take a moment to login and click the "accept" link on the answer.&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 21:18:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Import-error-on-pyspark-and-Zeppelin-for-local-module/m-p/211084#M78732</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-05-28T21:18:01Z</dc:date>
    </item>
  </channel>
</rss>

