private List<String> diff(final List<String> list1, final List<String> list2) {
    List<String> diffList = new ArrayList<>();

    if (list2 == null || list2.size() == 0) {
      return list1;
    }

    if (list1 == null || list1.size() == 0) {
      return Collections.emptyList();
    }

    if (list2.containsAll(list1)) {
      return Collections.emptyList();
    }

    diffList.addAll(list2);
    LOG.debug("diffList=" + Arrays.toString(diffList.toArray()) + ",master list=" + Arrays.toString(list1.toArray()));
    if (diffList.retainAll(list1)) {
      LOG.debug("diffList=" + Arrays.toString(diffList.toArray()));
      if (diffList.size() == list1.size()) { // lists match
        return Collections.emptyList(); // return empty list indicating no missing elements
      } else {
        list1.removeAll(diffList);
        LOG.debug("list1.size():" + list1.size());
        return list1;
      }
    } else {
      list1.removeAll(diffList);
      LOG.debug("diff returning " + Arrays.toString(diffList.toArray()) + ",full list=" + Arrays.toString(list1.toArray()));
      return list1;
    }
  }
Alter location of the database depending on whether or not the processor has ACID capabilities.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java