import org.apache.accumulo.core.zookeeper.ZooUtil.NodeExistsPolicy;
import org.apache.zookeeper.KeeperException;
public class TablePropUtil {
public static boolean setTableProperty(String tableId, String property, String value) throws KeeperException, InterruptedException {
Property p = Property.getPropertyByKey(property);
if ((p != null && !p.getType().isValidFormat(value)) || !Property.isValidTablePropertyKey(property))
return false;
// create the zk node for per-table properties for this table if it doesn't already exist
String zkTablePath = getTablePath(tableId);
ZooUtil.putPersistentData(zkTablePath, new byte[0], NodeExistsPolicy.SKIP);