Это мой сценарий:улей, Bucketing для секционированной таблицы
--table without partition
drop table if exists ufodata;
create table ufodata (sighted string, reported string, city string, shape string, duration string, description string)
row format delimited
fields terminated by '\t'
Location '/mapreduce/hive/ufo';
--load my data in ufodata
load data local inpath '/home/training/downloads/ufo_awesome.tsv' into table ufodata;
--create partition table
drop table if exists partufo;
create table partufo (sighted string, reported string, city string, shape string, duration string, description string)
partitioned by (year string)
clustered by (year) into 6 buckets
row format delimited
fields terminated by '/t';
--by default dynamic partition is not set
set hive.exec.dynamic.partition=true;
set hive.exec.dynamic.partition.mode=nonstrict;
--by default bucketing is false
set hive.enforcebucketing=true;
--loading mydata
insert overwrite table partufo
partition (year)
select sighted, reported, city, shape, min, description, SUBSTR(TRIM(sighted), 1,4) from ufodata;
Сообщение об ошибке:
FAILED: Ошибка при семантическом анализе: Недопустимая ссылка на столбец
Я попытался bucketing для моей секционированной таблицы. Если я удалю «сгруппированные по (году) в 6 кодов», сценарий отлично работает. Как вешать секционированную таблицу
Синтаксис Puneeth также почти такой же ... – madhu
Что случилось с этим скриптом? Могу ли я создать bucketing на секционированной таблице? Сценарий: gist.github.com/puneethbs/207dc89530c26c05ed02 Сообщение об ошибке: gist.github.com/puneethbs/3dcdebb4075275bbf62b – Puneeth