<?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>topic Re: How to make spark-submit work on windows? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-make-spark-submit-work-on-windows/m-p/10058#M5303</link>
    <description>&lt;P&gt;I managed to resolve. It was java and python incompatibility with the Spark version I was using.&lt;/P&gt;&lt;P&gt;I will create a video, explaining how to use Spark without Jupyter notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/713i584745A3C6BB5909/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/719i46093921494DD2CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/717i331FC282652587FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2023 01:38:17 GMT</pubDate>
    <dc:creator>weldermartins</dc:creator>
    <dc:date>2023-02-07T01:38:17Z</dc:date>
    <item>
      <title>How to make spark-submit work on windows?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-make-spark-submit-work-on-windows/m-p/10056#M5301</link>
      <description>&lt;P&gt;I have Jupyter Notebook installed on my machine working normally. I tested running a Spark application by running the spark-submit command and it returns the message that the file was not found. What do you need to do to make it work?&lt;/P&gt;&lt;P&gt;Below is a file with a simple example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;from pyspark.sql import SparkSession
from pyspark.sql.functions import *
&amp;nbsp;
if __name__ == "__main__":
  spark = SparkSession.builder.appName("Exemplo").getOrCreate()
 
 arqschema = "id INT, nome STRING,status STRING, cidade STRING,vendas INT,data STRING"
 
 despachantes = spark.read.csv("C:\test-spark\despachantes.csv",header=False, schema=arqschema)
&amp;nbsp;
  calculo = despachantes.select("date").groupBy(year("date")).count()
&amp;nbsp;
  calculo.write.format("console").save()
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
  spark.stop()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/714i9DB31F561DD98402/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 21:04:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-make-spark-submit-work-on-windows/m-p/10056#M5301</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2023-02-03T21:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to make spark-submit work on windows?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-make-spark-submit-work-on-windows/m-p/10058#M5303</link>
      <description>&lt;P&gt;I managed to resolve. It was java and python incompatibility with the Spark version I was using.&lt;/P&gt;&lt;P&gt;I will create a video, explaining how to use Spark without Jupyter notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/713i584745A3C6BB5909/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/719i46093921494DD2CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/717i331FC282652587FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 01:38:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-make-spark-submit-work-on-windows/m-p/10058#M5303</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2023-02-07T01:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to make spark-submit work on windows?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-make-spark-submit-work-on-windows/m-p/10057#M5302</link>
      <description>&lt;P&gt;Hi, yet this is not tested in my lab, but could you please check and confirm if this works: &lt;A href="https://stackoverflow.com/questions/37861469/how-to-submit-spark-application-on-cmd" alt="https://stackoverflow.com/questions/37861469/how-to-submit-spark-application-on-cmd" target="_blank"&gt;https://stackoverflow.com/questions/37861469/how-to-submit-spark-application-on-cmd&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 18:20:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-make-spark-submit-work-on-windows/m-p/10057#M5302</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-02-05T18:20:21Z</dc:date>
    </item>
  </channel>
</rss>

