[ https://issues.apache.org/jira/browse/HIVE-10893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14569533#comment-14569533 ]
Sergey Shelukhin commented on HIVE-10893: ----------------------------------------- There's certain difficulty of exposing it from service module to exec module; still, should be pretty easy to add in HS2 class, startHiveServer2, etc. > Expose a global isHS2 check > --------------------------- > > Key: HIVE-10893 > URL: https://issues.apache.org/jira/browse/HIVE-10893 > Project: Hive > Issue Type: Bug > Reporter: Sergey Shelukhin > Priority: Minor > > Currently, HS2 flag can only be checked via SessionState. That's fragile > (SessionState can be null and it's not clear when the flag is set, you have > to read the code and ascertain it would be set early enough in init for your > purposes), and also unnecessary because you are either in HS2 or not - global > flag should suffice -- This message was sent by Atlassian JIRA (v6.3.4#6332)