Path policyPath = new Path(path, POLICY_FILE_NAME);
Configuration config = new Configuration();
FileSystem fs = FileSystem.get(policyPath.toUri(), config);
SequenceFile.Writer writer = new SequenceFile.Writer(fs, config, policyPath, Text.class,
ClusteringPolicyWritable.class);
writer.append(new Text(), new ClusteringPolicyWritable(policy));
writer.close();
}