Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

insert csv to hive table

##Puting files into Hadoop
hdfs dfs -put winequality-red.csv /user/hive/warehouse/wines_red

##Another way(If file exists it will load new file with with _copy text ) 
##though put command will give error if file already exists.
load data local 'Desktop/winequality-red.csv' into table wines_red;
 
PREVIOUS NEXT
Tagged: #insert #csv #hive #table
ADD COMMENT
Topic
Name
1+1 =