Announcement Announcement Module
Collapse
No announcement yet.
Error in spring hadoop args in understanding jobParameters expression Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X