It means pretty much what it says. Your code does not have runtime class info about K at this point in your code, and it is required.
On Thu, Apr 7, 2016 at 5:52 AM, Tenghuan He <tenghua...@gmail.com> wrote: > Hi all, > > I want to create an empty rdd and partition it > > val buffer: RDD[(K, (V, Int))] = base.context.emptyRDD[(K, (V, > Int))].partitionBy(new HashPartitioner(5)) > but got Error: No ClassTag available for K > > scala needs at runtime to have information about K , but how to solve this? > > Thanks in advance. > > Tenghuan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org