public void writeProperties(File to, StorageDirectory sd) throws IOException { if (to == null) { return; } Properties props = new Properties(); setPropertiesFromFields(props, sd); writeProperties(to, props); }
/** * Write version file into the storage directory. * * The version file should always be written last. * Missing or corrupted version file indicates that * the checkpoint is not valid. * * @param sd storage directory * @throws IOException */ @Override // Storage protected void setPropertiesFromFields(Properties props, StorageDirectory sd) throws IOException { super.setPropertiesFromFields(props, sd); // Set blockpoolID in version with federation support if (NameNodeLayoutVersion.supports( LayoutVersion.Feature.FEDERATION, getLayoutVersion())) { props.setProperty("blockpoolID", blockpoolID); } }
public void writeProperties(File to, StorageDirectory sd) throws IOException { Properties props = new Properties(); setPropertiesFromFields(props, sd); writeProperties(to, sd, props); }
public void writeProperties(File to, StorageDirectory sd) throws IOException { Properties props = new Properties(); setPropertiesFromFields(props, sd); writeProperties(to, sd, props); }
/** * Write version file into the storage directory. * * The version file should always be written last. * Missing or corrupted version file indicates that * the checkpoint is not valid. * * @param sd storage directory * @throws IOException */ @Override // Storage protected void setPropertiesFromFields(Properties props, StorageDirectory sd ) throws IOException { super.setPropertiesFromFields(props, sd); // Set blockpoolID in version with federation support if (NameNodeLayoutVersion.supports( LayoutVersion.Feature.FEDERATION, getLayoutVersion())) { props.setProperty("blockpoolID", blockpoolID); } }
/** * Write version file into the storage directory. * * The version file should always be written last. * Missing or corrupted version file indicates that * the checkpoint is not valid. * * @param sd storage directory * @throws IOException */ @Override // Storage protected void setPropertiesFromFields(Properties props, StorageDirectory sd ) throws IOException { super.setPropertiesFromFields(props, sd); // Set blockpoolID in version with federation support if (NameNodeLayoutVersion.supports( LayoutVersion.Feature.FEDERATION, getLayoutVersion())) { props.setProperty("blockpoolID", blockpoolID); } }