zookeeper source code analysis - event monitoring Watcher
Watcher is the event monitoring mechanism of zookeeper. Today, let's see what the code of watcher class contains?
Watcher
Watcher is an interface that defines the process method, which needs to be implemented by a subclass. It represents the method that must be implemented when implementing the watcher interface, that is, defining for processi ...
Posted by centenial on Tue, 10 Dec 2019 21:28:13 +0100
zookeeper source code analysis - event monitoring Watcher
Next, I went on to analyze the source code of the Watcher related classes.
ClientWatchManager
public Set<Watcher> materialize(Watcher.Event.KeeperState state,
Watcher.Event.EventType type, String path);
This interface has only one method and needs to be implemented. This method represents the Watcher collection to be notified whe ...
Posted by RyanSF07 on Tue, 10 Dec 2019 13:50:09 +0100
Distributed Application Monitoring: SkyWalking Fast Access Practice
Distributed applications have a variety of problems.To solve these problems, besides applying some monitoring buried points by yourself, there should be some peripheral systems for active detection and discovery.
That's what APM tools do. SkyWalking is an excellent APM application from open source and has become a top-level project for apache. ...
Posted by gregghealy on Thu, 05 Dec 2019 09:43:36 +0100
Typical scenes of hbase
1. hbase integration Mapreduce
in the offline task scenario, MapReduce accesses HBASE data to speed up analysis and expand analysis capabilities.Read data from hbase (result)
public class ReadHBaseDataMR {
private static final String ZK_KEY = "hbase.zookeeper.quorum";
private static final String ZK_VALUE = "hadoop01:2181,h ...
Posted by diagnostix on Wed, 04 Dec 2019 11:55:27 +0100
Getting started with the cursor tutorial
Curator It is an open-source Zookeeper client of Netflix. Compared with the native client provided by Zookeeper, the cursor has a higher level of abstraction and simplifies the programming of Zookeeper client.
Maven dependence
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</arti ...
Posted by bdmovies on Wed, 04 Dec 2019 10:45:02 +0100
Read dubbo registration information on zookeeper
dubbo has its own service monitoring server, incubator dubbo OPS development, and github can be downloaded. There are also many local deployment examples on the Internet, so I wondered if I could monitor dubbo's service by myself, so I wrote the following code. In particular, zookeeper's watch mechanism is a one-time trigger. When it is heard t ...
Posted by don_s on Tue, 03 Dec 2019 09:03:03 +0100
Some brief introduction of using Kafka: 1 clustering 2 Principle 3 terminology
[TOC]
Section I Kafka cluster
Before inheriting
If you are a developer and are not interested in building kafka cluster, you can skip this chapter and look at tomorrow's content directly
If you think it's no harm to know more, please keep reading.
As a reminder, there are many figures in this chapter
Kafka cluster construction
Summary
The ...
Posted by swallace on Thu, 28 Nov 2019 12:09:26 +0100
High availability configuration of Hadoop distributed environment
The previous article introduced Hadoop distributed configuration , but designed to be highly available, this time use zookeeper to configure Hadoop highly available.
1. Environmental preparation
1) modify IP 2) modify the mapping of host name and host name and IP address 3) turn off the firewall 4) ssh password free login 5) create hado ...
Posted by eflopez on Tue, 26 Nov 2019 18:53:08 +0100
There was Cheng Yaojin's "three board axes" in ancient times, which shocked Sui and Tang Dynasties.
In many scenarios of distributed system, in order to ensure the final consistency of data, we need many technical solutions to support, such as distributed transactions, distributed locks and so on.
Sometimes, we need to ensure that a method can only be executed by the same thread at the same time. In the stand-alone environment, Java actually ...
Posted by bogdaniel on Fri, 25 Oct 2019 08:14:53 +0200
dubbo Initial Microsoft Service Client Server Configuration
Links to the original text: http://www.cnblogs.com/JAYIT/p/9645728.html
Normally, a service will not only be a client or a server. Generally, microservices are services and services calling each other. So, how to configure them? Nex ...
Posted by atticus on Sun, 06 Oct 2019 05:39:58 +0200