flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Metzger (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-2018) Add ParameterUtil.fromGenericOptionsParser() for compatibility to Hadoop's argument parser
Date Fri, 15 May 2015 08:14:00 GMT
Robert Metzger created FLINK-2018:
-------------------------------------

             Summary: Add ParameterUtil.fromGenericOptionsParser() for compatibility to Hadoop's
argument parser
                 Key: FLINK-2018
                 URL: https://issues.apache.org/jira/browse/FLINK-2018
             Project: Flink
          Issue Type: Improvement
            Reporter: Robert Metzger
            Priority: Minor


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


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message