Github user zhangminglei commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4285#discussion_r128009928
  
    --- Diff: 
flink-java/src/main/java/org/apache/flink/api/java/hadoop/mapred/HadoopOutputFormatBase.java
 ---
    @@ -126,18 +128,18 @@ public void open(int taskNumber, int numTasks) throws 
IOException {
                        this.jobConf.setInt("mapreduce.task.partition", 
taskNumber + 1);
     
                        try {
    -                           this.context = 
HadoopUtils.instantiateTaskAttemptContext(this.jobConf, taskAttemptID);
    +                           this.context = new 
TaskAttemptContextImpl(this.jobConf, taskAttemptID);
                        } catch (Exception e) {
    -                           throw new RuntimeException(e);
    +                           throw new IOException("Could not create 
instance of TaskAttemptContext.", e);
    --- End diff --
    
    Yes. Stephan is correct!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to