linux环境下快速搭建单机版本hive背景步骤
1 无法修改表结构,新版本的hive加上该参数set hive.metastore.disallow.incompatible.col.type.changes = false2 分桶表纪要clustered by (f1) sorted by (f1) into 10 buckets;会根据f1计算出id,写入对应的分桶中;根据sorted by对桶对的数据进行排序hash_function(bucketing_column) mod num_buckets2.x之前需要指定set h