Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Zookeeper cluster deployment     - Linux ln command - create a file / directory link (Linux)

- Java regular expressions examples (Programming)

- httpd-2.4 feature (Server)

- Understand ASP.NET 5 running the command: DNVM, DNX, and DNU (Server)

- DVD production using CentOS installation source within the company Yum (Linux)

- Ora-1092: OPI colleague K aborting process --- killed by OO Well killer (Database)

- Actual custom yum repository ---- gem commands commonly used parameters (Linux)

- Mac Docker deploy development environment (Server)

- Linux Tutorial ---- fundamentals of data traffic redirection (Linux)

- Java heap (Heap) and stack difference (Programming)

- Linux port scanning (Linux)

- Ubuntu 14.04 VirtualBox can not start solution (Linux)

- How to use the Vault secure password storage and API key (Linux)

- Sublime Text 3 (Linux)

- Common data structures and functions of Linux process scheduling (Programming)

- CentOS7 install JDK (Linux)

- Bash Getopts - let your script supports command line parameters (Linux)

- Java in the final qualifier (Programming)

- Explore Android SQLite3 multithreading (Programming)

- Oracle10g 64-bit installation solution in Windows 2008 Server R2 (Database)

  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 development, may cause a memory leak problem (Programming)
- C ++ 11 feature: decltype keywords (Programming)
- 12 Linux Process Management Commands (Linux)
- How to clear the v $ archived_log view expiration information (Database)
- Elementary OS Freya global menu (Linux)
- When Linux Detailed time zone and common function of time (Linux)
- Linux System Getting Started Learning: The Linux anacron command (Linux)
- Linux dual physical network card set to a virtual NIC (Linux)
- CentOS installed JDK8 (Linux)
- iostat command Detailed (Linux)
- Java Cookie Comments (Programming)
- Hyper-V virtual hard disk how to copy files to and attached to the virtual machine (Linux)
- Linux server security - the web server configuration (Linux)
- Ubuntu 15.04 / 14.04 install Ubuntu After Install 2.6 (Linux)
- Let you Fun Ubuntu desktop eleven weapon (Linux)
- Customize the 404 error page Nginx (Server)
- Can not empty the Recycle Bin to repair problems in Ubuntu 14.04 (Linux)
- HBase Application Development Review and Summary of Series (Database)
- Android Studio simple setup (Linux)
- CentOS / Debian configuration Gitlab 7.1x to build self Git repository (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.