public TDataNodeLocation generateLocalDataNodeLocation() {
    TDataNodeLocation result = new TDataNodeLocation();
    result.setDataNodeId(getDataNodeId());
    result.setClientRpcEndPoint(new TEndPoint(getInternalAddress(), getRpcPort()));
    result.setInternalEndPoint(new TEndPoint(getInternalAddress(), getInternalPort()));
    result.setMPPDataExchangeEndPoint(
        new TEndPoint(getInternalAddress(), getMppDataExchangePort()));
    result.setDataRegionConsensusEndPoint(
        new TEndPoint(getInternalAddress(), getDataRegionConsensusPort()));
    result.setSchemaRegionConsensusEndPoint(
        new TEndPoint(getInternalAddress(), getSchemaRegionConsensusPort()));
    return result;
  }
if the folders are relative paths, add IOTDB_DATA_HOME as the path prefix
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java