<?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 Is there any way to find out if the spark session was started using local mode or yarn mode ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-any-way-to-find-out-if-the-spark-session-was/m-p/195582#M80938</link>
    <description>&lt;P&gt;Facing issue where users are starting spark session in local mode and not the yarn mode. So need to identify users and update them on the process how they can start using yarn mode to avoid load on local node.&lt;/P&gt;&lt;P&gt;Is there any document available on best practice for spark, which can help to educate users on the best ways to work on spark and how to launch spark session ?&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jul 2018 04:28:59 GMT</pubDate>
    <dc:creator>gparmar14</dc:creator>
    <dc:date>2018-07-20T04:28:59Z</dc:date>
    <item>
      <title>Is there any way to find out if the spark session was started using local mode or yarn mode ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-any-way-to-find-out-if-the-spark-session-was/m-p/195582#M80938</link>
      <description>&lt;P&gt;Facing issue where users are starting spark session in local mode and not the yarn mode. So need to identify users and update them on the process how they can start using yarn mode to avoid load on local node.&lt;/P&gt;&lt;P&gt;Is there any document available on best practice for spark, which can help to educate users on the best ways to work on spark and how to launch spark session ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 04:28:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-any-way-to-find-out-if-the-spark-session-was/m-p/195582#M80938</guid>
      <dc:creator>gparmar14</dc:creator>
      <dc:date>2018-07-20T04:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to find out if the spark session was started using local mode or yarn mode ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-any-way-to-find-out-if-the-spark-session-was/m-p/195583#M80939</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47583/gparmar14.html" nodeid="47583" target="_blank"&gt;@Gaurav Parmar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check in spark history server ui to see which applications are run in local mode:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="80610-screen-shot-2018-07-19-at-65957-pm.png" style="width: 916px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17995i82B9C422746D6839/image-size/medium?v=v2&amp;amp;px=400" role="button" title="80610-screen-shot-2018-07-19-at-65957-pm.png" alt="80610-screen-shot-2018-07-19-at-65957-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In above image you can see local-* are applications launched in local mode and application_* are applications launched in yarn master.&lt;/P&gt;&lt;P&gt;If you like to switch the default local to yarn, perhaps you can add export MASTER=yarn on the spark-env so that users that forget to add --master yarn will by default run in yarn master. &lt;/P&gt;&lt;P&gt;Please let me know if this helps you.&lt;/P&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>Sun, 18 Aug 2019 06:36:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-any-way-to-find-out-if-the-spark-session-was/m-p/195583#M80939</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2019-08-18T06:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to find out if the spark session was started using local mode or yarn mode ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-any-way-to-find-out-if-the-spark-session-was/m-p/195584#M80940</link>
      <description>&lt;P&gt;Thanks for sharing the detailed information and will try to update the spark-env to use default mode as yarn.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 22:03:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-any-way-to-find-out-if-the-spark-session-was/m-p/195584#M80940</guid>
      <dc:creator>gparmar14</dc:creator>
      <dc:date>2018-07-20T22:03:24Z</dc:date>
    </item>
  </channel>
</rss>

