Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
update SPEL after pathUtil method name change
Browse files Browse the repository at this point in the history
  • Loading branch information
leejianwei committed Jun 5, 2012
1 parent fbef23e commit 97680ab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ springBatchAdminVersion = 1.2.1.RELEASE
junitVersion = 4.8.1

version = 1.0.0.BUILD-SNAPSHOT

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<job id="wc-job"
input-path="/user/hadoop/input"
output-path="#{@pathUtils.getTimeBasedPathFromRoot()}"
output-path="#{@pathUtils.format()}"
mapper="org.apache.hadoop.examples.WordCount.TokenizerMapper"
reducer="org.apache.hadoop.examples.WordCount.IntSumReducer"
validate-paths="false"
Expand All @@ -60,7 +60,7 @@

<beans:bean name="pathUtils" class="org.springframework.data.hadoop.util.PathUtils"
p:rootPath="/user/hadoop/output"
p:pathFormat="year/month/day/hour/minute/second"/>
p:pathFormat="yyyy/MM/dd/HH/mm/ss"/>



Expand Down
4 changes: 2 additions & 2 deletions samples/wordcount-batch/wordcount-context.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@

<beans:bean name="pathUtils" class="org.springframework.data.hadoop.util.PathUtils"
p:rootPath="/user/hadoop/output"
p:pathFormat="year/month/day/hour/minute/second"/>
p:pathFormat="yyyy/MM/dd/HH/mm/ss"/>

<job id="wc-job"
input-path="/user/hadoop/input"
output-path="#{@pathUtils.getTimeBasedPathFromRoot()}"
output-path="#{@pathUtils.format()}"
mapper="org.apache.hadoop.examples.WordCount.TokenizerMapper"
reducer="org.apache.hadoop.examples.WordCount.IntSumReducer"
validate-paths="false"
Expand Down
4 changes: 2 additions & 2 deletions templates/MapReduce/src/main/resources/workflow-context.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@

<beans:bean name="pathUtils"
class="org.springframework.data.hadoop.util.PathUtils" p:rootPath="${wordcount-job.output.path}"
p:pathFormat="year/month/day/hour/minute/second" />
p:pathFormat="yyyy/MM/dd/HH/mm/ss" />

<job id="wordcount-job" input-path="${wordcount-job.input.path}"
output-path="#{@pathUtils.getTimeBasedPathFromRoot()}" mapper="${wordcount-job.mapper.class}"
output-path="#{@pathUtils.format()}" mapper="${wordcount-job.mapper.class}"
reducer="${wordcount-job.reducer.class}"
jar="${wordcount-job.jar.path}" validate-paths="false" />

Expand Down

0 comments on commit 97680ab

Please sign in to comment.