public static boolean checkConfigurationChange(Configuration oldConfig, Configuration newConfig,
    String... configurationKey) {
    Preconditions.checkArgument(configurationKey != null, "Configuration Key(s) must be provided");
    boolean isConfigurationChange = false;
    for (String key : configurationKey) {
      String oldValue = oldConfig.get(key);
      String newValue = newConfig.get(key);
      // check if the coprocessor key has any difference
      if (!StringUtils.equalsIgnoreCase(oldValue, newValue)) {
        isConfigurationChange = true;
        break;
      }
    }
    return isConfigurationChange;
  }
Helper class for coprocessor host when configuration changes.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/CoprocessorConfigurationUtil.java