How to create Children or Sub-znode in zookeeper?

0 votes

Hi,

Can any tell me how can I create sun-znode in zookeeper?

May 27 in Big Data Hadoop by Nisha

edited May 27 by Gitika 44 views

1 answer to this question.

0 votes

Hey,

Creating children is similar to creating new znodes. The only difference is that the path of the child znode will have the parent path as well.

Syntax:-

create /parent/path/subnode/path /data

Sample:-

create /FirstZnode/Child1 firstchildren

Output:-

[zk: localhost:2181(CONNECTED) 16] create /FirstZnode/Child1 “firstchildren”
created /FirstZnode/Child1
[zk: localhost:2181(CONNECTED) 17] create /FirstZnode/Child2 “secondchildren”
created /FirstZnode/Child2

answered May 27 by Gitika
• 25,340 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How to create an Ephemeral Znode in zookeeper?

Hey, To create an Ephemeral Znode, add -e flag as shown ...READ MORE

answered May 27 in Big Data Hadoop by Gitika
• 25,340 points
32 views
0 votes
1 answer

How to remove a Znode in Zookeeper?

Hey, Removes a specified znode and recursively all ...READ MORE

answered May 28 in Big Data Hadoop by Gitika
• 25,340 points
69 views
0 votes
1 answer

How to create a project for the first time in Hadoop.?

If you want to learn Hadoop framework ...READ MORE

answered Jul 26, 2018 in Big Data Hadoop by Neha
• 6,280 points
70 views
0 votes
1 answer

How to create smaller table from big table in HIVE?

You could probably best use Hive's built-in sampling ...READ MORE

answered Sep 24, 2018 in Big Data Hadoop by digger
• 26,550 points
153 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,670 points
2,739 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,670 points
289 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
13,573 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
995 views
0 votes
1 answer

How to create znode in zookeeper?

Hey, Create a znode with the given path. The flag argument ...READ MORE

answered May 27 in Big Data Hadoop by Gitika
• 25,340 points
80 views
0 votes
1 answer

How to create sequential znode in zookeeper?

Hey, To create a Sequential znode, add -s flag as shown ...READ MORE

answered May 27 in Big Data Hadoop by Gitika
• 25,340 points
59 views