Scenario:
My Input will be multiple small XMLs and am Supposed to read these XMLs as RDDs. Perform join with another dataset and form an RDD and send the output as an XML.
Is it possible to read XML using spark, load the data as RDD? If it is possible how will the XML be read.
Sample XML:
<root>
<users>
<user>
<account>1234<account>
<name>name_1<
ame>
<number>34233<
umber>
<user>
<user>
<account>58789<account>
<name>name_2<
ame>
<number>54697<
umber>
<user>
<users>
<
oot>
How will this be loaded into the RDD?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…