Spark SQL SaveMode.Overwrite, getting java.io.FileNotFoundException and requiring 'REFRESH TABLE tableName'

后端 未结 4 734
孤独总比滥情好
孤独总比滥情好 2020-12-08 11:37

For spark sql, how should we fetch data from one folder in HDFS, do some modifications, and save the updated data to the same folder in HDFS via Overwrite save mode<

4条回答
  •  情书的邮戳
    2020-12-08 11:51

    I solved this , first I write my Dataframe to a temp directory , and delete the source I reading , and rename the temp directory to source name . QAQ

提交回复
热议问题