Referred this url : Hive - External table creation
Created Hive external table with location keyword and value is pointing to my local disk.
create external table exemp(id int,name string,age int)
row format delimited
fields terminated by ','
lines terminated by '\n'
stored as textfile
location 'file:///home/user/data';
But i am getting this error.
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:file:/home/user/data is not a directory or unable to create one)
But /home/user/data directory present in my local and have emp details. Any idea, why it is causing the issue