Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Zookeeper cluster deployment     - Oracle create a temporary table space group (Database)

- The first IOS Objective-C program (Programming)

- Linux 6 use UDEV binding shared storage (Linux)

- To share Internet access through NAT mode under Virtual Linux VMware Workstation (Linux)

- Installation of Gitlab under Ubuntu (Linux)

- Piostat - Monitoring and Statistics Linux process (Linux)

- Spacewalk Linux system configuration and installation (Linux)

- MyCAT easy entry (Database)

- Android use canvas board painting (Programming)

- Programmers Do not neglect debugging techniques (Programming)

- Android Application Development: an argument between Activity (Programming)

- Ubuntu 14.04 jdk Installation and Configuration (Linux)

- Use PXE with kickstart to install Linux automatically (Linux)

- Linux platform to prevent hackers to share practical skills (Linux)

- VirtualBox installation enhancements let the mouse move and share CentOS 6.4 (Linux)

- To setup the Swift language learning environment under linux (Linux)

- Linux shared libraries .so file name and Dynamic Link (Linux)

- Eclipse-ee Tomcat browser can not start Tomcat, and Web project service deployment (Server)

- Singleton (Linux)

- Linux operating system to solve a serious fault handling (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:      
 
- Python 2.7.9 Installation on Linux CentOS 6.6 (Linux)
- Configuring Sublime Text Python runtime environment 2 (Linux)
- Using C ++ Container Templates in Shared Memory (Programming)
- Caffe + Ubuntu 14.04 64bit + CUDA 6.5 configuration instructions (Linux)
- MYSQL root password for the database user passwords are weak attack analysis (Linux)
- Use the Find command to help you find those files that need to be cleaned (Linux)
- Linux Network Programming - libnet Guide (Programming)
- C ++ CBitmap, HBitmap, Bitmap difference and contact (Programming)
- Analysis of Java exception (Programming)
- Setting Linux desktop environment, achieve HiDPI display support (Linux)
- MongoDB3.0.x version of the user authorization profile (stand-alone environment) (Database)
- Terminal multiplexing tool tmux use (Linux)
- Scala REPL Shell call (Programming)
- About Git (Linux)
- OpenGL Programming Guide (8th edition of the original book) - compute shader (Programming)
- Zombie process under Linux (Linux)
- Hands to teach you to solve Ubuntu error message (Linux)
- Install apr support for Tomcat on Linux (Server)
- MySQL uses mysqld_multi to deploy stand-alone multi-instance detail procedures (Database)
- Java input and output common class Scanner (Programming)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.