I'm having trouble creating a table in Hive while reading a CSV file from HDFS. Request below:
CREATE EXTERNAL TABLE testmail (memberId String , email String, sentdate String,actiontype String, actiondate String, campaignid String,campaignname String) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LOCATION '/user/hadoop/cloudera/ameeth/ca_email.csv';
Error receiving. Error in metadata:
MetaException (message: HDFS: // PC: 8020 / user / Hadoop / Cloudera / ameeth / ca_email.csv is not a directory or cannot create it)
Can anyone help me on this. Actually I want to run such elements in a .sql file as a job
source share