Github user rmetzger commented on the pull request:

    https://github.com/apache/flink/pull/301#issuecomment-71178244
  
    Hadoops `FileOutputFormat` has the following method
    ```java
     public static String getUniqueName(JobConf conf, String name) {
        int partition = conf.getInt(JobContext.TASK_PARTITION, -1);
        if (partition == -1) {
          throw new IllegalArgumentException(
            "This method can only be called from within a Job");
        }
    
        String taskType = (conf.getBoolean(JobContext.TASK_ISMAP, true)) ? "m" 
: "r";
    
        NumberFormat numberFormat = NumberFormat.getInstance();
        numberFormat.setMinimumIntegerDigits(5);
        numberFormat.setGroupingUsed(false);
    
        return name + "-" + taskType + "-" + numberFormat.format(partition);
      }
    ```
    So users have to overwrite the method if they want to use a custom filename.
    
    I'll remove the configuration-based approach.


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