private void removeInvalidSchemaDir(String database, SchemaRegionId schemaRegionId) {
    String systemSchemaDir =
        config.getSystemDir() + File.separator + database + File.separator + schemaRegionId.getId();
    removeDir(new File(systemSchemaDir));
  }
Register this DataNode into cluster.

@param isPreCheck do pre-check before formal registration
@throws StartupException if register failed.
@throws IOException if serialize cluster name and datanode id failed.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java