private boolean processInvalidParameterException(Exception e) {
    if (e instanceof UniformInterfaceException) {
      return true;
    }
    if (!(e instanceof AtlasServiceException)) {
      return false;
    }
    if (e.getMessage() == null) {
      return false;
    }
    return (e.getMessage().contains(ERROR_MESSAGE_NO_ENTITIES)
            || e.getMessage().contains(ATLAS_ERROR_CODE_IMPORT_EMPTY_ZIP));
  }
Implement retry logic for service calls.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/atlas/RetryingClientTimeBased.java