[ 
https://issues.apache.org/jira/browse/HIVE-25947?focusedWorklogId=726941&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-726941
 ]

ASF GitHub Bot logged work on HIVE-25947:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Feb/22 10:19
            Start Date: 15/Feb/22 10:19
    Worklog Time Spent: 10m 
      Work Description: zabetak commented on a change in pull request #3027:
URL: https://github.com/apache/hive/pull/3027#discussion_r806672446



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java
##########
@@ -22,16 +22,29 @@
 import org.apache.hadoop.hive.metastore.api.Table;
 import org.apache.hadoop.hive.metastore.txn.CompactionInfo;
 
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.ForkJoinPool;
 import java.util.concurrent.ForkJoinWorkerThread;
+import java.util.function.Function;
 
 import static java.lang.String.format;
 
 public class CompactorUtil {
   public static final String COMPACTOR = "compactor";
-  static final String COMPACTOR_PREFIX = "compactor.";
-  static final String MAPRED_QUEUE_NAME = "mapred.job.queue.name";
+  /**
+   * List of accepted properties for defining the compactor's job queue.
+   * 
+   * The order is important and defines which property has precedence over the 
other if multiple properties are defined
+   * at the same time.
+   */
+  private static final List<String> QUEUE_PROPERTIES = Arrays.asList(

Review comment:
       They are MR specific properties so they are not in `HiveConf`. Moreover, 
I am not sure if we want these to change transparently during a refactoring 
cause that will probably create backward compatibility problems. What exactly 
do you have in mind?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 726941)
    Time Spent: 50m  (was: 40m)

> Compactor job queue cannot be set per table via 
> compactor.mapred.job.queue.name
> -------------------------------------------------------------------------------
>
>                 Key: HIVE-25947
>                 URL: https://issues.apache.org/jira/browse/HIVE-25947
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>            Reporter: Stamatis Zampetakis
>            Assignee: Stamatis Zampetakis
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> 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. 
> {code:sql}
> 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')
> {code}
> 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}}.
> {code:sql}
> 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')
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to