spark首次写入Hive orc表报错

The format of the existing table project_bsc_dhr.bloc_views is HiveFileFormat. It doesn't match the specified format OrcFileFormat.;

new_df.write.mode(SaveMode.Append).format("orc").partitionBy("nd").saveAsTable("table1")
将Append改为Overwrite,先写入一部分数据,然后再改成Append

 

你可能感兴趣的:(Spark算子)