Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Type conversion pig hcatalog

I use HCatalog version 0.4. I have a table in hive 'abc' which has a column with datatype 'timestamp'. When i try to run a pig script like this "raw_data = load 'abc' using org.apache.hcatalog.pig.HCatLoader();" i get an error saying "java.lang.TypeNotPresentException: Type timestamp not present".

like image 389
kris433 Avatar asked Feb 20 '14 00:02

kris433


2 Answers

The problem is that hcatalog doesn’t support timestamp type. It will be supported under hive 0.13, they have an issue about this problem that was already solved, you can see the issue in https://issues.apache.org/jira/browse/HIVE-5814

like image 125
noam Avatar answered Sep 22 '22 14:09

noam


If you use Hive-Hcatalog 0.13.0 check path to HCatLoader, you must use org.apache.hive.hcatalog.pig.HCatLoader() instead org.apache.hcatalog.pig.HCatLoader()

like image 26
Doroshenko Avatar answered Sep 21 '22 14:09

Doroshenko