Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 50951 invoked from network); 7 Oct 2010 15:35:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Oct 2010 15:35:57 -0000 Received: (qmail 1899 invoked by uid 500); 7 Oct 2010 15:35:56 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 1370 invoked by uid 500); 7 Oct 2010 15:35:55 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 1362 invoked by uid 99); 7 Oct 2010 15:35:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Oct 2010 15:35:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.97.132.74] (HELO homiemail-a60.g.dreamhost.com) (208.97.132.74) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Oct 2010 15:35:49 +0000 Received: from homiemail-a60.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a60.g.dreamhost.com (Postfix) with ESMTP id 8C3843BC072 for ; Thu, 7 Oct 2010 08:35:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=darose.net; h=message-id:date :from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=darose.net; b= 3VeC40/gkja/8sf4RLYOkoOmfVu+JJ6Cv/t9m14dABoYwkTrkXi7tqzV6C93VceF dsFZxG+uCfC6KBTZagFpFU5LXtd9y7OPlHLH8lc/+UL4JNcpNiWqKE2dzFRR/M67 FA7zI+hCPeMEhX9RnzwMovala6yFwIXW+FtUTMVuV5Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=darose.net; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; s=darose.net; bh=NB2UKc 1eOjkjTUGcOTYUASU0Rp8=; b=VCdNBlGvAqSBVWXx2kQ4n92KoUjtzFUcXhL59w kDQnY/6rALuqjcbCS/vFRthiWikHPoAkyZ1Zd/fXbmkDINRcDdbYKqxiSdopJSOb lsDY52F9i8Gm7774JztIJJV3gKkX24FJxKw+Q8itMC5RP745c9vlJAHqfY8kEOh5 +gJlw= Received: from darsys12 (cpe-66-108-142-190.nyc.res.rr.com [66.108.142.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: darose@darose.net) by homiemail-a60.g.dreamhost.com (Postfix) with ESMTPSA id 74D273BC06E for ; Thu, 7 Oct 2010 08:35:28 -0700 (PDT) Received: from [10.1.0.2] by darsys12 with esmtp (Exim 4.72) (envelope-from ) id 1P3sVB-0003iu-Jk for zookeeper-user@hadoop.apache.org; Thu, 07 Oct 2010 11:35:25 -0400 Message-ID: <4CADE8C4.9080805@darose.net> Date: Thu, 07 Oct 2010 11:35:32 -0400 From: David Rosenstrauch User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100928 Lanikai/3.1.4 MIME-Version: 1.0 To: zookeeper-user@hadoop.apache.org Subject: Re: Create node with ancestors? References: <4CABA4B5.8040700@darose.net> In-Reply-To: <4CABA4B5.8040700@darose.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 10/05/2010 06:20 PM, David Rosenstrauch wrote: > The ZK "create" method explicitly states in the documentation "If the > parent node does not exist in the ZooKeeper, a KeeperException with > error code KeeperException.NoNode will be thrown." ( > (http://hadoop.apache.org/zookeeper/docs/current/api/org/apache/zookeeper/ZooKeeper.html#create%28java.lang.String,%20byte[],%20java.util.List,%20org.apache.zookeeper.CreateMode%29)) > As a result, there doesn't appear to be any one single method call that > can create a node, along with any missing parent nodes. This would be an > incredibly useful API call, though, akin to HDFS' "mkdirs" method call. > (http://hadoop.apache.org/common/docs/r0.20.1/api/org/apache/hadoop/fs/FileSystem.html#mkdirs%28org.apache.hadoop.fs.Path%29) > > > Anybody know if there's a call like this available somewhere in the ZK API? > > Thanks, > > DR I guess that's a no. :-( DR