Back to Browse

Using Spark Streaming to process real-time data streamed with Flume | Big Data Hadoop Tutorial

2.0K views
Dec 10, 2022
13:45

This lecture is all about Apache Spark Streaming hands-on exercise where we have processed web logs ingested using Apache Flume using spark streaming code written in Python. For Flume configuration, we have used spooldir as a source and Avro as a sink and then processed the data using PySpark Streaming code. Below are the required commands for this lecture: wget https://raw.githubusercontent.com/ashaypatil11/hadoop/main/spark_flume.conf wget https://raw.githubusercontent.com/ashaypatil11/hadoop/main/spark_flume.py wget https://raw.githubusercontent.com/ashaypatil11/hadoop/main/access_log.txt mkdir checkpoint export SPARK_MAJOR_VERSION=24 spark-submit --packages org.apache.spark:spark-streaming-flume_2.11:2.3.0 SparkFlume.py cd /usr/hdp/current/flume-server/ bin/flume-ng agent --conf conf --conf-file /home/maria_dev/sparkstreamingflume.conf --name a1 cp access_log.txt spool/log1.txt In the previous lecture we have Apache Spark Streaming where we have seen how to process real-time data streams using Apache Spark using its Spark Streaming API which allows multiple sources such as Kafka, file system, Cassandra, MySQL, HBase and processes the data in real time efficiently and reliably and uses sink as many options like HDFS, Kafka, Cassandra, MySQL, HBase etc. ---------------------------------------------------------------------------------------------------------------------- HDP Sandbox Installation links: Oracle VM Virtualbox: https://download.virtualbox.org/virtualbox/6.1.32/VirtualBox-6.1.32-149290-Win.exe HDP Sandbox link: https://archive.cloudera.com/hwx-sandbox/hdp/hdp-2.6.5/HDP_2.6.5_virtualbox_180626.ova HDP Sandbox installation guide: https://hortonworks.com/tutorial/sandbox-deployment-and-install-guide/section/1/ ------------------------------------------------------------------------------------------------------------- Also check out similar informative videos in the field of cloud computing: What is Big Data: https://youtu.be/-BoykjY5nKg How Cloud Computing changed the world: https://youtu.be/lf2lQAyW2b4 What is Cloud? https://youtu.be/DeCMeA9Xm2g Top 10 facts about Cloud Computing that will blow your mind! https://youtu.be/hmxNJEQ4XVY Audience This tutorial is made for professionals who are willing to learn the basics of Big Data Analytics using Hadoop Ecosystem and become a Hadoop Developer. Software Professionals, Analytics Professionals, and ETL developers are the key beneficiaries of this course. Prerequisites Before you start proceeding with this course, I am assuming that you have some basic knowledge to Core Java, 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- https://youtube.com/playlist?list=PL6UwySlcwEYISVLQlYi3W6rGCIo9sJM0J PYTHON Full Course Playlist- https://youtube.com/playlist?list=PL6UwySlcwEYJgM4eUQOvR1KAWryFYcclq Data Warehouse Playlist- https://youtube.com/playlist?list=PL6UwySlcwEYKxi-fQHLkVYDZrJcBawZA9 Unix Shell Scripting Full Course Playlist- https://youtube.com/playlist?list=PL6UwySlcwEYIZGsbXnUxsojD0yeUA67lb -----------------------------------------------------------------------------------------------------------------------Don't forget to like and follow us on our social media accounts: Facebook- https://www.facebook.com/ampcode Instagram- https://www.instagram.com/ampcode_tutorials/ Twitter- https://twitter.com/ampcodetutorial Tumblr- ampcode.tumblr.com ------------------------------------------------------------------------------------------------------------------------- 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. #bigdata #datascience #dataanalytics #datascientist #hadoop #hdfs #hdp #mongodb #cassandra #hbase #nosqldatabase #nosql #pyspark #spark #presto #hadooptutorial #hadooptraining

Download

1 formats

Video Formats

360pmp419.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Using Spark Streaming to process real-time data streamed with Flume | Big Data Hadoop Tutorial | NatokHD