Building our first Spark Streaming Application! | PySpark Tutorial

preview_player
Показать описание
In this lecture, we're going to build our first Spark Streaming Application which will listen to the socket connection for any incoming data and count the words and provide us the aggregated output.

Links/codes required for this lecture:

PySpark Streaming code:
-------------------------------------------------------------------------------------------------------------

Anaconda Distributions Installation link:

----------------------------------------------------------------------------------------------------------------------

Apache Spark Installation links:

Environment Variables:

HADOOP_HOME- C:\hadoop
JAVA_HOME- C:\java\jdk
SPARK_HOME- C:\spark\spark-3.3.1-bin-hadoop2
PYTHONPATH- %SPARK_HOME%\python;%SPARK_HOME%\python\lib\py4j-0.10.9-src;%PYTHONPATH%

Required Paths:

%SPARK_HOME%\bin
%HADOOP_HOME%\bin
%JAVA_HOME%\bin

Also check out our full Apache Hadoop course:

----------------------------------------------------------------------------------------------------------------------
Apache Spark Installation links:

Also check out similar informative videos in the field of cloud computing:

Audience

This tutorial has been prepared for professionals/students aspiring to learn deep knowledge of Big Data Analytics using Apache Spark and become a Spark Developer and Data Engineer roles. In addition, it would be useful for Analytics Professionals and ETL developers as well.

Prerequisites

Before proceeding with this full course, it is good to have prior exposure to Python programming, database concepts, and any of the Linux operating system flavors.

-----------------------------------------------------------------------------------------------------------------------

Check out our full course topic wise playlist on some of the most popular technologies:

SQL Full Course Playlist-

PYTHON Full Course Playlist-

Data Warehouse Playlist-

Unix Shell Scripting Full Course Playlist-

-----------------------------------------------------------------------------------------------------------------------Don't forget to like and follow us on our social media accounts:

Facebook-

Instagram-

Twitter-

Tumblr-

-----------------------------------------------------------------------------------------------------------------------

Channel Description-

AmpCode provides you e-learning platform with a mission of making education accessible to every student. AmpCode will provide you tutorials, full courses of some of the best technologies in the world today. By subscribing to this channel, you will never miss out on high quality videos on trending topics in the areas of Big Data & Hadoop, DevOps, Machine Learning, Artificial Intelligence, Angular, Data Science, Apache Spark, Python, Selenium, Tableau, AWS , Digital Marketing and many more.

#pyspark #bigdata #datascience #dataanalytics #datascientist #spark #dataengineering #apachespark
Рекомендации по теме
Комментарии
Автор

I followed this run the whole script, but same with vscode, it's not showing anything...it's like my execution just stuck after one warning msg: 23/12/29 15:44:07 WARN ResolveWriteToStream: spark.sql.adaptive.enabled is not supported in streaming DataFrames/Datasets and will be disabled... May I know why?

vivianhuang
Автор

Sir I have project base on spark i.e. real time wether forcast using spark streaming.

So how can I start this project.

pratibhakoli
Автор

# Start streaming defining the necessary configurations
streamingQuery = (counts
.writeStream
.format("console")
.outputMode("complete")
.trigger(processingTime="1 second")
.option("checkpointLocation", checkpointDir)
.start())
step is not executing as there is an issue with starting the streaming query .there is checkpoint directory in C drive and The specific error code "exitCode=-1073741515" indicates a problem with the Hadoop file system permissions.Could you please make any suggestion?

hamnakhalidbutt