hama-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chia-Hung Lin <cli...@googlemail.com>
Subject Re: BSP Task Input/InputSplit Filename
Date Tue, 21 May 2013 14:27:15 GMT
My understanding is that you can configure path during constructing a job.

    HamaConfiguration conf = new HamaConfiguration();
    BSPJob bsp = new BSPJob(conf, MyBSP.class);

And wihtin customized BSP class e.g. MyBSP calls


to retrieve the file name.

Or FileInputFormat makes use of Configuration set input path with the
key "bsp.input.dir". Path should be able to obtain using
conf.get("bsp.input.dir") when performing computation.

On 21 May 2013 18:04, Steven van Beelen <smcvbeelen@gmail.com> wrote:
> Hi all,
> The title says it: is there a way to retrieve the filename of the
> input/inputsplit a BSP Task is working on? I've been looking for some time
> in the docs and source files, but cannot seem to find if one is able to
> retrieve the filename/pathname from the input used.
> Cheers

View raw message