[
https://issues.apache.org/jira/browse/SQOOP-2029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Veena Basavaraj updated SQOOP-2029:
-----------------------------------
Description:
>From the client there is no support for show jobs by connector, the rest API
>supports it though
http://10.20.194.157:12000/sqoop/v1/jobs/?cname=kite-connector
{code}
show jobs --cid 2
{code}
was:I've noticed that method call
{{[SqoopClient.getSubmissionsForJob(long)|https://github.com/apache/sqoop/blob/sqoop2/client/src/main/java/org/apache/sqoop/client/SqoopClient.java#L542]}}
returns submission objects for *all* jobs instead of the given one. Looking
into
{{[SubmissionRequestHandler|https://github.com/apache/sqoop/blob/sqoop2/server/src/main/java/org/apache/sqoop/handler/SubmissionRequestHandler.java#L51]}}
I'm assuming that this is caused by the fact that {{SqoopClient}} is sending
the job id as part of the URL ({{v1/submissions/$jid}}) whereas the
{{SubmissionRequestHandler}} is looking for URL parameter.
> Sqoop2: Method call SqoopClient.getJobsByConnector from the client is not
> supported
> ------------------------------------------------------------------------------------
>
> Key: SQOOP-2029
> URL: https://issues.apache.org/jira/browse/SQOOP-2029
> Project: Sqoop
> Issue Type: Bug
> Affects Versions: 1.99.4
> Reporter: Veena Basavaraj
> Assignee: Veena Basavaraj
> Labels: newbie
> Fix For: 1.99.5
>
>
> From the client there is no support for show jobs by connector, the rest API
> supports it though
> http://10.20.194.157:12000/sqoop/v1/jobs/?cname=kite-connector
> {code}
> show jobs --cid 2
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)