Hello all,

But I keep getting the following exceptio= n:

The Iterable can be iterated over only once. On= ly the first call to 'iterator()' will succeed.

This is what I have:

class MyCombinableGroup= Reducer
=C2=A0=C2=A0=C2=A0 extends GroupReduceFunction[(Double, Double),= Double]
=C2=A0=C2=A0=C2=A0 with GroupCombineFunction[(Double, Double), = (Double, Double)] {
=C2=A0=C2=A0=C2=A0 import collection.JavaConverters.= _
=C2=A0=C2=A0=C2=A0 override def reduce(
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 in: java.lang.Iterable[(Double, Double)],
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 out: Collector[Double]): Unit =3D
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 val r =3D in.asScala.reduce= ( (a, b) =3D>=C2=A0 ///ERROR HAPPENS HERE
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (a._1, a._2 + b._2)
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 )
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 out.c= ollect(r._1 + r._2)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }

=C2=A0=C2=A0= =C2=A0 override def combine(
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 in: lang.Ite= rable[(Double, Double)],
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 out: Collector[(= Double, Double)]): Unit =3D {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ???
=C2= =A0=C2=A0=C2=A0 }
=C2=A0 }

Where am I transvers= ing `in` a second time? may be is the call to `asScala`?

Bests

-- Alejandro A= lcalde - elbauldelprogramador.com
--000000000000158da70575d5fc45--