You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2023/12/21 19:40:00 UTC
[jira] [Resolved] (HIVE-25803) URL Mapping appends default Fs scheme even for LOCAL DIRECTORY ops
[ https://issues.apache.org/jira/browse/HIVE-25803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ayush Saxena resolved HIVE-25803.
---------------------------------
Fix Version/s: 4.1.0
Assignee: Ayush Saxena (was: Sai Hemanth Gantasala)
Resolution: Fixed
> URL Mapping appends default Fs scheme even for LOCAL DIRECTORY ops
> ------------------------------------------------------------------
>
> Key: HIVE-25803
> URL: https://issues.apache.org/jira/browse/HIVE-25803
> Project: Hive
> Issue Type: Bug
> Components: Authorization, HiveServer2
> Affects Versions: 4.0.0
> Reporter: Soumitra Sulav
> Assignee: Ayush Saxena
> Priority: Critical
> Labels: pull-request-available
> Fix For: 4.1.0
>
>
> Repro steps:
> Connect to beeline
> {code:java}
> beeline -u "jdbc:hive2://quasar-pxlypi-2.quasar-pxlypi.root.hwx.site:10001/;principal=hive/_HOST@ROOT.HWX.SITE;ssl=true;sslTrustStore=/var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_truststore.jks;trustStorePassword=VOAnRk5l4oXsg0upJ1ApscSuNksirOKgyhJvoPv2o4j;transportMode=http;httpPath=cliservice;"
> {code}
>
> Create a test table and run insert on local
> {code:java}
> > create table dual (id int);
> > insert overwrite local directory "/tmp/" select * from dual;
> {code}
> {code:java}
> Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [hrt_qa] does not have [ALL] privilege on [hdfs://ns1/tmp] (state=42000,code=40000)
> {code}
> It always appends hdfs:// to the path even if the operation is meant for local directory.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)