Setting up a hadoop cluster environment with a single machine

One preparation First create the folder with the following structure: weim@weim:~/myopt$ ls ubuntu1 ubuntu2 ubuntu3 And extract the downloaded JDK (version: 8u172), Hadoop (version: hadoop-2.9.1) into three folders, as follows: weim@weim:~/myopt$ ls ubuntu1 hadoop jdk weim@weim:~/myopt$ ls ubuntu2 hadoop jdk weim@weim:~/myopt$ ls ubuntu ...

Posted by pmzq on Thu, 16 May 2019 05:04:16 +0200

LinkedList Source Code Analysis of Sets

For reprint, please indicate the source: http://www.cnblogs.com/qm-article/p/8903893.html I. Introduction Before introducing the source code, let's first learn about the linked list. Everyone who has touched the data structure knows that there is a kind of structure called linked list. Of course, there are many kinds of linked list, such as the ...

Posted by Mythic Fr0st on Wed, 15 May 2019 04:19:11 +0200

Packaging and Constructor

Lesson Eight                            2018-04-23  02:07:01 Encapsulation and Hiding:Problem: When an object of a class is created, it may come as an unexpected failure to satisfy the actual situation if the corresponding object property is assigned directly through the way of Object.Attribute. Lead out: Control ...

Posted by pagedrop on Tue, 14 May 2019 20:12:09 +0200

Using YANG-UTIL to bring classes into ODL can't load BUG

ODL is based on MDSL, whose model is defined in YAGN language, and the class generated by Yang-tool is used in programming. The data stored in ODL's DataStore needs to be serialized and deserialized. The serialized deserialized code is generated dynamically through Javassist. BindingToNormalizedNodecodec.java public <T ...

Posted by nominator on Sun, 12 May 2019 07:06:22 +0200

Java Collection - List Introduction and Source Parsing

(Source version JDK 8) Collection classes can be grouped into three types in a java.util package: Set, List, Map. JAVA Collection Relationships (sketch) (Picture Source Network) Both List and Set collections inherit the Collection interface and are the top-level interfaces for List and Set, including the following methods: List Collection A L ...

Posted by Web For U on Sat, 11 May 2019 16:25:26 +0200

Java Thread Pool Implementation Principles and Technologies, Read this article is enough

01. Disadvantages of unrestricted threads Multithread software design method can really maximize the computing power of multi-core processors and improve the throughput and performance of production systems. However, if threads are used arbitrarily without control and management, the performance of the system will be adverse ...

Posted by Glyde on Sat, 11 May 2019 15:05:51 +0200

ThreadPoolExecutor Core Source Parsing

This article only introduces the key parts of ThreadPool Executor source code. At the beginning, we introduce some core constants in ThreadPool Executor, and then select several key methods in the thread pool work cycle to analyze its source code implementation. In fact, the best way to see the JDK source code is to look at class f ...

Posted by jenni on Sat, 11 May 2019 11:46:10 +0200

Deep understanding of ThreadLocal (source + memory)

Deep Understanding of ThreadLocal purpose We usually use ThreadLocal to provide thread local variables. Thread local variables have a copy within each Thread, and Thread can only access its own copy. Text interpretation is always obscure. Let's take an example. public class Test { private static ThreadLocal<String> threa ...

Posted by gigya on Sat, 11 May 2019 03:30:54 +0200

Learn "Template Method Model" in one minute

Preface Only a bald head can be stronger. The text has been included in my GitHub warehouse. Welcome to Star: https://github.com/ZhongFuCheng3y/3y In the last article, a reader said that one minute will be the end of the facade model, so today's title is "One minute Learn Template Method Model". Looking back on the design patterns t ...

Posted by edwin_h on Sat, 11 May 2019 01:15:48 +0200

spring carding (2) registering bean s based on annotations

We know that if you want to put beans in the spring container management, you need to register beans in the spring container first, and beans can be registered by xml or annotations. The configuration based on xml is usually configurated by xml tags such as < bean >, < context: component-scan >, and then the spring con ...

Posted by Oni on Fri, 10 May 2019 22:58:01 +0200