You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Veena Basavaraj (JIRA)" <ji...@apache.org> on 2015/02/19 01:19:12 UTC
[jira] [Updated] (SQOOP-1638) Notification on Submission.
[ https://issues.apache.org/jira/browse/SQOOP-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Veena Basavaraj updated SQOOP-1638:
-----------------------------------
Assignee: (was: Veena Basavaraj)
> Notification on Submission.
> ---------------------------
>
> Key: SQOOP-1638
> URL: https://issues.apache.org/jira/browse/SQOOP-1638
> Project: Sqoop
> Issue Type: Bug
> Reporter: Veena Basavaraj
> Labels: newbie, newbie++
> Fix For: 2.0.0
>
>
> What is this really supposed to do?
> There was some hacky code to set this URL
> {code}
> // TODO: This should be outsourced somewhere more suitable than here
> if(JobManager.getInstance().getNotificationBaseUrl() == null) {
> String url = ctx.getRequest().getRequestURL().toString();
> JobManager.getInstance().setNotificationBaseUrl(
> url.split("v1")[0] + "/v1/submission/notification/");
> }
> {code}
> But all it did was return status
> {code}
> private JsonBean handleNotification(RequestContext ctx, String sjid) {
> LOG.debug("Received notification request for job " + sjid);
> JobManager.getInstance().status(Long.parseLong(sjid));
> return JsonBean.EMPTY_BEAN;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)