Uploaded image for project: 'Spring for Apache Hadoop'
  1. Spring for Apache Hadoop
  2. SHDP-98

Spring batch dynamic properties from job parameters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Batch
    • Labels:
      None
    • Environment:
      STS IDE,

      Description

      In the spring bacth properties are binded lately using configuration.
      <hdp:job id="wordcount-job" validate-paths="false" scope="step"
      input-path="/user/rdoppa/input/word/" output-path="#

      {jobParameter['outputFile']}

      "
      mapper="org.apache.hadoop.examples.WordCount.TokenizerMapper"
      reducer="org.apache.hadoop.examples.WordCount.IntSumReducer" />

      Error thrown for above configuration is as follows:

      original message is: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'wordcount-job' must be of type [org.apache.hadoop.mapreduce.Job], but was actually of type [$Proxy7]

        Attachments

          Activity

            People

            Assignee:
            costin Costin Leau
            Reporter:
            timodavid timo david
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: