【问题标题】:is it possible to add bucketing on already partitioned table in hive?是否可以在 hive 中已分区的表上添加分桶?
【发布时间】:2018-06-13 16:00:17
【问题描述】:

是否可以为已经包含分区的表创建分桶?

我在 hive 中有一个包含超过 1 亿条记录的表,我想在此创建一个存储桶。

【问题讨论】:

    标签: hive bigdata


    【解决方案1】:

    不,你不能,你必须创建另一个启用分桶的表:

    set hive.enforce.bucketing = true;
    FROM old_table insert into table new_bucketed_partitioned_table select * ;
    

    【讨论】:

      猜你喜欢
      • 2015-09-02
      • 1970-01-01
      • 2017-08-31
      • 1970-01-01
      • 2020-02-08
      • 1970-01-01
      • 2014-12-05
      • 2017-03-09
      • 1970-01-01
      相关资源
      最近更新 更多