avro - Create hive tables to different schemas -
i have hdfs structure:
root/folder1/a1.avro
root/folder1/b1.avro
root/folder2/a2.avro
root/folder2/b2.avro
a1, a2 - have schemaa
b1, b2 - have schemab
i want to:
create external table in hive data
or
create external table data & create external table b data.
how do that?
thanks
ok,i created 2 hive external tables, table_a schema , table_b schema b.
once have 2 tables, run 2 sets of "alter table add partition" statements:
alter table table_a add partition … 'root/folder1/a1.avro'; alter table table_a add partition … 'root/folder2/a2.avro';
alter table table_b add partition … 'root/folder1/b1.avro'; alter table table_b add partition … 'root/folder2/b2.avro';
Comments
Post a Comment