Hello,

There is currently no direct conversion from XML to Avro. You would likely
have to go from XML to JSON, and then use ConvertJsonToAvro.

There also isn't direct conversion from XML to JSON, but some people have
been able to do it with TransformXML using an XLST.

Your best bet may be to write a custom processor that parses your XML and
produces Avro, and then you are correct that you can use MergeContent to
 merge together smaller Avro files.

-Bryan


On Tue, Jan 10, 2017 at 5:09 AM, Selvam Raman <sel...@gmail.com> wrote:

> Hi,
>
> I have 5k xml files after invokehttp->compresscontent ->unpackcontent-> ?.
>
> Now i want to create single avro file which would have 5k rows and each
> row represents one xml in string.
>
> Can you share me your idea.
>
> Once i converted to avro, may be i could use mergecontent to create single
> avro file from all flowfile content.
>
> --
> Selvam Raman
> "லஞ்சம் தவிர்த்து நெஞ்சம் நிமிர்த்து"
>

Reply via email to