Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Zookeeper cluster deployment     - Oracle View index and use indexes Precautions (Database)

- Linux Shell Scripting multithreading (Programming)

- Analysis of Java in the deep copy and shallow copy (Programming)

- Nginx high concurrency optimization ideas (Server)

- How to install Linux Go Language (Linux)

- C ++ Learning Notes: references (Programming)

- Oracle EBS R12 for Linux installation (Database)

- Docker: installation under Ubuntu (Server)

- Ant command-line compiler Android project (Programming)

- CentOS7 yum install third-party source EPEL (Linux)

- Ubuntu disable graphics card (Linux)

- Linux environment variable settings and save places (Linux)

- To install Oracle Database Details and FAQ Summary under CentOS (Database)

- Linux rights management (Linux)

- Debian (Wheezy) were installed wxPython GUI development (Linux)

- What happens after the MySQL disk space is full (Database)

- Customize the output format in Linux history (Linux)

- Those functions under Linux you do not know the df command (Linux)

- Linux Firewall Basics (Linux)

- Linux Getting Started Tutorial: / var / spool / clientmqueue fill the root directory (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:      
 
- Based on Python: OpenCV simple image manipulation (Programming)
- Linux install the Java Runtime Environment and the output Hello World under (CentOS) (Linux)
- How to make Linux a non-root user uses less than 1024 ports (Linux)
- Easily solve the MySQL database connection error too many (Database)
- XenServer virtual machines installed in dual-card configuration (Server)
- Linux C programming and Shell Programming in the development of practical tools similarities summary (Programming)
- shell script: MySQL monitoring service is normal (Database)
- Under Linux using Magent + Memcached cache server cluster deployment (Server)
- See Shell Script Linux Server network traffic (Server)
- Ubuntu and Derivative Edition users install LMMS 0.4.15 (Linux)
- Linux - Common process the command (Linux)
- High-performance JavaScript loops and flow control (Programming)
- Json Applications of FastJson (Programming)
- Ubuntu 14.04 How to install Cinnamon 2.4.5 (Linux)
- Swift acquaintance of values and references, the circular reference, Agent Precautions (Programming)
- independently configurable PHP environment under CentOS6.5 (Server)
- Single list summarizes the basic operation (Programming)
- Oracle Listener can not start (TNS-12555, TNS-12560, TNS-00525) (Database)
- MyCAT easy entry (Database)
- Hadoop safe hftp (Server)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.