| 1. |
How Can We Create Znodes? |
|
Answer» Create a znode with the given PATH. The flag argument specifies whether the created znode will be ephemeral, persistent, or sequential. By default, all znodes are persistent.
If no flags are specified, then the znode is considered as persistent. create /path /data To create a Sequential znode, add -s flag as shown below. create -s /path /data To create an Ephemeral Znode, add -e flag as shown below. create -e /path /data Create a znode with the given path. The flag argument specifies whether the created znode will be ephemeral, persistent, or sequential. By default, all znodes are persistent. If no flags are specified, then the znode is considered as persistent. create /path /data To create a Sequential znode, add -s flag as shown below. create -s /path /data To create an Ephemeral Znode, add -e flag as shown below. create -e /path /data |
|