public void addToLockedSet(String lockedListStr) {
    String oldList = this.getVar(ConfVars.HIVE_CONF_LOCKED_LIST);
    if (oldList == null || oldList.isEmpty()) {
      this.setVar(ConfVars.HIVE_CONF_LOCKED_LIST, lockedListStr);
    } else {
      this.setVar(ConfVars.HIVE_CONF_LOCKED_LIST, oldList + "," + lockedListStr);
    }
    String modifiedLockedSet = this.getVar(ConfVars.HIVE_CONF_LOCKED_LIST);
    lockedSet.clear();
    if (modifiedLockedSet != null) {
      for (String entry : modifiedLockedSet.split(",")) {
        lockedSet.add(entry.trim());
      }
    }
  }
Append comma separated list of config vars to the restrict List
@param restrictListStr
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java