Hadoop[03-03] access count test based on DFS and ZKFC (Hadoop 2.0)
Hadoop[03-03] access count test based on DFS and ZKFC (Hadoop 2.0)
Prepare the environment
Prepare multiple virtual machines and start dfs and zookeeper See link for details: Hadoop2.0 start DFS and Zookeeper
Some data of multiple virtual machines are as follows
numberhost nameHost domain nameip address①ToozkyToozky192.168.64.220②Toozky2T ...
Posted by chantown on Fri, 11 Feb 2022 01:20:17 +0100
Introduction notes to deep learning and pytoch
1, Basic operation
Chinese document of pythonPytorch
https://pytorch-cn.readthedocs.io/zh/latest/package_references/torch-optim/
1, Anaconda basic operation
1,use conda establish Python Virtual environment (in) conda prompt (completed in environment)
conda create -n environment_name python=X.X
2,Activate virtual environment (in) conda prom ...
Posted by cwetherbee on Fri, 11 Feb 2022 01:10:15 +0100
Mybatis plus quick start (integrating the latest version of springboot 2.4.5)
Mybatis Plus
quick get start
maven configuration
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0. ...
Posted by karan23424 on Fri, 11 Feb 2022 01:09:28 +0100
Operator-SDK: Custom CRD for Node request information collection
Operator-SDK: Custom CRD for Node request information collection
A demo for information collection, which writes a Controller custom CRD to implement Node's request information collection. The primary purpose is to obtain CPU and memory usage. Part of the code refers to the source implementation of describe in the kubectl command.
Cluster ...
Posted by amit on Fri, 11 Feb 2022 01:09:07 +0100
Android Gobang learning
Gobang
Android course homework, Gobang production. The school curriculum is too complicated and there are many skill points. I learn everything, but I don't learn very well. Because JAVA only knows a little, Android development also learned a little fur. This code is written step by step by turning over the textbook by Android Xiaobai, which h ...
Posted by feldon23 on Fri, 11 Feb 2022 01:05:53 +0100
Pytest study notes - Skip and Xfail
skip and xfail
preface
In actual use, it is often necessary to skip some test cases. pytest provides skip and ifskip to skip the test
skip
Tag in test function
Usage example: @ pytest mark. Skip (reason = "the reason for skipping will be printed in the execution result"), for example 🌰:
import pytest
def test_1():
print(" ...
Posted by iii on Fri, 11 Feb 2022 00:59:38 +0100
On the way of creating objects in Java
Four ways to create objects in Java
1. Create objects through new
Creating objects through new is the most common way in Java and the way we first learned to create objects. However, creating objects through new will increase the overall coupling degree. We should pay attention to the impact of coupling degree in our future programming life, ...
Posted by designationlocutus on Fri, 11 Feb 2022 00:57:18 +0100
Crawl to the public comment website and store comments
1, Reptile preparation
1.1 climbing target
The target of the public comment Web crawler is the comment data of the store. The example is shown in the figure below.
1.2 web page analysis
First log in, search for bubble water by keyword, and click a store at will to view all the evaluation interfaces, as shown in the figure below. First ...
Posted by SkippyK on Fri, 11 Feb 2022 00:38:36 +0100
Algorithm - heap sort
Large top heap: Based on the complete binary tree, the value of each node is greater than or equal to the value of its left and right child nodes
p moves forward through the loop p -- pointer in the main function
public static void main(String[] args) {
int[] arr = {8,7,3,5,4,9,1,3};
for (int p = arr.length-1;p>=0;p--){
...
Posted by witham on Fri, 11 Feb 2022 00:35:33 +0100
[service gateway] [getway] of spring cloud micro Service -- continuous update
Why use a gateway?
All requests can be uniformly standardized and processed through the gateway side, and unified logging, permission verification, flow restriction, interface service security reinforcement, reverse proxy, etc. can also be done.
The function of this gateway is equivalent to that you go to the hospital to see a doctor. First ...
Posted by maca134 on Fri, 11 Feb 2022 00:29:16 +0100