Results 1 to 2 of 2

Thread: Error in spring hadoop args in understanding jobParameters expression

  1. #1
    Join Date
    Aug 2012
    Posts
    10

    Default Error in spring hadoop args in understanding jobParameters expression

    Hi, when I am doing following.

    <hdp:tool-tasklet id="wc-tasklet" scope="step" tool-class="com.abcd.WordCountToolRunner" >
    <hdp:arg value="#{jobParameters['inputFile']}"/>
    <hdp:arg value="#{jobParameters['outputFile']}"/>
    </hdp:tool-tasklet>

    When I try to set arguments of tool by retrieving this from jobParameters using spring expression, I don't get arguments parsed well and I always see null. Any ideas on how to configure jobParameters to tool tasklet.

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Most likely that happens because they're not set and thus their default value is null. Take a look at the Spring Batch docs [1] and try the samples provided with the distro.

    [1] http://static.springsource.org/sprin...external-flows
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •