Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Zookeeper cluster deployment     - Android Studio simple setup (Linux)

- Ubuntu 15.04 install Complete Guide (Linux)

- Setting Wetty do not need an account login command line operations (Linux)

- Du and df show disk space usage inconsistent Causes and Treatment (Linux)

- PHP loop reference caused strange problems (Programming)

- Linux system package manager -RPM (Linux)

- Hadoop safe hftp (Server)

- Father of Python: Why Python zero-based index (Programming)

- Oracle Standby Redo Log experiment (Database)

- The Java ThreadLocal (Programming)

- Access clipboard content across multiple vim instances in a terminal (Linux)

- Graphical development environment to build Android under Ubuntu 11.04 (Linux)

- MariaDB database storage path modify configuration issues (Database)

- Linux at command (Linux)

- Installation and use the telnet command under CentOS 6.x (Linux)

- hadoop 2.7.1 High Availability Setup Deployment (Server)

- Linux and Windows Security Topics (Linux)

- Spring classic face questions Share (Programming)

- Getting Started with Linux: CentOS7 Install Mono with the yum command (Server)

- git checkout generated in the use of temporary br (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

     
         
         
         
  More:      
 
- BackTrack (BT3, BT4) Linux installation tutorial (Linux)
- Ubuntu 64-bit installation Adobe Reader 9.5.5 (Linux)
- Nginx Load Balancing (standby) + Keepalived (Server)
- Linux Shell Scripting (Programming)
- Python is not C (Programming)
- MySQL Tutorial: Using tpcc-mysql pressure measurement (Database)
- Docker manage data (Linux)
- Preliminary understanding of SELinux security management (Linux)
- Check the Linux server performance with ten or so commands in a minute (Server)
- Ubuntu 14.04 compile RT288x_SDK / toolchain / squashfs3.2-r2 Error (Linux)
- Install the latest ATI / Nvidia graphics driver on Ubuntu (Linux)
- OpenSSL: implementation creates a private CA, certificate signing request Explanation (Server)
- Linux group account deletion, and other related operations (Linux)
- Xshell configure SSH free password (Server)
- How to upgrade Docker 1.6 on Fedora / CentOS (Server)
- Mistakenly deleted redo log file group being given the lead to start the database ORA-03113 (Database)
- There is sort of a directed acyclic graph topology (Programming)
- Linux system last command usage (Linux)
- MySQL multi-master multi-cluster deployment uses alive Galera (Database)
- Unix / Linux commonly used to clean up disk space command (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.