SpringBoot integrates Alibaba RocketMQ
What is RocketMQ
Alibaba message queuing version RocketMQ not only provides asynchronous decoupling and peak clipping and valley filling capabilities for distributed application systems, but also has the features of massive message accumulation, high throughput, reliable retry and other features required by Internet applications, as well as cha ...
Posted by blackwinged on Thu, 16 Jan 2020 04:37:27 -0800
Using the Java API of elastic search to query
1. Preface
elsaticsearch version is 6.8.3. The Java API used is based on Java High Level REST Client
2. data
3. InitClient
Used to initialize clients
package com.htkj.elasticsearch;
import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;
public class Ini ...
Posted by christa on Mon, 13 Jan 2020 02:04:58 -0800
What is a line chart? How to draw in Python? How to use it? At last someone made it clear
Yun Qi Hao: https://yqh.aliyun.comThe first-hand cloud information, the selected cloud enterprise case base of different industries, and the best practices extracted from many successful cases help you to make cloud decision!
Introduction: do you really understand the line chart often used in data analysis? What data relationships can be used t ...
Posted by rocksolidhq on Wed, 08 Jan 2020 03:39:25 -0800
Rescue GlusterFS Distributed Storage System
After the GlusterFS distributed storage system was migrated in a previous period of time, the phenomenon of dropping lines and intermittent happened frequently, which made it unable to work properly for a long time.Observations revealed that one of the nodes was always restarting, further revealing that only one of the four nodes in the replica ...
Posted by renesis on Mon, 06 Jan 2020 01:02:34 -0800
Observer pattern of Java design pattern (publish / subscribe pattern)
1. Overview
The observer pattern is also called publish / subscribe pattern
The Observer design pattern involves two roles: Subject and Observer
(1) Subject module
Subjec module has three main operations
addObserver(): register to add observer (apply for subscription)
deleteObserver(): delete observer (unsubscribe)
notify ...
Posted by Sir Jos on Sat, 04 Jan 2020 06:02:45 -0800
18 19 20 py if statement comparison operator assertions
The fourth lesson Conditional statement( if,else and elif)
# coding:utf-8
python The language is defined by indented code blocks
# Conditional statements (if, else, and elif)
'''
if logic_expression:
statement1
statement2
statement3
... ...
statementn
elif logic_expression:
statement1
statement2
... ... ...
Posted by berbbrown on Fri, 03 Jan 2020 16:59:05 -0800
Kafka 2.4 release - Introduction to new features (with Java Api Demo code)
new function
Allow consumers to get from the most recent copy
Increase support for incremental cooperative rebalancing for consumer rebalancing protocol
New MirrorMaker 2.0 (MM2), new multi cluster cross data center replication engine
Introducing a new Java authorized program interface
Supports non key connections in KTable
Adminis ...
Posted by tex1820 on Mon, 30 Dec 2019 12:34:49 -0800
The way of Hadoop learning Mapreduce program completes wordcount
Test text data used by the program:
Dear River
Dear River Bear Spark
Car Dear Car Bear Car
Dear Car River Car
Spark Spark Dear Spark
1 main categories
(1) Maper class
The first is the custom Maper class code
public class WordCountMap extends Mapper<LongWritable, Text, Text, IntWritable> {
public void map(LongWritable key, Text val ...
Posted by SundayDriver on Fri, 27 Dec 2019 02:19:33 -0800
UDF Writing for Struct Complex Data Type and GenericUDF Writing
1. Background introduction: With the upgrade of MaxCompute version 2.0, the data types supported by Java UDF have expanded from BIGINT, STRING, DOUBLE, BOOLEAN to more basic data types, as well as complex types such as ARRAY, MAP, STRUCT, and Writable parameters.Java UDF uses a method of complex data types, STRUCT corresponds to com.aliyun.odps ...
Posted by mnewbegin on Mon, 23 Dec 2019 19:19:12 -0800
Blood relationship analysis based on maxcompute information schema
1, Demand scenario analysis In the actual operation and management process of data platform, the scale of data table tends to grow to a very large scale with the access of more business data and the construction of data application. Data managers often hope to use the analysis of metadata to better grasp the kinship of different data tables, so ...
Posted by SlyOne on Sun, 22 Dec 2019 23:01:10 -0800