hadoop - Error Loading CSV data into a Hive table -


i have csv file has rows in following format,

1, 11812, 15273, "2016-05-22t111647.800 us/eastern", 82971850, 0 1, 11812, 7445, "2016-05-22t113640.200 us/eastern", 82971928, 0 1, 11654, 322, "2016-05-22t113845.773 us/eastern", 82971934, 0 1, 11722, 0, "2016-05-22t113929.541 us/eastern", 82971940, 0 

the create hive table following command,

create table event_history(status tinyint, condition smallint, machine_id int, time timestamp, ident int, state tinyint) 

then trying load csv file table following command,

load data local inpath "/home/ubuntu/events.csv" table event_history; 

but nulls when try select query in created table. missing here?

the hive version hive 1.2.1

my error in table creation. fixed following changes

create table event_history(status tinyint, condition smallint, machine_id int, time timestamp, drqs int, state tinyint) row format delimited fields terminated ','; 

Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -