Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Zookeeper cluster deployment     - See Linux kernel, CPU, memory, and various versions of the command module and means (Linux)

- Java singleton mode (Singleton mode) (Programming)

- How Bluetooth turned off by default in Ubuntu 14.04 (Linux)

- Let MySQL 5.6 support Emoji expression (Database)

- HTTPS and SSH and use the difference between the way: Git User's Manual (Linux)

- The basic method RHEL6 (CentOS6) used in the source package compiled RPM: Upgrade OpenSSH articles (Linux)

- MySQL binary packages install for RedHat Linux Enterprise 6.4 (Database)

- To install Samba server on CentOS 6.6 (Server)

- To install Spotify in Ubuntu / Mint (Linux)

- Ubuntu server 8.04 Firewall Guide (Linux)

- Lua study notes under ubuntu (Linux)

- Use OpenSSL to generate a certificate (Linux)

- 2016, the new Node project Precautions (Programming)

- Cross server / client backup command: rsync use (Server)

- C language sorting instance (select, bubble, insert, binary, fast) (Programming)

- Safety testing Unix and Linux server entry succinctly (Linux)

- Selection sort, insertion sort, and Shell sort (Programming)

- Network Security Basics Linux command (Linux)

- Use C program in JavaScript (Programming)

- How to enable curl command HTTP2 support (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

- Android Fragment really fully resolve (Programming)
- mysqldump implement database logical backup (Database)
- Ubuntu 15.10 installation and deployment Swift development environment (Linux)
- Use Bosh deploy CloudFoundry problems encountered on OpenStack (Server)
- 10 Linux in the passwd command examples (Linux)
- The easiest 11g Active DataGuard (ADG) to establish the configuration process (Database)
- CentOS use wget (Linux)
- Linux Command Tutorial: cat command to view the contents of the file (Linux)
- MongoDB 3.0 New Features (Database)
- Android annotation support (Support Annotations) (Programming)
- MogileFS system installation configuration example (Server)
- Ubuntu FAQ solutions (Linux)
- shell script: MySQL monitoring service is normal (Database)
- Log analysis is done with Grafana Elasticsearch (Server)
- Distributed Firewall Design on Linux platform (Linux)
- Nginx version information hidden or modified (Server)
- Linux system performance analysis and top command ps.pstree Comments (Linux)
- CentOS 7 virt-manager can not connect a local hypervisor (Linux)
- Java implementation of stacks and queues (Programming)
- Oracle archive log full cause abnormal slow database performance (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.