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

CREATE TEMPORARY FUNCTION fails when Hive warehouse is on hdfs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: