Zookeeper cluster deployment
I. Preparations before deployment
1. Ensure normal communication between hosts, preferably in the same network segment.
2. Modify the host file and add the ing between the IP address and the host name. The method is to modify the/etc/hosts and etc/hostname files. The methods for different Linux distributions are not necessarily the same.
3. open the port to be used or close the
Install the zookeeper and configure the cluster
1, prepare three machines to do the clusterServer 1 10.211.55.7 2181/2881/3881Server 2 10.211.55.8 2181/2881/3881Server 3 10.211.55.9 2181/2881/38812, Configuration2.1 Configuring the Java EnvironmentUpload the jdk-8u141-linux-x64.tar.gz to the three server installation configurations.Extract to/data/program/software/and rename the folder to Java8Configure JD
Zookeeper server can support single node and cluster, for single node mode, all clients are connected to the same server node to perform operation, for cluster mode, zookeeper server will elect one leader node, other server nodes are connected with leader. and save the same data. Each server-side node can handle read o
Make some simple introductions to the above roles:Namenode-The entire HDFs namespace management ServiceSecondarynamenode-a redundant service that can be viewed as NamenodeJobtracker-Job Management services for parallel computingNode Services for Datanode-hdfsTasktracker-Job execution services for parallel computingManagement Services for Hbase-master-hbaseHbase-regionserver-Provide services for client-side inserts, deletes, query data, etc.Zookeeper-server-
Original link: Zookeeper of the actual combat cluster model
The previous article introduces the installation and application of Zookeeper's stand-alone cluster mode, and today it is said that how to install the configuration in the true multi-machine cluster mode.Here, unzip the zo
Zookeeper Distributed Services Framework is a subproject of the Apache Hadoop, it is Google's chubby an open source implementation, is mainly used to solve some of the data management problems frequently encountered in the distributed application, such as: Unified Naming Service, State Synchronization service, cluster management, Management of distributed application configuration items.Zookeeper are heavil
Zookeeper provides high-performance services for distributed applications and is widely used in many common cluster services, most commonly in hbase clusters, as well as in SOLR clusters, and HA automatic failover in Hadoop-2. This article mainly describes the process of deploying zookeeper clusters for hbase clusters, and explains the problems encountered during
the time limit for initialization)
# The number of ticks that can pass between sending a request and getting an acknowledgement
synclimit=5 (5*ticktime = 10s, defining the time limit for synchronization)
# The directory where the snapshot is stored.
Datadir=F:\paths\zookeeper\server1\zookeeper-3.3.6\data (the storage directory for custom data snapshots, the data directory needs to be created by
TomcatChkconfig Tomcat onChkconfig--list TomcatShow:Tomcat 0:off 1:off 2:on 3:on 4:on 5:on 6:off← confirm 2~5 is on status OK2.3 Starting TomcatService Tomcat Start#增加防火墙配置, allow port 8080 to "temporarily do not turn on the firewall":Vi/etc/sysconfig/iptables#在允许ssh的下面增加一条 (Open Permissions!!! for Web servers only) :Iptables-a input-p tcp-s 192.168.1.1--dport 8080-j ACCEPT/etc/rc.d/init.d/iptables SaveService Iptables RestartIptables-l-N2.4 Viewing the Tomcat processPS aux | grep Tomcatthird,
Original link: Zookeeper in the actual combat of the single cluster mode
The previous article introduces the installation and application of zookeeper stand-alone mode, but zookeeper is designed to solve distributed application scenarios, so it is usually run in cluster mode
. Cluster modeStand-alone mode is handy for developing and testing scenarios, but in a production environment, you should run a cluster mode. Cluster mode should have at least 3 nodes, and it is strongly recommended that you have an odd number of nodes, each node should have the same configuration file.3.1 Modifying a configuration filecd /opt/
, these CentOS server time synchronization (NTP time synchronization)Blog address:http://www.cnblogs.com/zhangmingcheng/p/6047052.html3. Set hostname to add mappingsModify The/etc/sysconfig/network configuration file to modify the host name:Restart machine Required: Shutdown-r nowModify the/etc/hosts file to add host mappings within the LAN:4, because to install Marathon, because the Mesos official document installed in the JDK is version 1.7, so we want to replace 1.8:sudo yum install -y java-1
Install ZooKeeper in standalone mode and cluster mode in CentOS
The environment for this article is as follows:Operating System: CentOS 6 32-bitZooKeeper version: 3.4.8
0. environment requirements
Zookeeper requires a Java environment later than JDK1.6.Refer:CentOS 6 JDK8 installation using rpm1. download the software package
Go to the
ZooKeeper cluster Installation
ZooKeeper is a distributed service coordination system provided by Apache and widely used.
Kafka MQ is used in the project, while Kafka fully uses ZooKeeper to implement service coordination between Kafka components, including Broker and Consumer.
The Linux commands in this document start
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.