Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3451

Audits are not being generated for Hive "Alter table add constraint" commands

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Ranger
    • None

    Description

      Audits are not being generated for Hive "Alter table add constraint" commands.
      But audits are being generated for other "Alter table" commands.

      Steps to reproduce :-

      1. Create a policy in Hadoop SQL repo for hrt_qa user:-
        database-*, table - *, column - *, and allow all access to hrt_qa user.
      2. In beeline, run the following commands
      Drop table if exists hr;
      Create table hr(c0 int);
      ALTER TABLE hr SET TBLPROPERTIES ('notes'="Please don't drop this table.");
      ALTER TABLE hr ADD CONSTRAINT unique_key_const UNIQUE (c0) DISABLE NOVALIDATE;

      In Ranger Admin, audits are generated for the first 3 commands, but audits are not generated for the fourth command.

      Attachments

        Issue Links

          Activity

            People

              siddhant_sontakke Siddhant Sontakke
              abhishek.patil Abhishek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: