You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Alejandro Abdelnur (Commented) (JIRA)" <ji...@apache.org> on 2012/01/10 01:42:40 UTC

[jira] [Commented] (MAPREDUCE-3649) Job End notification gives an error on calling back.

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

Alejandro Abdelnur commented on MAPREDUCE-3649:
-----------------------------------------------

Looking at the code in the JobNotifier class:

{code}
      URLConnection conn = urlToNotify.openConnection();
      conn.setConnectTimeout(5*1000);
      conn.setReadTimeout(5*1000);
      conn.setAllowUserInteraction(false);
      InputStream is = conn.getInputStream();
      conn.getContent();
      is.close();
{code}

Instead it should be


{code}

      HttpURLConnection conn = (HttpURLConnection) urlToNotify.openConnection();
      conn.setConnectTimeout(5*1000);
      conn.setReadTimeout(5*1000);
      conn.setAllowUserInteraction(false);
      if (conn.getResponseCode() != HttpURLConnection.HTTP_OK) {
        //LOG WARNING
      }
{code}

                
> Job End notification gives an error on calling back.
> ----------------------------------------------------
>
>                 Key: MAPREDUCE-3649
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3649
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv2
>    Affects Versions: 0.23.1
>            Reporter: Mahadev konar
>            Assignee: Mahadev konar
>            Priority: Blocker
>             Fix For: 0.23.1
>
>
> When calling job end notification for oozie the AM fails with the following trace:
> {noformat}
> 2012-01-09 23:45:41,732 WARN [AsyncDispatcher event handler] org.mortbay.log: Job end notification to http://HOST:11000/oozie/v0/callback?id=0000000-120109234442311-oozie-oozi-W@mr-node&status=SUCCEEDED& failed
> java.net.UnknownServiceException: no content-type
> 	at java.net.URLConnection.getContentHandler(URLConnection.java:1192)
> 	at java.net.URLConnection.getContent(URLConnection.java:689)
> 	at org.apache.hadoop.mapreduce.v2.app.JobEndNotifier.notifyURLOnce(JobEndNotifier.java:95)
> 	at org.apache.hadoop.mapreduce.v2.app.JobEndNotifier.notify(JobEndNotifier.java:139)
> 	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$JobFinishEventHandler.handle(MRAppMaster.java:388)
> 	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$JobFinishEventHandler.handle(MRAppMaster.java:375)
> 	at org.apache.hadoop.yarn.event.AsyncDispatcher.dispatch(AsyncDispatcher.java:125)
> 	at org.apache.hadoop.yarn.event.AsyncDispatcher$1.run(AsyncDispatcher.java:82)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira