Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-2018

Add ParameterUtil.fromGenericOptionsParser() for compatibility to Hadoop's argument parser

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.10.0
    • None

    Description

      In FLINK-1525 we've added the ParameterTool.

      For users used to Hadoop's GenericOptionsParser it would be great to provide a compatible parser.

      See: https://hadoop.apache.org/docs/r1.0.4/api/org/apache/hadoop/util/GenericOptionsParser.html

      @Test
      public void testFromGenericOptionsParser() {
      	ParameterUtil parameter = ParameterUtil.fromGenericOptionsParser(new String[]{"-D", "input=myinput", "-DexpectedCount=15"});
      	validate(parameter);
      } 
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rmetzger Robert Metzger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: