okumin commented on code in PR #4731:
URL: https://github.com/apache/hive/pull/4731#discussion_r1341961252


##########
ql/src/java/org/apache/hadoop/hive/ql/processors/SetProcessor.java:
##########
@@ -255,6 +256,10 @@ public Map<String, String> getHiveVariable() {
       }
     }
     conf.verifyAndSet(key, value);
+    if (conf.isLockedConfig(key)) {
+      console.printWarn("Cannot modify " + key + " at runtime. "
+              + "It is in the list of locked configurations that can't be 
modified at runtime");

Review Comment:
   I verified I could see this message via Beeline.
   
   ```
   0: jdbc:hive2://hive-hiveserver2:10000/defaul> set hive.conf.locked.list;
   +----------------------------------------------+
   |                     set                      |
   +----------------------------------------------+
   | hive.conf.locked.list=hive.execution.engine  |
   +----------------------------------------------+
   1 row selected (0.066 seconds)
   0: jdbc:hive2://hive-hiveserver2:10000/defaul> set hive.execution.engine=mr;
   WARN  : Cannot modify hive.execution.engine at runtime. It is in the list of 
locked configurations that can't be modified at runtime
   ```



-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to