Hi Dan, Take a look at this: http://javarevisited.blogspot.com/2012/12/how-to-solve-javalangclasscastexception-java.html
__Birm Ricardo Birmele, CISSP Security Data Scientist Microsoft IT Security Operations * | **** | * [Microsoft Logo] From: Dan Fan [mailto:d...@appnexus.com] Sent: Friday, 1 August, 2014 13:17 To: user@hive.apache.org Subject: FAILED: ClassCastException org.apache.hadoop.io.Text cannot be cast to java.lang.String Hi team Quick question. I am writing a hive generic UDF. In which, I wanna have this: HashMap<String, String> vpDefinition = new HashMap<String, String>() ; vpDefinition.push("auction_id","22") ; The second line always give me FAILED: ClassCastException org.apache.hadoop.io.Text cannot be cast to java.lang.String When I run the generic udf in hive. Does anyone know how to deal with this issue ? I do not understand that, why do I have this cannot cast error. Could anyone explain please ? Thanks Dan