Monday, February 6, 2023

Counting and filtering blank lines from input file in PySpark

pyspark.Accumulator

A shared variable that can be accumulated, i.e., has a commutative and associative “add” operation. Worker tasks on a Spark cluster can add values to an Accumulator with the += operator, but only the driver program is allowed to access its value, using value. Updates from the workers get propagated automatically to the driver program.Accumulators

Accumulators provide a way of aggregating values in worker nodes and sending back the final value to the driver program
Used to count events that occur during job execution and debugging purpose
Used to implement counters similar to MapReduce counters.

Limitations:
If the executor failed for any reason, you would see an inconsistent value for count or sum as it executes from the beginning again.

Requirement: Count the empty lines in a data set distributed across multiple worker nodes.
Tags: Spark,Technology,

Infosys allegedly fires 600 employees after they fail internal test (Feb 2023)

Indian IT giant Infosys has sacked hundreds of fresher employees after they failed to clear the internal fresher assessment (FA) test, Business Today has learnt.

A fresher who was onboarded at the company in August 2022 told Business Today, “I started working at Infosys in August last year and I was given training for SAP ABAP stream. Out of 150 in my team, only 60 people passed the FA exam. Rest all of us were terminated two weeks ago. From the previous batch (freshers who were onboarded in July 2022 ), nearly 85 freshers were terminated out of 150 after failing the test.”

Sources claim that 600 employees have been terminated after failing the internal test. “Two weeks ago, 208 freshers were fired after failing the FA test. In total, around 600 freshers have been fired after failing the FA test in the past few months.”

Business Today reached out to Infosys for a confirmation on the number of employees that have been terminated but the company declined to disclose the same.

The fired employees claim that failing the internal test did not result in termination for freshers who joined before July, 2022. A company representative claims that failing the internal test had always resulted in sackings.

This development comes on the backdrop of hundreds of freshers awaiting onboarding at the company for over 8 months after receiving an offer letter.

A techie awaiting onboarding told Business Today, "Even though I have a job offer from India's top IT company Infosys, I am still staring at a grim future. I already have a gap in my resume because of all the waiting and no income from past several months. On top of that Infosys has not given any clarity on timeline of onboarding. And now some of my friends who got onboarded are fired, that makes me feel scared about my prospects as it was always thought that IT sector is mass recruiter and there are always opportunities, but it is changing."

Two weeks ago, Business Today reported that IT services Wipro had laid off hundreds of employees after they failed the company's internal test. Sources allege that 800 freshers were sacked from Wipro while the company claimed that the terminations were limited to 452 people.

Sunday, February 5, 2023

Songs (Feb 2023)

Index of Songs Playlists
1. SLOWLY SLOWLY | Guru Randhawa ft. Pitbull

2. Badshah X Karan Aujla - Players (Official Video)

3. Kya Say (Official Video) Sukriti x Prakriti x Badshah 

4. WOH (Official Video) - Ikka x Dino James x Badshah | Def Jam India

5. # Glass Animals - Heat Waves 
# Halsey - Without Me
The Kid Laroi, Ellie Goulding.....Mix
6. Halsey - Without Me 7. Neffex - Grateful 8. Sad songs for sad people 9. AP Dhillon Songs | Hits By Ap Dhillon | Music Nation