Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2738

Hive/Impala inconsistency in GRANT syntax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 2.3.0
    • Impala 2.6.0
    • Frontend

    Description

      There is an inconsistency between Hive and Impala when it comes to Sentry's "GRANT ALL ON SERVER" statement:

      [localhost.localdomain:21000] > GRANT ALL ON SERVER server1 TO ROLE etl;
      Query: grant ALL ON SERVER server1 TO ROLE etl
      ERROR: AnalysisException: Syntax error in line 1:
      grant ALL ON SERVER server1 TO ROLE etl
                          ^
      Encountered: IDENTIFIER
      Expected: FROM, TO
      
      CAUSED BY: Exception: Syntax error
      
      [localhost.localdomain:21000] >
      

      The following is equivalent:
      *Hive
      GRANT ALL ON SERVER server1 TO ROLE <role>;
      REVOKE ALL ON SERVER server1 FROM ROLE <role>;
      *Impala
      GRANT ALL ON SERVER TO ROLE <role>;
      REVOKE ALL ON SERVER FROM ROLE <role>;

      Attachments

        Activity

          People

            twmarshall Thomas Tauber-Marshall
            mdominguez@cloudera.com Mariano Dominguez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: