hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Peña (JIRA) <j...@apache.org>
Subject [jira] [Commented] (HIVE-13987) Clarify current error shown when HS2 is down
Date Mon, 13 Jun 2016 20:33:03 GMT

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

Sergio Peña commented on HIVE-13987:
------------------------------------

I'm thinking we should append the TTransportException error message to the error displayed.
We don't know exactly why the TTransportException is thrown, and there may be different reasons.

Is there a way to append such reason to the error message? I see this code as an example in
the same method you modified:
{noformat}
error(loc(e instanceof SQLWarning ? "Warning" : "Error",
        new Object[] {
            e.getMessage() == null ? "" : e.getMessage().trim(),
            e.getSQLState() == null ? "" : e.getSQLState().trim(),
            new Integer(e.getErrorCode())}));
{noformat}

The above code is pre-appending a Warning or Error, and then adding some other messages into
the Object[] array. 

Also, once you have the patch ready, could you copy  & paste an example of how it runs?

> Clarify current error shown when HS2 is down
> --------------------------------------------
>
>                 Key: HIVE-13987
>                 URL: https://issues.apache.org/jira/browse/HIVE-13987
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>    Affects Versions: 2.0.1
>            Reporter: Abdullah Yousufi
>            Assignee: Abdullah Yousufi
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: HIVE-13987.01.patch
>
>
> When HS2 is down and a query is run, the following error is shown in beeline:
> {code}
> 0: jdbc:hive2://localhost:10000> show tables;
> Error: org.apache.thrift.transport.TTransportException (state=08S01,code=0)
> {code}
> It may be more helpful to also indicate that the reason for this is that HS2 is down,
such as:
> {code}
> 0: jdbc:hive2://localhost:10000> show tables;
> HS2 may be unavailable, check server status
> Error: org.apache.thrift.transport.TTransportException (state=08S01,code=0)
> {code}



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

Mime
View raw message