public TDataNodeConfiguration generateDataNodeConfiguration() {
    // Set DataNodeLocation
    TDataNodeLocation location = generateDataNodeLocation();

    // Set NodeResource
    TNodeResource resource = new TNodeResource();
    resource.setCpuCoreNum(Runtime.getRuntime().availableProcessors());
    resource.setMaxMemory(Runtime.getRuntime().totalMemory());

    return new TDataNodeConfiguration(location, resource);
  }
Generate dataNodeConfiguration. Warning: Don't private this method !!!

@return TDataNodeConfiguration
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java