public static boolean writeSpecWithoutOverwriting( FileSystem clusterFS, Path clusterSpecPath, ClusterDescription clusterSpec) { try { clusterSpec.save(clusterFS, clusterSpecPath, false); } catch (IOException e) { log.debug("Failed to save cluster specification -race condition? " + e, e); return false; } return true; }