0 votes
in Hive by
How does data transfer happen from HDFS to Hive?

1 Answer

0 votes
by

Basically, the user need not LOAD DATA that moves the files to the /user/hive/warehouse/. But only if data is already present in HDFS. Hence, using the keyword external that creates the table definition in the hive metastore  the user just has to define the table.

Create external table table_name (

 id int,

 myfields string

)

location ‘/my/location/in/hdfs’;

Related questions

+1 vote
asked Oct 25, 2020 in Hive by rahuljain1
0 votes
asked Jun 14, 2020 in Hive by Robindeniel
...