55565758596061626364656667
try { BlockId id = block.getId(); IContainer c = fs.getContainer(id.getContainerId()); DataSegment seg = (DataSegment) c.getSegment(id.getSegmentId()); seg.writeBlock(block); } catch (Exception e) { throw new RuntimeException(e); }