java.lang.IllegalStateException: iterator() can only be called once on this Iterable

crunch-user | Nathan Schile | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    MemGroupedTable - iterator() can only be called once on this Iterable

    crunch-user | 10 months ago | Nathan Schile
    java.lang.IllegalStateException: iterator() can only be called once on this Iterable

    Root Cause Analysis

    1. java.lang.IllegalStateException

      iterator() can only be called once on this Iterable

      at org.apache.crunch.impl.SingleUseIterable.iterator()
    2. org.apache.crunch
      MemGroupedTable.ungroup
      1. org.apache.crunch.impl.SingleUseIterable.iterator(SingleUseIterable.java:43)
      2. org.apache.crunch.impl.mem.collect.MemGroupedTable$UngroupFn.process(MemGroupedTable.java:148)
      3. org.apache.crunch.impl.mem.collect.MemGroupedTable$UngroupFn.process(MemGroupedTable.java:145)
      4. org.apache.crunch.impl.mem.collect.MemCollection.parallelDo(MemCollection.java:155)
      5. org.apache.crunch.impl.mem.collect.MemCollection.parallelDo(MemCollection.java:143)
      6. org.apache.crunch.impl.mem.collect.MemGroupedTable.ungroup(MemGroupedTable.java:142)
      6 frames