Configuration and startup of Hadoop pseudo distributed environment
1. Environmental preparation
On a linux machine, install the hadoop running environment. For the installation method, see: Establishment of HADOOP operation environment
2. Start HDFS and run MapReduce
2.1. Configure cluster
1. Configuration: hadoop-env.sh
Get the installation path of JDK in Linux system:
[root@ hadoop101 ~]# echo $JAVA_HOME
/op ...
Posted by spooke2k on Tue, 25 Feb 2020 19:31:27 -0800
Summary of Spring Boot actual combat project
Summary of Spring Boot actual combat project (1)
Project design ideas (steps)
Development environment construction and log
git common commands
Learning methods
List of projects available for reference
1, Project design ideas (steps)
1. Analysis function: what are the functions and application scena ...
Posted by Paingiver on Tue, 25 Feb 2020 19:01:18 -0800
Several useful python tools
1. PySnooper - debugging Kit
Installation:
pip install pysnooper
Using PySnooper to add a decorator to the function to be debugged, you can get the log of the running function, including the executed code line, execution time and the time when the local variable changes
Example
import pysnooper
@pys ...
Posted by The-Last-Escape on Mon, 24 Feb 2020 21:40:26 -0800
Self implementation of Spring core IOC and AOP
Article directory
Spring
1. Core Container
2,Data Access
3,Web
4,AOP
5,Test
Correspondence between Spring version and Java version
IoC
1. XML parsing:
2. Create objects dynamically based on the information obtained in step 1
The spring-ioc.xml file is as follows
Class User
Spring provides point p ...
Posted by loveranger on Mon, 24 Feb 2020 20:09:07 -0800
Collective intelligent programming - Chapter Five optimization
Group tour
import time
import random
import math
people=[('seymour','BOS'),
('FRANNY','DAL'),
('ZOOEY','CAK'),
('WALT','MIA'),
('buddy','ORD'),
('LES','OMA')]
destination='LGA'
Flight data schedule.txt
Start, end, departure time, arrival time, price
Code optim ...
Posted by kaos057 on Mon, 24 Feb 2020 01:36:29 -0800
JavaWeb Project Programming Specification
Coding specifications in the work, which need to be written in the future.
Before encoding, first write according to Alibaba's development specifications, if using idea, use its plug-ins.
In the case of springmvc, the following styles are best used to define the path:
@RequestMapping(value = "/upda ...
Posted by Clinger on Sun, 23 Feb 2020 19:25:16 -0800
persepolis in open source code learning [2]
1, Download Interface
1. Main interface download display
MainWindow first initializes aria and starts aria2. The startup method is in download.py.
# start aria2
start_aria = StartAria2Thread()
self.threadPool.append(start_aria)
self.threadPool[0].start()
sel ...
Posted by 0riole on Sun, 23 Feb 2020 00:38:50 -0800
Principle analysis of mybatis Spring integration
I have combed the workflow and key source code of MyBatis when it is used alone. Now let's see how MyBatis works when it is integrated with Spring
Start with use
Spring integrates MyBatis
1. Introduce dependency. In addition to the dependency of MyBatis, you need to introduce the dependency of MyB ...
Posted by juschillin on Sat, 22 Feb 2020 20:43:01 -0800
Get a thorough understanding of Auto-assembly and Autoowired in Spring
Untitled
1. Automatic assembly
When Spring assembles Bean properties, it is sometimes quite clear that a reference to a Bean needs to be assembled to the specified properties.For example, if there is only one Bean of type org.mybatis.spring.SqlSessionFactoryBean in our application context, then any ...
Posted by 990805 on Sat, 22 Feb 2020 16:17:00 -0800
python3-cookbook notes: Chapter VI Data Encoding and Processing
Each section in the python3-cookbook explores the best solution of Python 3 to a given problem in three parts: problem, solution, and discussion, or how Python 3's own data structure, functions, classes, and so on, can be better used in a given problem.This book is very helpful for understanding Python 3 and improving Python programming capabil ...
Posted by Slashscape on Sat, 22 Feb 2020 08:48:46 -0800