public static void writeTableMeta(Configuration conf, Path tableroot, TableMeta meta) throws IOException { FileSystem fs = tableroot.getFileSystem(conf); FSDataOutputStream out = fs.create(new Path(tableroot, ".meta")); FileUtil.writeProto(out, meta.getProto()); out.flush(); out.close(); }