class ZookeeperClient implements AutoCloseable {

  public void create(final String path) {
    Preconditions.checkNotNull(path, "path is required");

    final String target = PathUtils.join(root, path);
    try {
      curator.create().withMode(mode).forPath(target);
      getCache().rebuildNode(target);
    } catch (final Exception e) {
      throw new DrillRuntimeException("unable to put ", e);
    }
  }

  public  ZookeeperClient(final CuratorFramework curator, final String root, final CreateMode mode);

}