@Override
  public LocationIdProvider getLocationIdProvider(Config config) {
    return ()  -> new LocationId(Util.getLocalHost().getHostName());
  }
Uses the address of the local host for generating {@link LocationId}.
samza-core/src/main/java/org/apache/samza/runtime/DefaultLocationIdProviderFactory.java