Apache ZooKeeper

24 / 48

Zookeeper - Create a znode

Please follow the following steps to create a znode:

1.Login to CloudxLab.

2.Launch Zookeeper client:

zookeeper-client

or you can use zkCli instead. zkCli is a new client from zookeeper. The same commands can be used with this client.

/usr/hdp/current/zookeeper-client/bin/zkCli.sh

3.Check if /cloudxlab exists using:

get /cloudxlab

If not, create it using the following command:

create /cloudxlab "mydata"

4.Create you znode inside /cloudxlab using the following command:

create /cloudxlab/<<YourUserName>> "AHA!"

If your username is john1234, the command will look like:

create /cloudxlab/john1234 "AHA!"

5.Check if it is created correctly using:

get /cloudxlab/<<YourUsername>>

No hints are availble for this assesment

Answer is not availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...