spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiemeilong <xiemeilong...@gmail.com>
Subject combinebykey throw classcastexception
Date Tue, 20 May 2014 01:05:45 GMT
I am using CDH5 on a three machines cluster. map data from hbase as (string,
V) pair , then call combineByKey like this: 

.combineByKey[C]( 
      (v:V)=>new C(v),   //this line throw java.lang.ClassCastException: C
cannot be cast to V 
      (v:C,v:V)=>C, 
      (c1:C,c2:C)=>C) 


I am very confused of this, there isn't C to V casting at all.  What's
wrong?



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/combinebykey-throw-classcastexception-tp6059.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Mime
View raw message