public static void updatePersistentPath(final ZkClient client, final String path, final String data)
            throws Exception {
        try {
            client.writeData(path, data);
        }
        catch (final ZkNoNodeException e) {
            createParentPath(client, path);
            client.createPersistent(path, data);
        }
        catch (final Exception e) {
            throw e;
        }
    }
Update the value of a persistent node with the given path and data.
create parrent directory if necessary. Never throw NodeExistException.
metamorphosis-commons/src/main/java/com/taobao/metamorphosis/utils/ZkUtils.java