@Deprecated
  public static void updateExistingNodeData(ZKWatcher zkw, String znode, byte[] data,
    int expectedVersion) throws KeeperException {
    try {
      zkw.getRecoverableZooKeeper().setData(znode, data, expectedVersion);
    } catch (InterruptedException ie) {
      zkw.interruptedException(ie);
    }
  }
Update the data of an existing node with the expected version to have the specified data.
Throws an exception if there is a version mismatch or some other problem. Sets no watches under
any conditions.
@param zkw             zk reference
@param znode           the path to the ZNode
@param data            the data to store in ZooKeeper
@param expectedVersion the expected version
@throws KeeperException                     if unexpected zookeeper exception
@throws KeeperException.BadVersionException if version mismatch
@deprecated Unused
hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java