Cannot overwrite a path that is also being read from spark hive

检查下代码是否是从A表查出来 然后再插入A表 这样会报错 有的spark版本不会报错
比较简单的办法:创建个临时表 做个中转

或者加上配置 spark.sql.hive.convertMetastoreOrc = false

猜你喜欢

转载自blog.csdn.net/weixin_45580378/article/details/129233807