hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: Question About Passing Properties to a Mapper
Date Wed, 11 May 2011 16:15:34 GMT
Hello Geoffry,

On Wed, May 11, 2011 at 8:40 PM, Geoffry Roberts
<geoffry.roberts@gmail.com> wrote:
> All,
> I am attempting to pass a string value from my driver to each one of my
> mappers and it is not working.  I can set the value, but when I read it back
> it returns null.  the value is not null when I set() it and I am using the
> correct key when I attempt to get() it.  This should be a simple, straight
> forward thing but it isn't working.
> I am, however, passing another string value successfully. The difference
> seems to be that the value that passes successfully is short and simple
> whereas the other, the failure is long and in fact is an xml document
> containing new lines, et al.
> Question: What must I do to pass an xml document? url encode it? strip the
> new lines? other?

Encoding would be a good idea for arbitrary strings containing
possibly bad XML chars., etc..

(I prefer doing Base64 enc., that one works well with XML I think)

Harsh J

View raw message