public DataNodeConfigurationResp getDataNodeConfiguration(GetDataNodeConfigurationPlan req) {
    try {
      return (DataNodeConfigurationResp) getConsensusManager().read(req);
    } catch (ConsensusException e) {
      LOGGER.warn("Failed in the read API executing the consensus layer due to: ", e);
      TSStatus res = new TSStatus(TSStatusCode.EXECUTE_STATEMENT_ERROR.getStatusCode());
      res.setMessage(e.getMessage());
      DataNodeConfigurationResp response = new DataNodeConfigurationResp();
      response.setStatus(res);
      return response;
    }
  }
Get TDataNodeConfiguration.

@param req GetDataNodeConfigurationPlan
@return The specific DataNode's configuration or all DataNodes' configuration if dataNodeId in
    GetDataNodeConfigurationPlan is -1
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/node/NodeManager.java