You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (JIRA)" <ji...@apache.org> on 2016/08/10 13:09:20 UTC

[jira] [Commented] (FLINK-4335) Add jar id, and job parameters information to job status rest call

    [ https://issues.apache.org/jira/browse/FLINK-4335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15415251#comment-15415251 ] 

Robert Metzger commented on FLINK-4335:
---------------------------------------

Hi Zhenzhong,
the parallelism and user defined parameters are already available in the web interface.
The URL http://localhost:8081/jobs/<JOBID>/config returns the parallelism and all user defined parameters. For registering the user defined parameters, you have to pass them to the execution config's global job parameters. Its a very simple interface you need to implement to expose the key value pairs.
Flink's {{ParameterTool}} utility also implements that interface:
{code}
final ParameterTool pt = ParameterTool.fromPropertiesFile(args[0]);
see.getConfig().setGlobalJobParameters(pt);
{code}
I think its easy to expose the job entry class using that mechanism as well.
What do you mean by the "jar ID" ?



> Add jar id, and job parameters information to job status rest call
> ------------------------------------------------------------------
>
>                 Key: FLINK-4335
>                 URL: https://issues.apache.org/jira/browse/FLINK-4335
>             Project: Flink
>          Issue Type: Improvement
>          Components: Webfrontend
>            Reporter: Zhenzhong Xu
>            Priority: Minor
>
> From declarative, reconcilation based job management perspective, there is a need to identify the job jar id, and all job parameters for a running job to determine if the current job is up to date. 
> I think these information needs to be available through the job manager rest call (/jobs/$id).
> * Jar ID
> * Job entry class
> * parallelism
> * all user defined parameters



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