Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Zookeeper cluster deployment     - Java garbage collection and heap memory layout (Programming)

- Use OpenSSL to generate a certificate detailed process (Linux)

- vnStatSVG: traffic monitoring software vnStat (Linux)

- Alternative methods of intrusion bundled executable file new thinking (Linux)

- YUM install desktop environment in CentOS (Linux)

- Asynchronous JavaScript loading (Programming)

- Linux system firewall defense network attacks (Linux)

- Oracle Sql Loader tool has shown signs (Database)

- Analysis JavaBean (Programming)

- CentOS 6.x systems installation + NIC driver installation (Realtek PCIe GBE Family Controller for Linux) (Linux)

- Java and Python use make way dictionary word search script (Programming)

- The formatted Linux hard drive and mount (Linux)

- Use Linux firewall camouflage defense hacked (Linux)

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

- Thunderbird 24.4.2 has been released for use with PPA updates (Linux)

- Redis is installed and set up Ubuntu 14.04 from the environment under the main ssdb (Server)

- How to update the ISPConfig 3 SSL Certificates (Server)

- iOS persistence of data archiving NSKeyedArchiver (Programming)

- Summary Linux bond of multi-interface load balancing (Linux)

- cp: omitting directory error solutions under Linux (Linux)

  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

- What have we learn from the front-end application Nodejs (Programming)
- ld.so.conf.d profile (Linux)
- RHEL5.8 physical opportunities to Read-only file system (Linux)
- Linux system on how to use rsync to synchronize data (Server)
- Copy files between two Linux hosts (Linux)
- Ubuntu install perfectly handsome terminal Guake 0.8.1 (Linux)
- Eclipse configuration GTK (Linux)
- Python context managers (Programming)
- VMware virtual machine to use bridged mode fast Internet access (Linux)
- Joseph Central Java implementation (Programming)
- Linux use chattr and lsattr commands to manage file and directory attributes (Linux)
- Use the Find command to help you find those files that need to be cleaned (Linux)
- See Shell Script Linux Server network traffic (Server)
- JQuery implements the same content merge cells (Programming)
- count (*) function in MySQL optimization of InnoDB storage engine (Database)
- 17 How to install the Ubuntu 14.04 and Linux Mint Kodi14 (XBMC) (Linux)
- Timeout control related to Python threads and a simple application (Programming)
- MongoDB slice simple example (Database)
- C language keywords Comments (Programming)
- Process safety monitoring and protection under the Linux operating system (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.