You could use `hiveMetaStoreUri.getAuthority()` instead of adding the host and port separately.