Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are Accumulators?



What are Accumulators?..

Answer / Chhavi Singh

Accumulators in Spark allow you to compute and update a variable during the execution of an action. They can be used for iterative algorithms where you want to accumulate some value across each iteration. In PySpark, you can create an Accumulator using `acc = sc.accumulator(0)`. Then, update it inside map() or reduce() functions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PySpark Interview Questions

What is the difference between pyspark and spark?

1 Answers  


How do I open pyspark shell in windows?

1 Answers  


Name the parts of Spark Ecosystem?

1 Answers  


What are activities ?

1 Answers  


What is rdd in pyspark?

1 Answers  


What are the enhancements that engineer can make while working with flash?

1 Answers  


Notice a few Transformations and Actions?

1 Answers  


Does pyspark work with python3?

1 Answers  


What is the distinction among continue() and store()?

1 Answers  


What is the job of store() and continue()?

1 Answers  


What is Pyspark?

1 Answers  


What are activities and changes?

1 Answers  


Categories