In my company, I see that these two teams are used often, and I would like to know about the differences, because their functionality seems to be the same to me:
1
create table <mytable>
(name string,
number double);
load data inpath '/directory-path/file.csv' into <mytable>;
2
create table <mytable>
(name string,
number double);
location '/directory-path/file.csv';
They copy data from the HDFS directory to the directory for the HIVE table. Are there any differences that should be considered when using them? Thanks.
source
share