Re: FAILED: ClassCastException org.apache.hadoop.io.Text cannot be cast to java.lang.String

2014-08-01 Thread Jason Dere
t; > 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 thi

RE: FAILED: ClassCastException org.apache.hadoop.io.Text cannot be cast to java.lang.String

2014-08-01 Thread Ricardo Birmele
, 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 vpDefinition = new HashMap() ; vpDefinition.push

FAILED: ClassCastException org.apache.hadoop.io.Text cannot be cast to java.lang.String

2014-08-01 Thread Dan Fan
Hi team Quick question. I am writing a hive generic UDF. In which, I wanna have this: HashMap vpDefinition = new HashMap() ; 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

FAILED: ClassCastException org.apache.hadoop.io.Text cannot be cast to java.lang.String

2014-08-01 Thread Dan Fan
Hi team Quick question. I am writing a hive generic UDF. In which, I wanna have this: HashMap vpDefinition = new HashMap() ; 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

FAILED: ClassCastException org.apache.hadoop.io.Text cannot be cast to java.lang.String

2014-08-01 Thread Dan Fan
Hi team Quick question. I am writing a hive generic UDF. In which, I wanna have this: HashMap vpDefinition = new HashMap() ; 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