Professional Documents
Culture Documents
HIVe Hands On
HIVe Hands On
create table movierating (id int,moviename string,time string) row format delimited
fields terminated by ',';
insert into table movierating values(1,'How to Train Your Dragon: The Hidden
World','February 22');
insert into table movierating values(2,'Captain Marvel','March 08');
insert into table movierating values(3,'The Best of Enemies','April 05');
----------------------------
set hive.exec.dynamic.partition=true;
set hive.exec.dynamic.partition.mode=nonstrict;`
set hive.exec.max.dynamic.partitions=20000;
set hive.exec.max.dynamic.partitions.pernode=20000;
set hive.enforce.bucketing=true;
create table movierating (id int,movieid int,rating int,tiem string) row format
delimited fields terminated by ',';
create table truckmileage (year string,temp int,place int) row format delimited
fields terminated by ',';