can anyone explain how to load the data from HDFS to hive external table with out deleting the source file. If I use
LOAD DATA INPATH '/user/root/cards/deckofcards.txt' INTO TABLE deck_of_cards;
is file user /user/root/cards
will be deleted?
can anyone explain how to load the data from HDFS to hive external table with out deleting the source file. If I use
LOAD DATA INPATH '/user/root/cards/deckofcards.txt' INTO TABLE deck_of_cards;
is file user /user/root/cards
will be deleted?
For loading the data into Hive tables, we can use
Example :-
create external table table_name (
id int,
field_name string
)
row format delimited
fields terminated by <any delimiter>
location '/hdfs_location';
Example :-
create table table_name (
id int,
field_name string
)
row format delimited
fields terminated by <any delimiter>
location '/hdfs_location';
To find out what kind of table :- describe formatted table_name