登录到hive后,我得到以下信息。
sudo -u hdfs hive
[warnings and information about deprecated configurations]
Logging initialized using configuration in jar:file:/opt/cloudera/parcels/CDH-5.0.0-1.cdh5.0.0.p0.47/lib/hive/lib/hive-common-0.12.0-cdh5.0.0.jar!/hive-log4j.properties
当我在hive中创建一个带有timestamp数据类型的表时,我得到如下结果。
hive> create table rts(usergender string, usercity string, usersentiment int, zipcode string, sku string, createdat timestamp, category string, price float, county string, countycode string, userstate string, categorygroup string) partitioned by (createdat_hour bigint) stored as parquet;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.UnsupportedOperationException: timestamp not implemented yet
1条答案
按热度按时间093gszye1#
配置单元时间戳在配置单元0.8版本之后可用。
看起来您使用的是cdh 5,它与以上Hive0.10一起提供。除了版本类型之外,我看不到任何类型的问题。检查一下你的Hive版本。