hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Fan <d...@appnexus.com>
Subject FAILED: ClassCastException org.apache.hadoop.io.Text cannot be cast to java.lang.String
Date Fri, 01 Aug 2014 20:16:50 GMT

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

Mime
View raw message