Wednesday, July 15, 2015

Zookeper Installation

Hello friends let us look at the basic installation of the Zookeeper
  1. First download the package from Zookeeper site(link here)
  2. Extract the package anywhere.
  3. tar zxvf zookeeper-3.4.6.tar.gz
  4. cd zookeeper-3.4.6/conf/ 
  5. We are assuming that the data folder is /etc/analytics/data and is present.
  6. tickTime=2000
    #have to specifly all the servers with id (server.<id>) format
  7. Now the id of the current machine is decided by the text file content specified at /etc/analytics/data.  Name of that file is myid with content 1, that's it
  8. Now start the zookeeper process.
  9. To start the server use the following
    - bin/ start
  10. To start the client in order to check the things gone perfectly or not use this:
    - bin/ -server <ip>:2181
  11. To check the installation to be correct or not
  12. Connect to any of the zookeeper client
    [zkshell: 9] create /zk_test my_data
    Created /zk_test
  13. And check whether it is being created in other nodes or not :
    [zkshell: 12] get /zk_testmy_datacZxid = 5ctime = Fri Jun 05 13:57:06 PDT 2009mZxid = 5mtime = Fri Jun 05 13:57:06 PDT 2009pZxid = 5cversion = 0dataVersion = 0aclVersion = 0ephemeralOwner = 0dataLength = 7numChildren = 0
  14. If this is the output then  installation is perfect

No comments:

Post a Comment