ActiveMQ Starter Example Demo

ActiveMQ Starter Example Demo Turn from https://www.cnblogs.com/parryyang/p/6062160.html JMS message model JMS message service application architecture supports two models: point-to-point model and publisher/subscriber model.    (1) Point-to-Point Model (Queue) A producer publishes a message to ...

Posted by PurpleMonkey on Mon, 07 Oct 2019 20:42:14 -0700

Inverted Index for MapReduce Programming Development

Inverted index is a variant of word frequency statistics, in fact, it is also a word frequency statistics, but this word frequency statistics need to add the name of the file. Inverted index is widely used for full-text retrieval. The final result of the inverted index is a collection of the number o ...

Posted by cmaclennan on Mon, 07 Oct 2019 18:50:03 -0700

Request Body Advice and Response Body Advice handle input and output globally

Usage scenarios All inputs in the project need to be filtered in front and back spaces Replace some special character input Decrypt some key fields Inject some parameters when requesting a method Return parameter unified processing, if the background returns empty, unified return success information Unified processing of special characters suc ...

Posted by RHolm on Mon, 07 Oct 2019 07:22:37 -0700

Using poi to manipulate Excel in java

Poi introduction Usually used to process Excel data, you can also process word, ppt readable and writable.   Component correspondence in Excel file and poi An Excel file corresponds to a Workbook object A Workbook can have multiple Sheet objects A Sheet object consists of multiple Row objects ...

Posted by Ken2k7 on Mon, 07 Oct 2019 04:14:27 -0700

Two methods of implementing real-time WordCount program by SparkStreaming and writing data into Mysql: using the tool netcat

The first few classes you need to understand StreamingContext How to read data DStream Processing data functions There are many RDD s stored in DStream PairDStreamFunctions When the data type processed is a tuple, Automatic implicit conversion of DStream to PairDStream Functions RDD Output fun ...

Posted by dale282 on Mon, 07 Oct 2019 02:29:52 -0700

1. Integration of Dubbo and Spring to parse configuration files

1. Dubbo consumer invocation service provider example public class Consumer { public static void main(String[] args) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"META-INF/spring/dubbo-demo-consumer.xml"}); context.start(); DemoService demoService = (DemoSer ...

Posted by silas101 on Sun, 06 Oct 2019 22:05:58 -0700

Spark implements a slightly more complex business scenario by customizing InputFormat to read HDFS files

Links to the original text: https://www.oipapio.com/cn/article-2689341 Business scenario Spark knows how to read files according to InputFormat. By default, it reads files according to one line. In some specific cases, Spark's default Inpu ...

Posted by garyb_44 on Sun, 06 Oct 2019 17:05:10 -0700

Management Request for rocketmq Source Resolution for Minimum offset

Said ahead Management Request GET_MIN_OFFSET Gets Minimum offset Source code analysis Enter the method org.apache.rocketmq.broker.processor.AdminBrokerProcessor#getMinOffset to get the smallest offset private RemotingCommand getMinOffset(ChannelHandlerContext ctx, RemotingCommand request) throw ...

Posted by eugene2008 on Sun, 06 Oct 2019 12:29:36 -0700

HDFS Client Operations (win10)

1. Building Development Environment 1) copy the compiled hadoop jar package to the non Chinese path. 2) Configure HADOOP_HOME environment variables 3) Configuring Path environment variables 4) Create a Maven Project HDFSClientDemo 5) Import the corresponding dependent coordinates + log additions ...

Posted by becoolufull on Sun, 06 Oct 2019 10:42:44 -0700

How to configure swagger with shiro

In order to save the time and cost of developers, swagger plug-ins arise spontaneously, save your time to write development documents, and play happily, without talking nonsense. Next I will explain and explain using the popular swagger-bootstrap-ui plug-in on github, which may be different from swagger in configuration, but the principle is ba ...

Posted by trex005 on Sun, 06 Oct 2019 02:10:47 -0700