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

Gunther Hagleitner commented on HIVE-5403:
------------------------------------------

Another one: PerfLogger doesn't work on the backend with this change anymore. 
The problem is that the SessionState now uses MetaException in the code path to 
start the session. That's not available on the backend. PerfLogger has logic to 
determine whether it runs front or backend. It does so by checking 
SessionState.get() == null.

That check cannot be executed anymore because loading the SessionState tries to 
resolve the MetaException (MetaStore api).

The easiest fix would be to collapse the exception handlers to one that catches 
exception (super class of meta store) and wraps that into a runtime exception. 
Logically that's no different from what's performed right now.
 Can we have a follow up to this one as well?

> Move loading of filesystem, ugi, metastore client to hive session
> -----------------------------------------------------------------
>
>                 Key: HIVE-5403
>                 URL: https://issues.apache.org/jira/browse/HIVE-5403
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.13.0
>            Reporter: Vikram Dixit K
>            Assignee: Vikram Dixit K
>             Fix For: 0.13.0
>
>         Attachments: HIVE-5403.1.patch, HIVE-5403.2.patch, HIVE-5403.3.patch, 
> HIVE-5403.4.patch
>
>
> As part of HIVE-5184, the metastore connection, loading filesystem were done 
> as part of the tez session so as to speed up query times while paying a cost 
> at startup. We can do this more generally in hive to apply to both the 
> mapreduce and tez side of things.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to