【问题标题】:How to enable timestamp in Hive如何在 Hive 中启用时间戳
【发布时间】:2014-09-18 21:56:11
【问题描述】:

登录 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

【问题讨论】:

  • 解决方案是......?

标签: hadoop timestamp hive cloudera create-table


【解决方案1】:

Hive 时间戳在 Hive 0.8 版本之后可用。

看起来您正在使用 Hive 0.10 以上附带的 CDH 5。除了版本类型之外,我没有看到任何类型的问题。检查您的 Hive 版本一次。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-17
    • 2017-11-23
    • 2017-07-02
    相关资源
    最近更新 更多