You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Patrick Hunt <ph...@apache.org> on 2013/11/05 00:30:07 UTC

Re: How to create parent znodes and its children znodes through zkconsole?

I'm afraid we can't see your images. (likely the ML is stripping it?)

When you create a new service you should see "/" znode. "/zookeeper"
is special and exists for the system to provide you information.

You can create "/foo" and children of "/foo" such as "/foo/bar" or
just create "/bar", it's up to you. Perhaps I'm misunderstanding given
I can't see the images to which you refer.

I'm not sure the question you need answered, perhaps you can rephrase?

Regards,

Patrick

On Tue, Oct 29, 2013 at 8:47 AM, Techy Teck <co...@gmail.com> wrote:
> Can anyone help me on this question? Thanks for the help..
>
>
> On Mon, Oct 28, 2013 at 8:53 PM, Techy Teck <co...@gmail.com> wrote:
>
>> Attaching an image on this email thread, if image is not clear on my
>> earlier email..
>>
>>
>> On Mon, Oct 28, 2013 at 8:49 PM, Techy Teck <co...@gmail.com>wrote:
>>
>>> I recently started working with Zookeeper so I am trying to clear my
>>> understanding on znodes and zookeeper as well.. I am trying to create znode
>>> architecture something like in my below image -
>>>
>>>
>>>
>>>
>>>
>>> I am wondering what does black color slash means here? It's the top znode
>>> in the Zookeeper? Whenever I start the zkConsole, and I do `ls /`, I always
>>> see [zookeeper] in the list of znodes.. So this black color slash is the
>>> zookeeper node here, which I always get when I do `ls /` ?
>>>
>>> Secondly, when we create znodes, how do I create persistent znodes?
>>> something like this should be fine for creating persistent nodes -
>>>
>>>     create /te
>>>
>>> And here in my diagram I have children of `te` as `v1` and `colo`, so I
>>> will be creating znodes as `/te/v1` and `/te/colo`? If yes, then why not,
>>> we can create znodes as `/v1` and `/colo`, why we always prepend the parent
>>> names with child nodes here?sx
>>>
>>> Sorry if I am asking dumb question here.. I have already read zookeeper
>>> tutorial so I got some basic question on it.. Any help will be appreciated
>>> on this.. Thanks..
>>>
>>
>>