I am trying to find the sum of any given points using hadoop, The issue I am having is on getting all values from a given key in a single reducer. It looks like this.
To copy Iterator, you can't assign the iterator to a new variable. You should "clone" a iterator to a new variable of iterator class.
When the iterator A assign an other iterator variable B, the two variables of iterator are pointed the same data.