We can load CSV data into hive table with the help of CSV SERDE JAR FILE which is freely available. You can download it manually by clicking below text.
Here, we are trying to load two types of CSV data in hive table.
First type of data contains header i.e. first line in the file is header information and Second type of CSV file contains only data and no header information is given.
Following script will load CSV data containing header as first line in hive table called csvtohive
Below script will load CSV data (without containing header) in hive table called csvtohive.
Thanks for having a read.
I hope the explanation makes the scripts easier to understand.