Assuming I have these two tables:
External:
create external table emp_feedback (
emp_id int,
emp_name string
)
LOCATION '/user/hive/warehouse/mydb.db/contacts';
Internal:
create table emp_feedback (
emp_id int,
emp_name string
)
LOAD DATA INPATH 'file_location_of_csv' INTO TABLE emp_feedback;
- When I say:
LOCATION '/user/hive/warehouse/mydb.db/contacts';
for the external table does that mean that the data for that table is found in the directory'/user/hive/warehouse/mydb.db/contacts';
? So that directory has to exist in HDFS before hand? - Can I use
LOAD DATA INPATH...
for anexternal
table or is that only used forinternal
tables. And vice versa can I useLocation...
for an internal table?