zookeeper native api operation

/** * TODO: * @package: com.zzhijian.zookeeperdemo.zk * @date: 2019-08-15 10:57 **/ @Slf4j public class ZookeeperDemo { private static String ZK_ADDRESS = "zkServer:2181,zkServer:2182,zkServer:2183"; public static void main(String[] args) { try { ZooKeeper zooKeeper = ge ...

Posted by boardy on Wed, 02 Oct 2019 00:20:06 -0700

playbook automatically installs kafka cluster

I. Environmental Description1. Server information 172.21.184.43 kafka,zk 172.21.184.44 kafka,zk 172.21.184.45 kafka,zk 172.21.244.7 ansible 2. Software Version Information System: CentOS Linux release 7.5.1804 (Core) kafka: kafka_2.11-2.2.0 Zookeeper version: 3.4.8 ansible: ansible 2.7.10 II. Configuration preparation1. Write playbook-relate ...

Posted by RP on Tue, 01 Oct 2019 17:00:20 -0700

"From Initial to Abandoned - ZooKeeper" ZooKeeper Practical - Distributed Lock

Preface In ZooKeeper Actual-Distributed Queue, we wrote about how to implement a distributed queue through ZooKeeper's persistent sequential nodes. In this article, we will write a distributed lock implemented by ZooKeeper. Design Refer to the concurrent programming of JUC-locks-ReentrantLock, which was learned before, to implement the jav ...

Posted by washbucket on Mon, 23 Sep 2019 00:08:11 -0700

Four deployment modes and basic operations of HBase

This paper mainly includes two parts. The first part mainly includes four installation methods of HBase, which are: (1) stand-alone mode, (2) pseudo-cluster mode, (3) using zookeeper which comes with HBase to build distributed cluster, and (4) using zookeeper which is installed independently to build distributed cluster. The second part shows t ...

Posted by simpli on Sat, 21 Sep 2019 07:50:49 -0700

SpringBoot 2.0 + Apache Dubbo 2.7.3 Latest Version Integration Scheme

Preface On February 16, 2018, Apache Dubbo joined the Apache Foundation incubator. On May 16, 2019, the board of directors of the Apache Software Foundation approved the graduation application of Apache Dubbo, which means that Apache Dubbo has officially become Apache's top project. To configure When Dubbo donates sperm to Apache, it means tha ...

Posted by Diceman on Sun, 15 Sep 2019 22:43:18 -0700

Dubbo: Elegant downtime

1. Overview This article shares the elegant downtime of Dubbo, corresponding to Dubbo User Guide Elegant Downtime . Define as follows: Dubbo accomplishes elegant downtime through JDK's HutdownHook, so if a user uses a mandatory shutdown comm ...

Posted by Hexen on Wed, 04 Sep 2019 18:11:08 -0700

[RPC] Implementation of RPC framework based on netty+zookeeper step by step

The last one implements service registration discovery and basic string communication functions. This one implements the functions that we usually invoke using classes of RPC framework. Implementing consumer end to call remote services through inte ...

Posted by phynias on Tue, 03 Sep 2019 05:59:50 -0700

What about dynamic routing for Spring Cloud Zuul?Integrated Nacos implementation is simple

1. Description The core concept of gateway is routing configuration and routing rules. As the entrance of all requests traffic, dynamic routing is necessary to avoid rebooting in the real production environment in order to ensure high reliability and high availability. This paper mainly introduces the idea of implementation and uses Nacos as th ...

Posted by MG-WebDesigns on Wed, 28 Aug 2019 20:07:33 -0700

The perfect combination of Spring Cloud and Dubbo, "Spring Cloud Alibaba"

Earlier, when I started the Spring Cloud Basic tutorial, I wrote this article: Basic Framework Selection for Micro Services Architecture: Spring Cloud or Dubbo?" And may have been seen by many readers.Since then, there has been a question about how to choose these two frameworks. In fact, I have clearly mentioned in this paper that the com ...

Posted by RecoilUK on Sun, 18 Aug 2019 19:42:39 -0700

Zookeeper-Distributed Consistency Protocol and Preliminary Exploration of Zookeeper

Articles Catalogue I. Introduction From ACID to CAP/BASE 3. Distributed Consistency Protocol 1.2PC and 3PC 2PC Initiate transaction requests Transaction commit/rollback 3PC canCommit preCommit doCommit 2. Paxos 3. ZAB protocol IV. A Prelim ...

Posted by icecube on Sat, 17 Aug 2019 06:58:48 -0700