private boolean isUsingPipeConsensus() {
    return config.getDataRegionConsensusProtocolClass().equals(ConsensusFactory.IOT_CONSENSUS_V2);
  }
Generate dataNodeConfiguration. Warning: Don't private this method !!!

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