You are on page 1of 1

create table movierating (id int,moviename string,rating int) row format delimited

fields terminated by ',';

hive> insert into table movierating values(1,'john Cena',45,8.02),


('batista',48,8.96);

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 states_hand(street string,city string,zip int,state int,beds int,baths


int,price int) row format delimited fields terminated by ;
create table states_hand having the below table structure:-

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 ',';

create table truckmileage (truckid string,driverid string,rdate string,miles


bigint,gas bigint,mpg double) row format delimited fields terminated by ',';

load data local inpath '/tmp/truckmileage.txt' into table truckmileage;

load data inpath '/tmp/truckmileage.txt' into table truckmileage;

curl -X POST -H "Content-Type: application/json" -H "kbn-xsrf: true" -d


'{"value":"e7502fa0-ca17-11e7-bab5-157d3f7aa014"}'
http://elastic:changeme@localhost:5601/api/kibana/settings/defaultIndex

You might also like