ApacheSpark—以xml格式编写Dataframe,用zip压缩到目标存储

fbcarpbf  于 2021-07-14  发布在  Spark
关注(0)|答案(0)|浏览(185)

我试图用aws-glue-etl编写xml格式的Dataframe,压缩后加载到s3文件夹中。我已经能够为json、parquet、orc编写代码,但是找不到xml的代码。
主要错误是:
dataframewriter没有属性xml

d0.write.format("xml").option("compression", "gzip").save("/content/sample_data/compressed_xml")

d0.write.format("xml").option("codec", "gzip").save("/content/sample_data/compressed_xml")

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题