sparksql报错 Cannot overwrite a path that is also being read from
除了设置set spark.sql.hive.convertMetastoreOrc=false;
还要注意查看表的provider是不是hive,我使用create table A using orc as select * from B;会修改provider为orc。
主要区别就是建表时使用sparksql的语法设置存储格式,还是使用hivesql的语法,如果以后要兼容hive,建议使用stored as设置存储格式。