Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-25803

URL Mapping appends default Fs scheme even for LOCAL DIRECTORY ops

    XMLWordPrintableJSON

Details

    Description

      Repro steps:

      Connect to beeline

      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;"
      

      Create a test table and run insert on local

      > create table dual (id int); 
      > insert overwrite local directory "/tmp/" select * from dual;
      
      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)
      

      It always appends hdfs:// to the path even if the operation is meant for local directory.

      Attachments

        Issue Links

          Activity

            People

              ayushtkn Ayush Saxena
              ssulav Soumitra Sulav
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: