hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Holle <marcel.ho...@googlemail.com>
Subject Re: Access core-site.xml from FileInputFormat
Date Thu, 12 Jan 2012 21:09:53 GMT
I want to add a custom parameter to core-site.xlm, which I would like to
access from the FileInputFormat.getSplits() method. Is this possible?

2012/1/12 Joey Echeverria <joey@cloudera.com>

> It doesn't matter if the original comes from mapred-site.xml,
> core-site.xml, or hdfs-site.xml. All that really matters is if it's a
> client/job tunable or if it configures one of the daemons.
>
> Which parameter did you want to change?
>
> On Thu, Jan 12, 2012 at 1:59 PM, Marcel Holle
> <marcel.holle@googlemail.com> wrote:
> > I need a value of the core-site.xml property file within FileInputFormat.
> > I'm overriding the getSplits method: public List<InputSplit>
> > getSplits(JobContext job);
> >
> > Using the job I can access the job configuration which gives me access to
> > mapres-site.xml, but does it also let me access core-site.xml?
>
>
>
> --
> Joseph Echeverria
> Cloudera, Inc.
> 443.305.9434
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message