类型转换猪hcatalog [英] Type conversion pig hcatalog

查看:272
本文介绍了类型转换猪hcatalog的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用HCatalog版本0.4。我在hive'abc'中有一个表,它有一个数据类型为'timestamp'的列。当我尝试使用org.apache.hcatalog.pig.HCatLoader()来运行这样的raw_data = load'abc'猪脚本时我得到一个错误说java.lang.TypeNotPresentException:输入时间戳不存在。

解决方案

问题是,hcatalog不支持时间戳类型。
它将在hive 0.13下支持,他们对已经解决的这个问题有疑问,你可以在 https://issues.apache.org/jira/browse/HIVE-5814


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".

解决方案

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

这篇关于类型转换猪hcatalog的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆