You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ramesh Kumar Thangarajan (Jira)" <ji...@apache.org> on 2021/06/07 21:44:00 UTC

[jira] [Commented] (HIVE-21489) EXPLAIN command throws ClassCastException in Hive

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

Ramesh Kumar Thangarajan commented on HIVE-21489:
-------------------------------------------------

[~daijy] This issue can still be reproduced if it is Storage based Authorization and it will be better if we can fix this. The above patch seems to be reasonable for me. 

cc [~hashutosh] [~thejas]

> EXPLAIN command throws ClassCastException in Hive
> -------------------------------------------------
>
>                 Key: HIVE-21489
>                 URL: https://issues.apache.org/jira/browse/HIVE-21489
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 2.3.4
>            Reporter: Ping Lu
>            Assignee: Daniel Dai
>            Priority: Major
>         Attachments: HIVE-21489.1.patch, HIVE-21489.2.patch
>
>
> I'm trying to run commands like explain select * from src in hive-2.3.4,but it falls with the ClassCastException: org.apache.hadoop.hive.ql.parse.ExplainSemanticAnalyzer cannot be cast to org.apache.hadoop.hive.ql.parse.SemanticAnalyzer
> Steps to reproduce:
> 1)hive.execution.engine is the default value mr
> 2)hive.security.authorization.enabled is set to true, and hive.security.authorization.manager is set to org.apache.hadoop.hive.ql.security.authorization.DefaultHiveAuthorizationProvider
> 3)start hivecli to run command:explain select * from src
> I debug the code and find the issue HIVE-18778 causing the above ClassCastException.If I set hive.in.test to true,the explain command can be successfully executed。
> Now,I have one question,due to hive.in.test cann't be modified at runtime.how to run explain command with using default authorization in hive-2.3.4,



--
This message was sent by Atlassian Jira
(v8.3.4#803005)