You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Andras Piros (JIRA)" <ji...@apache.org> on 2019/01/17 03:19:00 UTC

[jira] [Updated] (OOZIE-3422) [client] Enhance logging of Oozie client connecting to the Oozie server

     [ https://issues.apache.org/jira/browse/OOZIE-3422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andras Piros updated OOZIE-3422:
--------------------------------
    Component/s: client

> [client] Enhance logging of Oozie client connecting to the Oozie server
> -----------------------------------------------------------------------
>
>                 Key: OOZIE-3422
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3422
>             Project: Oozie
>          Issue Type: Improvement
>          Components: client
>    Affects Versions: 5.1.0
>            Reporter: Andras Salamon
>            Assignee: Andras Salamon
>            Priority: Major
>         Attachments: OOZIE-3422-01.patch
>
>
> When the Oozie client tries to connect to the server and fails the error message is not always helpful.
> {noformat}
> $ oozie jobs -oozie http://thisisawrongurl                                                                                                                                                                                                                                                                                                        
> Error: IO_ERROR : java.io.IOException: Error while connecting Oozie server. No of retries = 1. Exception = thisisawrongurl
> {noformat}
> A few examples with more helpful error messages:
> {noformat}
> $ oozie jobs -oozie http://localhost:11001
> Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]. Trying after 1 sec. Retry count = 1
> Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]. Trying after 2 sec. Retry count = 2
> Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]. Trying after 4 sec. Retry count = 3
> Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]. Trying after 8 sec. Retry count = 4
> Error: IO_ERROR : java.io.IOException: Error while connecting Oozie server. No of retries = 4. Exception = Connection refused (Connection refused)
> $ oozie jobs -oozie http://localhost:11000/oozietypo
> Error: IO_ERROR : java.io.IOException: Error while connecting Oozie server. No of retries = 1. Exception = Could not authenticate, Authentication failed, status: 404, message: Not Found
> {noformat}
> It is not enought to print out the {{getMessage()}} of the {{Exception}}, we should also print out the full stack trace in the {{ConnectionRetriableClient}} class.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)