[Java Series 004] don't underestimate Redis distributed lock

Hello, I'm miniluo. For positions requiring distributed experience, interviewers always like to ask questions about distributed locks. Recently, I have the honor to participate in the company's interview, and I often ask about the knowledge of distributed locks. Most of the candidates' answers are more limited to using, and they have not though ...

Posted by Sekka on Sun, 05 Apr 2020 01:39:05 -0700

Simple RPC framework based on Socket+Zookeeper

RPC process details Implementation content json serialization zookeeper implements service registration on the server side and service discovery and load balancing on the client side Automatically scan the interface provided by the server and register it in zookeeper Automatically generate client dynamic proxy objects socket communication M ...

Posted by alvinkoh on Fri, 03 Apr 2020 03:14:29 -0700

Search engine - Solr cluster deployment

Key contents Three zookeeper nodes are required Four solr nodes. Using pseudo distributed to implement solr cluster. Three zookeeper instances and four tomcat instances are required, which can be simulated on a virtual machine. More than 1G memory is recommended for virtual machines. Solr instance building Step 1: crea ...

Posted by zorgon on Wed, 01 Apr 2020 19:42:14 -0700

dubbo source code analysis 5 -- ServiceBean publishing service

Publishing service ServiceBean Release entrance ServiceBean implements the afterpropertieset() method of the interface InitializingBean public void afterPropertiesSet() throws Exception { //Set provider, application, registers //Publishing service if (!isDelay()) { export(); } } If the service has ...

Posted by danf_1979 on Mon, 30 Mar 2020 12:53:21 -0700

HBase-1.2.1 cluster building

1.hbase is a distributed system, which needs to rely on HDFS as the storage medium and zookeeper to complete the monitoring of the master-slave nodes. 2. Installation preparation is as follows: 1.HBase role HMaster (master node, one Active, one StandBy) Hreginserver (data node, multiple) 2. dependence HDFS cluster, zookeeper cluster [start] ...

Posted by upnxwood16 on Fri, 27 Mar 2020 07:23:00 -0700

Using Docker to build ZooKeeper cluster in CentOS 7

1. First, Docker should be installed in CentOS 7, Docker installation reference 2. Pull the docker image of ZooKeeper and go to https://hub.docker.com/ Search relevant zoomkeeper images on docker pull zookeeper:3.4.14 3. Create three folders corresponding to three containers on the host computer /root/zookeeper01/conf /root/zookeeper01/d ...

Posted by mcollyns on Fri, 20 Mar 2020 07:59:17 -0700

SpringBoot2 integrates ElasticJob framework and customizes management process

Source code for this article: GitHub. Click here || GitEE. Click here 1. Introduction to ElasticJob 1. Timing Tasks In the previous article, you said that QuartJob is a timed task standard that is widely used.But the core point of Quartz is that executing timed tasks is not focused on business models and scenarios, and lacks highly customized ...

Posted by daedlus on Wed, 11 Mar 2020 16:53:30 -0700

Spring boot integration zookeeper and dubbo@Reference null pointer exception

Problem Description: as a rookie, in the process of learning spring boot, I want to watch the teacher's video once and knock myself to impress myself a little bit. As a result, the problem comes. @The Reference of the Reference annotation reported a null pointer exception. After more than two hours of t ...

Posted by webdzine on Wed, 04 Mar 2020 01:55:17 -0800

[dubbo source code] 1. How to publish services by service providers

Service publishing Startup process 1.ServiceConfig#export When the service provider starts the deployment, dubbo will call serviceconfig ා export to activate the service publishing process, as shown below: Java API: // 1. Create ServiceConfig instance ServiceConfig<IGreetingService> serviceConfig = new ServiceConfig<>( ...

Posted by [-_-] on Thu, 27 Feb 2020 23:53:21 -0800

Introduction and use of HBase

Introduction and use of HBase 1, introduction hbase is the open source java version of bigtable. It is a database system based on hdfs, which provides high reliability, high performance, column storage, scalability, real-time reading and writing of nosql. 2. Differences with RDBMS 1. RDBMSStructur ...

Posted by terrabull on Thu, 27 Feb 2020 23:16:09 -0800