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

Compactor job queue cannot be set per table via compactor.mapred.job.queue.name

    XMLWordPrintableJSON

Details

    Description

      Before HIVE-20723 it was possible to schedule the compaction for each table on specific job queues by putting compactor.mapred.job.queue.name in the table properties.

      CREATE TABLE person (name STRING, age INT) STORED AS ORC TBLPROPERTIES(
      'transactional'='true',
      'compactor.mapred.job.queue.name'='root.user2);
      
      ALTER TABLE person COMPACT 'major' WITH OVERWRITE TBLPROPERTIES('compactor.mapred.job.queue.name'='root.user2')
      

      This is no longer possible (after HIVE-20723) and in order to achieve the same effect someone needs to use the compactor.hive.compactor.job.queue.

      CREATE TABLE person (name STRING, age INT) STORED AS ORC TBLPROPERTIES(
      'transactional'='true',
      'compactor.hive.compactor.job.queue'='root.user2);
      
      ALTER TABLE person COMPACT 'major' WITH OVERWRITE TBLPROPERTIES('compactor.hive.compactor.job.queue'='root.user2')
      

      Attachments

        Issue Links

          Activity

            People

              zabetak Stamatis Zampetakis
              zabetak Stamatis Zampetakis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h