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

SQL standard auth with cli - Errors and configuration issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • Authorization
    • None

    Description

      HIVE-7533 enabled sql std authorization to be set in hive cli (without enabling authorization checks). This updates hive configuration so that create-table and create-views set permissions appropriately for the owner of the table.
      HIVE-7209 added a metastore authorization provider that can be used to restricts calls made to the authorization api, so that only HS2 can make those calls (when HS2 uses embedded metastore).

      Some issues were found with this.

      1. Even if hive.security.authorization.enabled=false, authorization checks were happening for non sql statements as add/detete/dfs/compile, which results in MetaStoreAuthzAPIAuthorizerEmbedOnly throwing an error.
      2. Create table from hive-cli ended up calling metastore server api call (getRoles) and resulted in MetaStoreAuthzAPIAuthorizerEmbedOnly throwing an error.
      3. Some users prefer to enable authorization using hive-site.xml for hive-server2 (hive.security.authorization.enabled param). If this file is shared by hive-cli and hive-server2, SQL std authorizer throws an error because is use in hive-cli is not allowed.

      Attachments

        1. HIVE-8045.1.patch
          59 kB
          Thejas Nair
        2. HIVE-8045.2.patch
          29 kB
          Thejas Nair
        3. HIVE-8045.3.patch
          31 kB
          Thejas Nair

        Issue Links

          Activity

            People

              thejas Thejas Nair
              jvaria Jagruti Varia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: