Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-5065

setOutputFormatClass in mapreduce.Job fails for SequenceFileOutputFormat

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.0
    • Fix Version/s: 0.20.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

          [javac] /.../snip.java:201: setOutputFormatClass(java.lang.Class<? extends org.apache.hadoop.mapreduce.OutputFormat<?,?>>) in \
              org.apache.hadoop.mapreduce.Job cannot be applied to (java.lang.Class<org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat>)
          [javac]     job.setOutputFormatClass(SequenceFileOutputFormat.class);
          [javac]        ^
      

      The signatures for get{Input,Output}FormatClass are probably too restrictive:

        public void setOutputFormatClass(Class<? extends OutputFormat<?,?>> cls) throws IllegalStateException
      

        Attachments

        1. 5065-0.patch
          1 kB
          Chris Douglas

          Activity

            People

            • Assignee:
              chris.douglas Chris Douglas
              Reporter:
              chris.douglas Chris Douglas
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: