CSVTOHIVE
Generate Hive Scripts Automatically from CSV Files
...Generates CREATE statements to create tables.
3. Generates .hive files in the same folder as that of csv folder and also generates run.sh with all consolidated files. So just switch to the folder where .hive scripts are residing and run run.sh (./run.sh).
This tool will also set execute permissions on .hive and run.sh scripts so you can directly execute run.sh.