java.lang.IllegalArgumentException: Key type must be of class WritableType

crunch-user | Kristoffer Sjögren | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to count MemPipeline?

    crunch-user | 2 years ago | Kristoffer Sjögren
    java.lang.IllegalArgumentException: Key type must be of class WritableType

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Key type must be of class WritableType

      at org.apache.crunch.types.writable.Writables.tableOf()
    2. org.apache.crunch
      MemCollection.count
      1. org.apache.crunch.types.writable.Writables.tableOf(Writables.java:351)
      2. org.apache.crunch.types.writable.WritableTypeFamily.tableOf(WritableTypeFamily.java:95)
      3. org.apache.crunch.lib.Aggregate.count(Aggregate.java:65)
      4. org.apache.crunch.lib.Aggregate.count(Aggregate.java:56)
      5. org.apache.crunch.impl.mem.collect.MemCollection.count(MemCollection.java:230)
      5 frames
    3. mapred.functions
      FunctionsTest.testGroupActionCount
      1. mapred.functions.FunctionsTest.testGroupActionCount(FunctionsTest.java:79)
      1 frame