hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <>
Subject [jira] [Commented] (HIVE-21489) explain command throw ClassCastException in 2.3.4
Date Tue, 16 Apr 2019 17:45:00 GMT


Daniel Dai commented on HIVE-21489:

[~Ping Lu], the patch would fix the issue of explain when DefaultHiveAuthorizationProvider
is configured. However, DefaultHiveAuthorizationProvider is deprecated and you shall go with
SQLStdHiveAuthorizerFactory (set
If you have to use DefaultHiveAuthorizationProvider, you can apply the patch and rebuild.
But I won't commit the patch to master as we intend to remove DefaultHiveAuthorizationProvider
in future.

> explain command throw ClassCastException in 2.3.4
> -------------------------------------------------
>                 Key: HIVE-21489
>                 URL:
>             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) is set to true, and
is set to
> 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 to true,the explain command can be successfully executed。
> Now,I have one question,due to cann't be modified at to run
explain command with using default authorization in hive-2.3.4,

This message was sent by Atlassian JIRA

View raw message