Master Reading Spark Query Plans

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 135

  • @afaqueahmad7117
    @afaqueahmad7117  Год назад +11

    🔔🔔 Please remember to subscribe to the channel folks. It really motivates me to make more such videos :)

    • @shafi143786
      @shafi143786 Месяц назад

      Your content is really awesome with out any further thought, and its very advance level pyspark understanding

  • @RaviSingh-dp6xc
    @RaviSingh-dp6xc 3 дня назад

    Bro, This is really nice, I just love the way you teach and very very good content. Bahut bahut Sukriya and ton of love

  • @roksig3823
    @roksig3823 10 месяцев назад +4

    Thanks a bunch. To my knowledge, no one has explained Spark explain function this detailed level. Very in-depth information.

  • @vikasverma2580
    @vikasverma2580 Год назад +1

    Bhai mera bhai 😍 Abto hazaro students aayenge bhai ke pass par Apne sabse pehle student ko mat bhulna bawa😜
    Very proud of you bhai... And i can guarantee every1 here that he is the best teacher that there is❤️

  • @ridewithsuraj-zz9cc
    @ridewithsuraj-zz9cc 2 месяца назад

    This is the most detailed explanation I have ever seen.

  • @snehitvaddi
    @snehitvaddi 2 месяца назад +1

    Buddy! You got a new sub here.
    Loved your detailed explanation. I see no one explaining the query plain this detail and I believe this is the right way of learning. But I would love to see an entire Spark series.

    • @afaqueahmad7117
      @afaqueahmad7117  Месяц назад +2

      Thank you @snehitvaddi for the kind appreciation. A full-fledged, in-depth course on Spark coming soon :)

    • @snehitvaddi
      @snehitvaddi Месяц назад

      @@afaqueahmad7117 Most awaited. Keep up the 🚀

  • @anirbansom6682
    @anirbansom6682 11 месяцев назад

    My today's well spent 40 mins. Thanks for the knowledge sharing.

  • @joseduarte5663
    @joseduarte5663 Месяц назад

    Awesome video as always. Would really appreciate more videos explaining how DAG's can be read

  • @iamexplorer6052
    @iamexplorer6052 10 месяцев назад

    no one teaches detailed way complex things like you no matter what please spread you're knowledge to world i am sure there must be people learn from you , remember you as master life long who settled in it job like me

  • @thecodingmind9319
    @thecodingmind9319 9 месяцев назад

    Bro, I am beginner but i was able to understand everything. Really great content and ur explanations was also amazing. Please continue doing such great videos. Thanks a lot for sharing .

    • @afaqueahmad7117
      @afaqueahmad7117  9 месяцев назад

      @thecodingmind9319 Thanks for the kind words, means a lot :)

  • @neelbanerjee7875
    @neelbanerjee7875 4 месяца назад +1

    Absolute gem ❤❤ would like to have video on handling real time scenarios (handle slow running job, oom etc)..

  • @adityasingh8553
    @adityasingh8553 Год назад +1

    This takes me back to me YaarPadhade times. Great work Bhai much love!

  • @dawidgrzeskow987
    @dawidgrzeskow987 6 месяцев назад

    After looking for some time for best material which truly explains this topic, and try to dig deep enough you clearly delivered, thanks Afaque.

  • @psicktrick7667
    @psicktrick7667 10 месяцев назад +1

    rare content! please don't stop making these

  • @saptorshidana7903
    @saptorshidana7903 Год назад +2

    Amazing content.. I am a newbie into Spark but I am hooked.. Sir plz post the continued series.. awaiting for your video posts.. Amazing teacher

  • @yashwantdhole7645
    @yashwantdhole7645 3 месяца назад

    You are a gem bro. The content that you bring here is terrific. ❤❤❤

    • @afaqueahmad7117
      @afaqueahmad7117  2 месяца назад

      Thanks man, @yashwantdhole7645. This means a lot!

  • @khanthesalah
    @khanthesalah Год назад +4

    Proud of you brother, looking forward to more of such videos. Great job!

  • @tahiliani22
    @tahiliani22 9 месяцев назад

    This is really informative, such details are not even present in the O'Reilly Learning Spark Book. Please continue to make such content. Needless to say but I have already subscribed.

  • @MuhammadAhmad-do1sk
    @MuhammadAhmad-do1sk 5 месяцев назад

    Excellend content, please make more videos like this with deep understanding of "how stuff works"... Highly Appreciate it. Love from 🇵🇰

    • @afaqueahmad7117
      @afaqueahmad7117  5 месяцев назад

      Thank you @MuhammadAhmad-do1sk for the appreciation, love from India :)

  • @ManishKumar-qw3ft
    @ManishKumar-qw3ft 7 месяцев назад +1

    Bhai bhot bhadia content banaate ho. Love your vdos. Please keep it up. You have great teaching skills.

  • @Sampaio1303
    @Sampaio1303 День назад

    Thanks! From Brazil

  • @Dhawal-ld2mc
    @Dhawal-ld2mc Месяц назад

    Great explanation of such a complex topic, thanks and keep up the good work.

  • @myl1566
    @myl1566 4 месяца назад

    one of the best videos i came across on spark query plan explanation. Thank you! :)

  • @GuruBala
    @GuruBala 10 месяцев назад

    It's great to see such useful contents in spark... an its helpful to understand clearer with your notes! you rock.... Thankless thanks !!

  • @SidharthanPV
    @SidharthanPV Год назад

    This is one of the best video about Spark I have seen recently!

  • @abhishekmohanty9971
    @abhishekmohanty9971 Год назад

    Beautifully explained. Many concepts got cleared. thanks a lot.Keep going.

  • @vijaykumar-b6i7t
    @vijaykumar-b6i7t Месяц назад

    a lot of knowledge in just one video

  • @satyajitmohanty5039
    @satyajitmohanty5039 2 месяца назад

    Explanation is so good

  • @YoSoyWerlix
    @YoSoyWerlix 7 месяцев назад

    Afaque, THANK YOU SO MUCH FOR THESE VIDEOS!!
    They are so amazing for a fast paced learning experience.
    Hope you soon upload much more!!

  • @maheshbongani
    @maheshbongani Год назад

    It's a great video with a great explanation. Awesome. Thank you for such a detailed explanation. Please keep doing such content.

  • @VenuuMaadhav
    @VenuuMaadhav 3 месяца назад

    By watching your first 15mins of youtube video and I am awed beyond my words.
    What a great explanation @afaqueahmad. Kudos to you!
    Please make more videos of solving real time scenarios using PySpark & Cluster configuration. Again BIG THANKS!

    • @afaqueahmad7117
      @afaqueahmad7117  3 месяца назад

      Hey @VenuuMaadhav, thank you for the kind words, means a lot. More coming soon :)

  • @ujvadeeppatil8135
    @ujvadeeppatil8135 Год назад

    By far best content i have seen on explain query thing!!! Keep it brother. Good luck!

  • @shubhamwaingade4144
    @shubhamwaingade4144 8 месяцев назад

    One of the best videos I have seen on Spark, waiting for your Spark Architecture Video

  • @mohitupadhayay1439
    @mohitupadhayay1439 3 месяца назад

    Just 10 minutes into this notebook and I am awed beyond my words.
    What a great explanation Afaque. Kudos to you!
    Please make more videos of solving real time scenarios using Spark UI and one on Cluster configuration too. Again BIG THANKS!

    • @afaqueahmad7117
      @afaqueahmad7117  3 месяца назад

      Hi @mohitupadhayay1439, really appreciate the kind words, it means a lot. A lot coming soon :)

  • @venkatyelava8043
    @venkatyelava8043 2 месяца назад

    One of the cleanest explanation I ever come across on the internals of Spark. Really appreciate all the effort you are putting into making these videos.
    If you don't mind, May I know which text editor are you are using when pasting the Physical plan?

    • @afaqueahmad7117
      @afaqueahmad7117  Месяц назад

      Many thanks for the kind words @venkatyelava8043, means a lot. On the text editor - I'm using Notion :)

  • @sandeepchoudhary3355
    @sandeepchoudhary3355 7 месяцев назад

    Great content with practical knowledge. Hats off to you !!!

  • @srinivasjagalla7864
    @srinivasjagalla7864 27 дней назад

    Nice explanation

  • @OmairaParveen-uy7qt
    @OmairaParveen-uy7qt Год назад +1

    Explained the concept really well!

  • @СергейРоманов-у9и
    @СергейРоманов-у9и 10 месяцев назад

    Thanks for such an in-depth overview!! helps a lot to grow!!

  • @CoolGuy
    @CoolGuy 11 месяцев назад

    I am sure that down the line, in a few years, you will cross 100k subscribers. Great content BTW.

    • @afaqueahmad7117
      @afaqueahmad7117  11 месяцев назад +1

      Hey @CoolGuy , thanks man! Means a lot to me :)

  • @remedyiq8034
    @remedyiq8034 8 месяцев назад

    "God bless you! Great video! Learned a lot"

  • @garydiaz8886
    @garydiaz8886 11 месяцев назад

    This is pure gold, congrats bro , keep the good work

    • @afaqueahmad7117
      @afaqueahmad7117  11 месяцев назад

      Thank you @garydiaz8886, really appreciate it! :)

  • @piyushjain5852
    @piyushjain5852 11 месяцев назад

    Very useful, video man, thanks for explaining things in so much details, keep doing the good work.

  • @varunparuchuri9544
    @varunparuchuri9544 4 месяца назад +1

    please do more vedios bro. love this one

    • @afaqueahmad7117
      @afaqueahmad7117  4 месяца назад

      Thank you @varunparuchuri9544, really appreciate it :)

  • @saravananvel2365
    @saravananvel2365 Год назад

    Very useful and explaining complex things in easy manner . Thanks and expect more videos from you

  • @sudeepbehera5921
    @sudeepbehera5921 7 месяцев назад

    Thank you so much for making this video. this is really very helpful.

  • @PavanKalyan-vw2cp
    @PavanKalyan-vw2cp 6 месяцев назад

    Bro, you dropped this👑

  • @sarfarazmemon2429
    @sarfarazmemon2429 6 месяцев назад

    Underrated pro max!

  • @jjayeshpawar
    @jjayeshpawar 3 месяца назад

    Great Video!

  • @sanjayplays5010
    @sanjayplays5010 9 месяцев назад

    This is really good, thanks so much for this explanation!

  • @user-meowmeow1
    @user-meowmeow1 5 месяцев назад

    this is gold. Thank you very much!

    • @afaqueahmad7117
      @afaqueahmad7117  5 месяцев назад

      @user-meowmeow1 Glad you found it helpful :)

  • @crazypri8
    @crazypri8 5 месяцев назад

    Amazing content! Thank you for sharing!

    • @afaqueahmad7117
      @afaqueahmad7117  5 месяцев назад

      Thank you @crazypri8, appreciate it :)

  • @jnana1985
    @jnana1985 Год назад

    Great explanation!!Keep uploading such quality content bro

  • @shaheelsahoo8535
    @shaheelsahoo8535 4 месяца назад

    Great Content. Nice and Detailed!!

    • @afaqueahmad7117
      @afaqueahmad7117  4 месяца назад

      Thank you @shaheelsahoo8535, appreciate it :)

  • @suman3316
    @suman3316 Год назад

    Very Good explanation...Keep Going

  • @crystalllake3158
    @crystalllake3158 Год назад

    Thank you for taking the time to create such an in depth video for Spark Plans. This is very helpful !
    Would you also be able to explain Spark Memory Tuning ?
    How do we decide how much resources to allocate (driver mem, executors mem , num executors , etc for a spark submit ?
    Also Data Structures Tuning, Garbage Collection Tuning !
    Thanks again !

    • @afaqueahmad7117
      @afaqueahmad7117  Год назад +1

      Thanks for the kind words @crystalllake3158 and the suggestion; currently the focus of the series is to cover all possible code level optimization. Resource level optimisations will come in much later, but no plans for the upcoming few months :)

    • @crystalllake3158
      @crystalllake3158 Год назад

      Thanks ! Please do keep uploading, love your videos !

  • @AmitBhadra
    @AmitBhadra Год назад

    Great content brother. Please post more 😁

  • @Wonderscope1
    @Wonderscope1 9 месяцев назад

    Great video thanks for sharing. I definitely subscribe

  • @prasadrajupericharla5545
    @prasadrajupericharla5545 4 месяца назад

    Excellent job 🙌

    • @afaqueahmad7117
      @afaqueahmad7117  4 месяца назад

      Thanks @prasadrajupericharla5545, appreciate it :)

  • @dishant_22
    @dishant_22 11 месяцев назад

    Great explanation.

  • @RahulGhosh-yl7hl
    @RahulGhosh-yl7hl 8 месяцев назад

    This was awesome!

  • @chidellasrinivas
    @chidellasrinivas 10 месяцев назад

    I loved your explanation and understood it very well. Could you help me to understand at 23 mins, if we have join key as cid and group by region. how the hash partitioning works. will that consider both?

  • @udaymmmmmmmmmm
    @udaymmmmmmmmmm 9 месяцев назад

    Can you please prepare a video showing storage anatomy of data during job execution cycle? I am sure there are many aspiring spark students who may be confused about the idea of RDD or dataframe and how it access data through apis (since spark is in memory computation) during job execution. It will help many upcoming spark developers.

    • @afaqueahmad7117
      @afaqueahmad7117  6 месяцев назад

      Hey @udaymmmmmmmmmm, I added this video recently on Spark Memory Management. It talks about storage and responsibilities or each of memory components during job execution. You may want to have a look at it :)
      Link here: ruclips.net/video/sXL1qgrPysg/видео.html

  • @nikhilc8611
    @nikhilc8611 10 месяцев назад

    You are awesome man❤

  • @venkateshkannan7398
    @venkateshkannan7398 4 месяца назад

    Great explanation man! Thank you! What's the editor that you use in the video to read query plans?

    • @afaqueahmad7117
      @afaqueahmad7117  4 месяца назад

      Thanks @venkateshkannan7398, appreciate it. Using Notion :)

  • @sahilmahale7657
    @sahilmahale7657 5 месяцев назад

    Bro please make more videos !!!

  • @kvin007
    @kvin007 10 месяцев назад

    Great explanation! I love the simplicity of it! I wonder what is the app you use for having your Mac as a screenshot that you can edit with your iPad?

    • @afaqueahmad7117
      @afaqueahmad7117  10 месяцев назад +1

      Thanks @kvin007! So, basically I join a zoom meeting with my own self and annotate, haha!

  • @mohitupadhayay1439
    @mohitupadhayay1439 Месяц назад

    Hi Afaque.
    A suggestion.
    You could start from the beginning to connect the DOTS!
    Like if in your scenario we have X Node machine with Y workers and Z exectors and if you do REPARTITION and fit the data like this then this could happen.
    Otherwise the Machine would sit idle and so on.

  • @niladridey9666
    @niladridey9666 Год назад

    quality content

  • @Shrawani18
    @Shrawani18 Год назад

    You were too good!

  • @tahiliani22
    @tahiliani22 6 месяцев назад

    At the very end of the video 38:36, we see that the cast("int") filter is present in the parsed logical plan and Analyzed logical plan. I am a little confused as to when we refer those plans. Can you please explain?

  • @VikasChavan-v1c
    @VikasChavan-v1c 5 месяцев назад

    I am doing coalesce(1) and getting error as : Unable to acquire 65536 bytes of memory, got 0.
    But when i am doing repartition(1), it worked. Can you please explain what happens internally in this case?

  • @rajubyakod8462
    @rajubyakod8462 8 месяцев назад

    if it is doing local aggregation before shuffling the data then why it will throw out of memory error while taking count of each key when the column has huge distinct values

  • @mission_possible
    @mission_possible Год назад

    Thanks for the content and when can we expect new video?

  • @sangu2227
    @sangu2227 6 месяцев назад

    I have doubt when the data will be distributed to executor is it before scheduling the task or after scheduling the task and who assign the data to executor

    • @afaqueahmad7117
      @afaqueahmad7117  6 месяцев назад

      Hey @sangu2227, this requires an understanding of transformations/actions and lazy evaluation in Spark. Spark doesn't do anything (either scheduling a task or distributing data) until an action is called.
      The moment an action is invoked, Spark creates a logical -> physical plan and Spark's scheduler divides the work into tasks. Spark's driver and Cluster manager then distributes the data to the executors for processing :)

  • @bhargaviakkineni
    @bhargaviakkineni 4 месяца назад

    Hi sir i came across a doubt
    Consider the executor size 1gb/executor. We have 3 executors and intially 3 gb data gets distributed across 3 executors each executor is having 1gb partition after various transformations we came across a requirment to decrease the number of partitions to 1 partition for that we will use repartition(1) or coalesce(1). In this scenario all the 3 partitions will merges to 1 partition each partition is having size of 1 gb approximately. Collectively all the partitions size is 3 gb approximately. When repartition (1) or coalesce(1) all the 3 gb data should sit in 1 executor having capicity of 1gb only. So here the data is execeeding the executor size what happens in this scenario. Could you please make video on this requesting sir.

    • @afaqueahmad7117
      @afaqueahmad7117  4 месяца назад

      Hi @bhargaviakkineni, In the scenario you described above where the resulting partition size (3 GB) exceeds the memory available on a single executor (1 GB), Spark will attempt to spill data to disk. The spill to disk is going to help the application from crashing due to out-of-memory errors however, there is going to be a performance impact associated, because disk IO is slower.
      On a side note, as a best practice, It’s best to also think/re-evaluate the need to write to a single partition. Avoid writing to a single partition, because it generally creates a bottleneck if the sizes are large. Try to balance out the partitions with the resources of the cluster (executors/cores).
      Hope that clarifies :)

  • @TechnoSparkBigData
    @TechnoSparkBigData Год назад

    You mentioned that for coalesce(2) shuffle will happen, but later you mentioned that shuffle will not happen in case of coalesce hence no partitioning scheme. Could you please explain it in detail?

    • @afaqueahmad7117
      @afaqueahmad7117  Год назад +1

      So, coalesce will only incur a shuffle if its a very aggressive situation. If the objective can be achieved by merging (reducing) the partitions on the same executor, it will go ahead with it. In case of coalesce(2), its an aggressive reduction in the number of partitions, meaning that Spark has no other option but to move the partitions. As there were 3 executors (in the example I referenced in the video), even if it reduced the partitions on each executor to a single partition, it would end up with 3 partitions in total, therefore it incurs a shuffle to have 2 final partitions :)

    • @TechnoSparkBigData
      @TechnoSparkBigData Год назад

      @@afaqueahmad7117 Thanks for clarification.

  • @ZafarDorna
    @ZafarDorna 8 месяцев назад

    Hi Afaque, how can I download the data files you are using? I want to try it hands on :)

    • @afaqueahmad7117
      @afaqueahmad7117  8 месяцев назад

      Should be available here: github.com/afaqueahmad7117/spark-experiments :)

  • @nijanthanvijayakumar
    @nijanthanvijayakumar Год назад

    Hello @afaqueahmad7117, thanks for the great video. While explaining repartition, you mentioned you’ve a video on the AQE. Please can you link that as well?

    • @afaqueahmad7117
      @afaqueahmad7117  Год назад +1

      Thanks @nijanthanvijayakumar, yes that video is upcoming in the next few days :)

    • @nijanthanvijayakumar
      @nijanthanvijayakumar Год назад

      Can't wait for that@@afaqueahmad7117
      These RUclips videos are so much more helpful. Hats down one of the best ones that explain the Spark performance tuning and internals in a very simplest of forms possible. Cheers!

  • @TechnoSparkBigData
    @TechnoSparkBigData Год назад

    In exchange hashpartitioning what is the significance of number 200? what does that mean?

    • @afaqueahmad7117
      @afaqueahmad7117  Год назад +1

      200 is the default number of shuffle partitions. You can find the number here in this table by the property name "spark.sql.shuffle.partitions" spark.apache.org/docs/latest/sql-performance-tuning.html#other-configuration-options

  • @NiranjanAnandam
    @NiranjanAnandam 3 месяца назад

    Local distinct on cust id doens't make sense and couldn't understand. How globally it does distinct count if the count is already computed. The reasoning behind why cast doens't push down predicate is not clearly explained and just as it's mentioned in the doc

  • @TechnoSparkBigData
    @TechnoSparkBigData Год назад

    Hi Sir, you mentioned that you referred AQE before. Can I get that link ? I want to know about AQE

  • @TJ-hs1qm
    @TJ-hs1qm 3 месяца назад

    What drawing board are you using for those notes?

    • @afaqueahmad7117
      @afaqueahmad7117  2 месяца назад +1

      Using "Notion" for text, "Nebo" on iPad for the diagrams

    • @TJ-hs1qm
      @TJ-hs1qm 2 месяца назад

      ​@@afaqueahmad7117cool thx!

  • @Pratik0917
    @Pratik0917 9 месяцев назад

    Fab Cotenet

  • @Precocious_Pervez
    @Precocious_Pervez Год назад

    Great Work buddy keep it up .... love your content, very simple to understand @Afaque Ahmed

  • @the_gamer2416
    @the_gamer2416 Месяц назад

    Hi Sir Please Make a Detailed course on apache spark which include every aspect of spark for Data Engineer role Please make sure there are a lot of begineer course here in market keep the course from intermediate level to advance level. Please tr to make video in Hindi it will be very helpful.