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

Veena Basavaraj commented on SQOOP-1782:
----------------------------------------

on the cluster I have it working form command line
{code}
sqoop:000> show submission --jid 2
+--------+-------------+--------+------------------+
| Job Id | External Id | Status | Last Update Date |
+--------+-------------+--------+------------------+
+--------+-------------+--------+------------------+
sqoop:000> show submission --jid 3
+--------+------------------------+---------+------------------------------+
| Job Id |      External Id       | Status  |       Last Update Date       |
+--------+------------------------+---------+------------------------------+
| 3      | job_1412137947693_0017 | RUNNING | Wed Jan 21 20:42:32 PST 2015 |
+--------+------------------------+---------+------------------------------+
sqoop:000> show submission --jid 1
+--------+------------------------+-----------+------------------------------+
| Job Id |      External Id       |  Status   |       Last Update Date       |
+--------+------------------------+-----------+------------------------------+
| 1      | job_1412137947693_0016 | SUCCEEDED | Wed Jan 21 20:32:31 PST 2015 |
+--------+------------------------+-----------+------------------------------+
sqoop:000> 
{code}

> Sqoop2: Method call SqoopClient.getSubmissionsForJob(long) will return 
> submissions for all jobs
> -----------------------------------------------------------------------------------------------
>
>                 Key: SQOOP-1782
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1782
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.99.4
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Veena Basavaraj
>              Labels: newbie
>             Fix For: 1.99.5
>
>         Attachments: SQOOP-1782-v1.patch, SQOOP-1782-v2.patch, 
> SQOOP-1782.patch
>
>
> 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.



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

Reply via email to