public static void createEphemeralPath(final ZkClient client, final String path, final String data)
            throws Exception {
        try {
            client.createEphemeral(path, data);
        }
        catch (final ZkNoNodeException e) {
            createParentPath(client, path);
            client.createEphemeral(path, data);
        }
    }
Create an ephemeral node with the given path and data. Create parents if
necessary.
metamorphosis-commons/src/main/java/com/taobao/metamorphosis/utils/ZkUtils.java