Raj,

The outputSchema is executed on the front end[1] (and beware: it can be
called many times, and beyond that, UDFs are instantiated many times on the
front end).

What is your goal with serializing the output schema to XML? What are you
trying to do? I should also mention that EvalFunc now has
"getInputSchema()," as it serializes the input schema for you... but yeah,
some context around what you want to do is key.

[1] front end meaning the client side where the script is parsed and the
job jar created

2012/4/13 Rajgopal Vaithiyanathan <[email protected]>

> Where will the outputSchema be executed? in the client or as a mapreduce ?
>
> I've planned to keep the output schema as an XML and let the outputSchema
> method read it and generate the Schema object with respect ti the XML.
>
> Where should I place this XML file ? Client or HDFS ?
>
> :)
> Raj
>

Reply via email to