Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Zookeeper cluster deployment     - Installation Yarock 1.1.4 Music Player in Ubuntu (Linux)

- How to implement Linux host Telnet SSH password Free (Server)

- ARP spoofing prevent Linux environment LAN (Linux)

- Raspberry Pi 2 to install the latest version of the FPC and Lazarus 1.5 (Linux)

- OpenGL Superb Learning Notes - Vertex Shader example (Programming)

- CentOS 6.x and CentOS7 install MPlayer (Linux)

- Implement firewall function on a closed Linux machine (Linux)

- To achieve a two-way static NAT stateless available modules on Linux (Linux)

- Upgrade installation manual CentOS6.5 GCC4.8.2 (Linux)

- How to contribute code to the GNU Project (Linux)

- Hive start being given: Found class jline.Terminal, but interface was expected (Database)

- Android Action Compendium (Programming)

- C ++ pointer of the (error-prone model) (Programming)

- Linux System Getting Started Tutorial: How do you know Shell which is currently being used (Linux)

- CentOS 6.5 / 6.6 modify the default SSH port number (Linux)

- Java NIO in the world (Programming)

- How to Set Free SSH password on CentOS / RHEL (Linux)

- ssh using scp: / directory: Permission denied (Server)

- To execute the cp command prompt type skip folder under CentOS (Linux)

- Linux and Windows Security Topics (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

- A new method for Linux hidden files (Linux)
- Linux check disk parameters trapping lack amendments (Linux)
- How to choose the correct HTTP status code (Server)
- C language sorting instance (select, bubble, insert, binary, fast) (Programming)
- How to upgrade the kernel to 3.13.7 on Ubuntu / Linux Mint (Linux)
- Oracle 10g New Features - Archive Compression (Database)
- Linux find command detailing (Linux)
- To install Emacs under CentOS 6.5 (Linux)
- netfilter- in kernel mode network packet operation (Linux)
- Android LayoutInflater source parsing (Programming)
- Using C ++ Container Templates in Shared Memory (Programming)
- Four safety delete files under Linux tools (Linux)
- Open log in Hibernate (Programming)
- Ubuntu deployment Flask + UWSGI + Nginx Comments (Server)
- PULL operation mechanism parsing XML Comments (Programming)
- Linux System Getting Started Learning: On Linux how to convert text files to PDF (Linux)
- Linux System Tutorial: Fix ImportError: No module named wxversion error (Linux)
- Java loop list to solve the problem of Joseph ring (Programming)
- Linux centos rm directory does not prompt (Linux)
- Java interface and inheritance (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.