Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Zookeeper cluster deployment     - Retro terminal in Linux (Linux)

- High-performance JavaScript DOM programming (Programming)

- Using Java program determines whether it is a leap year (Programming)

- UNIX and class UNIX system security check notes (Linux)

- Enable Intel Rapid Start in GNU / Linux (Linux)

- Tsunami-udp accelerated network transmission (Linux)

- Vagrant failed to start, stuck in Waiting for VM to boot solution (Linux)

- phpinfo (): like phpinfo as a Python script (Programming)

- Oracle 11g tracking and monitoring system-level triggers to drop misuse (Database)

- The Zabbix2.4.5 source compiler installation under Ubuntu 14.04 (Server)

- Oracle 11G R2 DataGuard structures (Database)

- OpenSIPS offline messaging feature set (Server)

- PLSQL Developer synchronization table tools (Database)

- KVM usb passthrough configuration (Linux)

- Kali Linux 2.0 U disk installation errors Your installation cd-rom could not be mounted (Linux)

- ARM platform compiler installation Golang (Linux)

- Java interface and inheritance (Programming)

- Linux supports serial output method (Linux)

- Copy U disk files to the Linux system on a virtual machine (Linux)

- Oracle EBS R12 for Linux installation (Database)

 
         
  Zookeeper cluster deployment
     
  Add Date : 2018-11-21      
         
         
         
 

I. Preparatory work before deployment

1. Each host can guarantee normal communication, preferably in the same network segment.

2. Modify the host file, and add the mapping IP host name. Methods to modify the / etc / hosts and etc / hostname file, different Linux distributions approach is not necessarily the same.

3. Turn off the firewall or open ports to use

II. Deployment Zookeeper cluster

1. Zookeeper visit the official website to download the installation package, and extract.

tar -xvzf zookeeper-3.4.6.tar.gz

2. Create a data directory

Execute the following command to create the data directory:

mkdir / usr / zookeeper / data

Execute the following command to create the log directory:

mkdir / usr / zookeeper / data / log

execute the following command to create myid file and write ID:

echo 1 > / usr / zookeeper / data / myid

3. Modify the configuration

Run the following command to edit zoo.cfg file:

cd zookeeper-3.4.6 / conf / & & mv zoo_sample.cfg zoo.cfg & & vi zoo.cfg

Modify configuration is as follows:

dataDir = / usr / zookeeper / data

dataLogDir = / usr / zookeeper / data / log

autopurge.snapRetainCount = 3

autopurge.purgeInterval = 1

In the last added Zookeeper cluster nodes address:

server.1 = node1: 2888: 3888

server.2 = node2: 2888: 3888

server.3 = node3: 2888: 3888

4. Copy configuration files to other nodes

scp -r zookeeper-3.4.6 / node2: / usr /

It should be noted that each node myid is not the same.

III. Start Zookeeper cluster

execute the following command to start Zookeeper Zookeeper service nodes in the cluster:

zookeeper-3.4.6 / bin / zkServer.sh start

Zookeeper execute the following command to view the status of each node in the cluster:

zookeeper-3.4.6 / bin / zkServer.sh status

You can see the node1 node follewer node

IV. HA validation failure is automatically transferred if it works

Zookeeper process using jps command

Use the command kill -9 2432 kill leader process, and then view the status of each node Zookeeper, if there is a leader of the verification handy

     
         
         
         
  More:      
 
- mydumper installation error process (Database)
- Ubuntu install Lighttpd + Mono support .net (Linux)
- Recent Consolidation Using Linux security module (Linux)
- 10 important Linux ps command combat (Linux)
- Linux, ls command to achieve (Linux)
- Installation of network monitoring ntopng under CentOS 6.4 (Linux)
- Elementary OS Freya global menu (Linux)
- CentOS install expect (Linux)
- Optimized to minimize the installation of CentOS 5.8 (Linux)
- Zookeeper cluster deployment (Server)
- CentOS 6.x and CentOS7 install MPlayer (Linux)
- Zabbix installation and configuration process (Server)
- Linux at command (Linux)
- Intruder tools Knark Analysis and Prevention Linux environment (Linux)
- Installation and operation GAMIT software under Linux operating system (Linux)
- Linux install deploy Ansible (Linux)
- Python object-oriented programming (Programming)
- CentOS7 minimized installation can not find the 'ifconfig' command - Repair Tips (Linux)
- AngularJS (Programming)
- How to install Laravel PHP framework on CentOS 7 / Ubuntu 15.04 (Server)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.