Hi,

I am in need to create a table in spark.for that I have uploaded a csv file
in HDFS and created a table using following query

CREATE EXTERNAL table IF NOT EXISTS " + tableName + " (teams string,runs
int) " + "ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LOCATION '" +
hdfspath + "'";

May I know is there is anyway to create a table in spark without moving the
File to HDFS?

Thanks,
Vinod

Reply via email to