Re: Use of Accumulators

2017-11-14 Thread Kedarnath Dixit
Yes! Thanks! ~Kedar Dixit Bigdata Analytics at Persistent Systems Ltd. From: Holden Karau <hol...@pigscanfly.ca> 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 t

Re: Use of Accumulators

2017-11-14 Thread Holden Karau
[via Apache Spark User List] [ > mailto:ml+s1001560n29995...@n3.nabble.com > <ml+s1001560n29995...@n3.nabble.com>] > *Sent:* Tuesday, November 14, 2017 1:16 PM > *To:* Kedarnath Dixit <kedarnath_di...@persistent.com> > > > *Subject:* Re: Use of Accumulators > > &g

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 <kedarnath_di...@persistent.com<mailto:kedarnath_di...@persistent.com>> Subject: Re: Use of Accumulators So you want to set an accumulato

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 <vaquar.k...@gmail.com> wrote: > Confirmed ,you can use Accumulators :) > > Regards, > Vaquar khan > > On Mo

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 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 nee