FileLocalizer.openDFSFile() should do what you want.

Alan.

On May 28, 2010, at 3:04 PM, Mark Stetzer wrote:

Hey all,

I've seen this question asked on the mailing list in the past, but not
recently.  Does anyone know of a way to read data from HDFS within a
UDF?  I saw some discussion about a year ago that mentioned if a UDF
implemented org.apache.hadoop.conf.Configurable it would get a copy of
the Configuration object, but either that wasn't implemented, or I'm
having troubles with it.

Any thoughts?

Thanks!

-Mark

Reply via email to