<?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: Spark-submit suddenly doesn't recognize modules on the cluster in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Spark-submit-suddenly-doesn-t-recognize-modules-on-the/m-p/354216#M236877</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100570"&gt;@imule&lt;/a&gt;,&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 08:58:44 GMT</pubDate>
    <dc:creator>VidyaSargur</dc:creator>
    <dc:date>2022-10-07T08:58:44Z</dc:date>
    <item>
      <title>Spark-submit suddenly doesn't recognize modules on the cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-submit-suddenly-doesn-t-recognize-modules-on-the/m-p/353734#M236776</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're experiencing a peculiar issue these past few days - our python scripts started failing when run with spark-submit. On first glance our logs show that the scripts are encountering syntax errors whenever we are using code related to modules, but further troubleshooting showed that in actuality the modules are the issue. When we comment out pieces of code that throw syntax errors, we instead receive import errors ("No module named...").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have two versions of python on our cluster but it appears that spark-submit still is using the proper python version with all our modules installed on it. Our scripts run just fine through pyspark, for some reason however, spark-submit does not recognize the imported modules when we run scripts through it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is more, YARN doesn't seem to recognize these jobs as failed, they are not logged at all, probably because they crash as soon as we start importing modules. So basically we do not have access to YARN logs for these jobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insight would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 09:04:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-submit-suddenly-doesn-t-recognize-modules-on-the/m-p/353734#M236776</guid>
      <dc:creator>imule</dc:creator>
      <dc:date>2022-09-30T09:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Spark-submit suddenly doesn't recognize modules on the cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-submit-suddenly-doesn-t-recognize-modules-on-the/m-p/353736#M236778</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100570"&gt;@imule&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the following parameter to your spark-submit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;--conf spark.yarn.appMasterEnv.PYSPARK_PYTHON=&amp;lt;python3_path&amp;gt;
--conf spark.yarn.appMasterEnv.PYSPARK_DRIVER_PYTHON=&amp;lt;python3_path&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Ensure python3_path exists in all nodes.&lt;/P&gt;&lt;P&gt;2. Ensure required modules are installed in each node.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 09:09:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-submit-suddenly-doesn-t-recognize-modules-on-the/m-p/353736#M236778</guid>
      <dc:creator>RangaReddy</dc:creator>
      <dc:date>2022-09-30T09:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Spark-submit suddenly doesn't recognize modules on the cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-submit-suddenly-doesn-t-recognize-modules-on-the/m-p/353808#M236805</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100570"&gt;@imule&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly I would like to ask if there were any changes in the cluster i.e Patching or rpm ?&lt;BR /&gt;if the spark-submit was running successfully before you need to know this could be linked to the python version&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;On the edge/gateway node&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;# python -V&lt;/P&gt;&lt;P&gt;# Python 3.7.7&lt;/P&gt;&lt;P&gt;# conda deactivate&lt;/P&gt;&lt;P&gt;# Python 2.7.5&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then try relaunching your spark-submit&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 17:29:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-submit-suddenly-doesn-t-recognize-modules-on-the/m-p/353808#M236805</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2022-10-02T17:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Spark-submit suddenly doesn't recognize modules on the cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-submit-suddenly-doesn-t-recognize-modules-on-the/m-p/354216#M236877</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100570"&gt;@imule&lt;/a&gt;,&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 08:58:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-submit-suddenly-doesn-t-recognize-modules-on-the/m-p/354216#M236877</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2022-10-07T08:58:44Z</dc:date>
    </item>
  </channel>
</rss>

