<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shalini Gound on Medium]]></title>
        <description><![CDATA[Stories by Shalini Gound on Medium]]></description>
        <link>https://medium.com/@shaldemoacc?source=rss-d14d13077c7a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NxY4NQUe6ia93olY</url>
            <title>Stories by Shalini Gound on Medium</title>
            <link>https://medium.com/@shaldemoacc?source=rss-d14d13077c7a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 15:57:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shaldemoacc/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Journey toward PySpark]]></title>
            <link>https://medium.com/@shaldemoacc/a-journey-toward-pyspark-3bb32affea95?source=rss-d14d13077c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bb32affea95</guid>
            <dc:creator><![CDATA[Shalini Gound]]></dc:creator>
            <pubDate>Sun, 25 Sep 2022 14:39:33 GMT</pubDate>
            <atom:updated>2022-09-25T14:39:33.546Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Day 1- </strong>lets get started</blockquote><p><strong>Overview :-</strong></p><p>PySpark is an interface for Apache Spark in Python. It not only allows you to write Spark applications using Python APIs but also provides the PySpark shell for interactively analyzing your data in a distributed environment. PySpark supports most of Spark’s features such as Spark SQL, DataFrame, Streaming, MLlib (Machine Learning), and Spark Core.</p><p><strong>Installing PySpark locally in Window:</strong></p><ol><li>Download Java — <a href="https://www.oracle.com/java/technologies/downloads/#jdk19-windows">https://www.oracle.com/java/technologies/downloads/#jdk19-windows</a></li></ol><p>2. Install Java — keep the default setting and click on next and install</p><p>3. Verify — open cmd → type below command</p><p><strong>java -version</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*dyZtU1EVP3UCaylk" /></figure><p>4. Set environment variable</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/0*oNIhvh_rwrDl1mJv" /></figure><p>5. Download and extract PySpark-</p><p><a href="https://spark.apache.org/downloads.html">https://spark.apache.org/downloads.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/0*F5V9lKkTcZk8r7FN" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/0*iTPeH49_gkdpG-vX" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*ZaXjW3NORFJWl9OF" /></figure><p>Download winutils</p><p><a href="https://github.com/kontext-tech/winutils/blob/master/hadoop-3.3.0/bin/winutils.exe">https://github.com/kontext-tech/winutils/blob/master/hadoop-3.3.0/bin/winutils.exe</a></p><p>Keep that downloaded file in below path, create hadoop folder in spark</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*2VJT3E4gQ4TUxPBV" /></figure><p>Add below in path variable</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/0*E6sR2iX3m01FwO21" /></figure><p>To verify- open cmd and run below command</p><p><strong>pyspark</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hocVSZ02x6nYGZe7" /></figure><p>Open VScode and start your pyspark code</p><ol><li>To import spark session use below command</li></ol><p><strong>from pyspark.sql import SparkSession</strong></p><p>2. Creating SparkSession<strong>- </strong>Spark session internally creates a sparkContext variable of SparkContext. You can create multiple SparkSession objects but only one SparkContext per JVM</p><p><strong>spark=Sparksession.builder.master(“local[1]”).appName(‘spark’).getOrCreate()</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZaRsHEwcYjfO9UHr" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*R5tqSxn7CZqP107U" /></figure><p>Reference- <a href="https://sparkbyexamples.com/pyspark-tutorial/">https://sparkbyexamples.com/pyspark-tutorial/</a></p><p><em>Thanks for reading!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bb32affea95" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>