Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left

  Apply Now

Apache ZooKeeper

25 / 48

Zookeeper - Create an ephemeral znode

Please follow the following steps to create an emphermal znode:

  1. Login to CloudxLab
  2. Launch Zookeeper client: zookeeper-client
  3. Check if the znode /cloudxlab exists using:

    get /cloudxlab
    

    If not, create it using the following command:

    create /cloudxlab "mydata"
    
  4. Check if a znode with your username exists, using:

    get /cloudxlab/<<YourUsername>>
    

    If not, create your znode inside /cloudxlab using the following command:

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

    For example, if your username is john1234, the command will look like:

    create /cloudxlab/john1234 "AHA!"
    

    Now check if it is correctly created using:

    get /cloudxlab/<<YourUsername>>
    
  5. Create an ephemeral znode with name "aneph" inside node created in previous exercise using the following command: create -e /cloudxlab/<<YourUsername>>/aneph 'online-session' If your username is john1234, the command will look like: create -e /cloudxlab/john1234/aneph 'online-session'

  6. Check if it is created correctly using a commands like:

      (1) ls /cloudxlab/john1234
    
      (2) get /cloudxlab/john1234/aneph
    

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...