Description
In FLINK-1525, we introduced the ParameterTool.
We should port the examples to use the tool.
The examples could look like this (we should maybe discuss it first on the mailing lists):
public static void main(String[] args) throws Exception { ParameterTool pt = ParameterTool.fromArgs(args); boolean fileOutput = pt.getNumberOfParameters() == 2; String textPath = null; String outputPath = null; if(fileOutput) { textPath = pt.getRequired("input"); outputPath = pt.getRequired("output"); } // set up the execution environment final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); env.getConfig().setUserConfig(pt);
Attachments
Issue Links
- is related to
-
FLINK-1525 Provide utils to pass -D parameters to UDFs
- Resolved