HIVE 创建外部分区表--利用HUE不能创建外部表
Create EXTERNAL table obd_data_2(
imei string,
ts timestamp,
fuel_instant float,
gps_speed float,
gps_status string,
gps_longitude float,
gps_latitude float,
direct_angle float,
mileage_after int,
mileage_before int,
obdspeed int,
torque int,
front_xegon_sentor int,
after_xegon_sentor int,
air_condition int
)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
LOCATION '/user/chen/TexiData/R20140101/'
--制定数据所在的目录,将此目录下的所有文件都可以转入数据库