hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom White <...@cloudera.com>
Subject Re: updated example
Date Tue, 11 Oct 2011 16:32:05 GMT
JobConf and the old API are no longer deprecated in the forthcoming
0.20.205 release, so you can continue to use it without issue.

The equivalent in the new API is setInputFormatClass() on


On Tue, Oct 11, 2011 at 9:18 AM, Keith Thompson <kthomps6@binghamton.edu> wrote:
> I see that the JobConf class used in the WordCount tutorial is deprecated
> for the Configuration class.  I am wanting to change the file input format
> (to the StreamInputFormat for XML as in Hadoop: The Definitive Guide pp.
> 212-213) but I don't see a setInputFormat method in the Configuration class
> as there was in the JobConf class.  Is there an updated example using the
> non-deprecated classes and methods?  I have searched but not found one.
> Regards,
> Keith

View raw message