Re: Use of Accumulators

2017-11-14 Thread Kedarnath Dixit
Yes! Thanks! ~Kedar Dixit Bigdata Analytics at Persistent Systems Ltd. From: Holden Karau Sent: 14 November 2017 20:04:50 To: Kedarnath Dixit Cc: user@spark.apache.org Subject: Re: Use of Accumulators And where do you want to read the toggle back from? On

Re: Use of Accumulators

2017-11-14 Thread Holden Karau
Apache Spark User List] [ > mailto:ml+s1001560n29995...@n3.nabble.com > ] > *Sent:* Tuesday, November 14, 2017 1:16 PM > *To:* Kedarnath Dixit > > > *Subject:* Re: Use of Accumulators > > > > So you want to set an accumulator to 1 after a transformation has fully

RE: Use of Accumulators

2017-11-14 Thread Kedarnath Dixit
: Holden Karau [via Apache Spark User List] [mailto:ml+s1001560n29995...@n3.nabble.com] Sent: Tuesday, November 14, 2017 1:16 PM To: Kedarnath Dixit mailto:kedarnath_di...@persistent.com>> Subject: Re: Use of Accumulators So you want to set an accumulator to 1 after a transformation has

Re: Use of Accumulators

2017-11-13 Thread Holden Karau
So you want to set an accumulator to 1 after a transformation has fully completed? Or what exactly do you want to do? On Mon, Nov 13, 2017 at 9:47 PM vaquar khan wrote: > Confirmed ,you can use Accumulators :) > > Regards, > Vaquar khan > > On Mon, Nov 13, 2017 at 10:58 AM, Kedarnath Dixit < > k

Re: Use of Accumulators

2017-11-13 Thread vaquar khan
Confirmed ,you can use Accumulators :) Regards, Vaquar khan On Mon, Nov 13, 2017 at 10:58 AM, Kedarnath Dixit < kedarnath_di...@persistent.com> wrote: > Hi, > > > We need some way to toggle the flag of a variable in transformation. > > > We are thinking to make use of spark Accumulators for th

Use of Accumulators

2017-11-13 Thread Kedarnath Dixit
Hi, We need some way to toggle the flag of a variable in transformation. We are thinking to make use of spark Accumulators for this purpose. Can we use these as below: Variables -> Initial Value Variable1 -> 0 Variable2 -> 0 In one of the transformations if we need to make Variable