Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. create external table if not exists sensor.building1 (BuildingID int,BuildingMgr string , BuildingAge string, HVACproduct string , Country string) row format delimited fields terminated by ',';
  2.  
  3. load data inpath '/user/cloudera/sensor/SensorFiles/building.csv' into table sensor.building1;
  4.  
  5. select a.BuildingID from sensor.building1 as a limit 10;
  6.  
  7. create external table test1(country string, name string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LINES TERMINATED BY 'n';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement