zookeeper learning environment to build

 I learned a zookeeper for some time to write a blog about it. . .

 First, what zookeeper that?

        zookeeper is an efficient coordination of distributed services, it exposes some public services, such as naming / configuration management / synchronization control / control group. Zk we can use to achieve consensus, cluster management, lender elections.

       zookeeper is a highly available distributed management and coordination framework ZAB Based Algorithm (atoms message broadcast protocol). The framework can well ensure the consistency of data in distributed environments. It is based on the characteristics that zookeeper become an effective tool to solve the distributed consensus.

Second, the installation zookeeper

          Premise installation zookeeper to be installed jdk.

        1, the package zookeeper's put linux environment

      2, create a folder zookeeper in the local directory

     3, the installation package to extract zookeeper zookeeper folder

      4, the zookeeper conf files in the installation directory folder zoo_sample.cfg renamed zoo.xfg

       5, using the vi zoo.cfg edit the file contents zoo.cfg

           6, in the zookeeper installation directory create the folder data, and create files in the folder myid

           7, edit myid file, according to previously configured cluster information, fill in the corresponding value. My No. 3 machine is 192.168.1.23, so this position to fill 3

           8, configure the environment variables vi / etc / profile

              

           9, so that the configuration file to take effect, execute the command source

          

          10, zookeeper start with zkServer.sh start, view the status zookeeper with zkServer.sh status

 

           

 

 

            

Guess you like

Origin www.cnblogs.com/songlove/p/11399995.html