Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-23

CREATE TEMPORARY FUNCTION fails when Hive warehouse is on hdfs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Command :

      CREATE TEMPORARY FUNCTION printf_test AS 'org.apache.hadoop.hive.ql.udf.generic.GenericUDFPrintf'
      

      Error in HS2 logs:

      FilePermission server=server1->uri=file://${user.home}/.m2, RequestPermission Server=server1->URI=hdfs://localhost:56494/Users/sravya/.m2/repository/org/apache/hive/hive-exec/0.10.0-cdh4.4.0/hive-exec-0.10.0-cdh4.4.0.jar->action=select, result false 
      

      There is a test case for this (TestPrivilegesAtFunctionScope#testFuncPrivileges1()) in sentry-hive end to end tests, but it did not surface this bug as the test is using local file system for Hive warehouse.

        Attachments

        1. SENTRY-23.patch
          0.9 kB
          Sravya Tirukkovalur

          Issue Links

            Activity

              People

              • Assignee:
                sravya Sravya Tirukkovalur
                Reporter:
                sravya Sravya Tirukkovalur
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: