Unable to read XML File stored in GCS Bucket

前端 未结 1 1063
悲&欢浪女
悲&欢浪女 2021-01-27 16:02

I have tried to follow this documentation in the most precise way I could:

https://beam.apache.org/documentation/sdks/javadoc/2.0.0/org/apache/beam/sdk/io/xml/XmlIO.html

相关标签:
1条回答
  • 2021-01-27 16:31

    XmlIO.Read PTransform doesn't support providing multiple record elements (author, title, genre, etc). You have to provide a single root element and a record element and your XML document has to contain records that have the same record element. See the example given in the following location.

    https://github.com/apache/beam/blob/master/sdks/java/io/xml/src/main/java/org/apache/beam/sdk/io/xml/XmlIO.java#L59

    0 讨论(0)
提交回复
热议问题