将数据帧写入HDFS路径时出错

时间:2019-05-22 19:51:24

标签: apache-spark

将数据帧写入HDFS路径时失败

df_export_data.write.format("csv").option("header", "true").option("delimiter","|").partitionBy("sales_org_cd").mode("append").save("/tmp/test/")
  

错误消息:
  --------------
  19/05/22 19:36:56错误TransportRequestHandler:在RPC ID上调用RpcHandler#receive()时出错5589473205747598389 java.io.InvalidClassException:org.apache.spark.scheduler.AskPermissionToCommitOutput;本地类不兼容:流classdesc serialVersionUID = -6126279111580845008,本地类serialVersionUID = -6906932408541757372
  在java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:699)
  在java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1885)
  在java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1751

0 个答案:

没有答案