原创 Mybatis05_逆向工程

Mybatis05_逆向工程 數據庫 t_user 表結構和內容: 創建maven工程 pom文件: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="

原创 Hadoop_MapReduce_Join示例

Hadoop_MapReduce_Join示例 輸入文件1: D:\data\join\emp.txt 1001 1 zhangsan 1002 2 lisi 1003 3 tom 1004 3 amy 輸入文件2: D:\da

原创 Hadoop_MapReduce_數據去重示例

Hadoop_MapReduce_數據去重 示例:刪除輸入文件中的重複數據,重複的數據只保留一個 輸入文件1:D:\data\distinct\file1.txt zhangsan 500 450 jan lisi 200 150

原创 Mybatis03_一對多查詢

Mybatis03_一對多查詢 student表結構: student表內容: classes表結構: classes表內容: Student實體: package com.blu.entity; import lombo

原创 Hadoop_MapReduce_topN示例

Hadoop_MapReduce_topN示例 倒序輸出測試數據中的5個最大的數字 測試文件1:D:\data\topN\topN.txt 3 9 3 7 5 6 2 85 4 5 101 1 6 1 1 0 2 82 5 90

原创 Hadoop_數據清洗示例

Hadoop_數據清洗 示例(去除空行、開頭爲空格的數據): 原始數據:D:\data\testdata.txt zhangsan 500 450 jan zhangsan 550 450 feb lisi 210 150

原创 Hadoop_MapReduce_求最大值和最小值

Hadoop_MapReduce_求最大值和最小值 原始數據:D:\data\nums.txt 需求:找出最大和最小的數字 3 4 1 10 15 22 8 hadoop 5K 62 1 MaxMin package c

原创 Mybatis02_通過Mapper代理實現自定義接口

Mybatis02_通過Mapper代理實現自定義接口 在Mybatis01_使用原生接口開發工程基礎上創建⾃定義接⼝AccountRepository,編寫增刪改查方法: package com.blu.repository

原创 No tests found with test runner 'JUnit 5'

JUnit單元測試報錯:No tests found with test runner 'JUnit 5’ 原因:運行的juint版本和包引入的juint版本不一致。 解決辦法:右鍵測試方法->Run Configuration

原创 Mybatis01_使用原生接口開發

新建 Maven ⼯程,pom.xml <dependencies> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifa

原创 Hadoop_MapReduce_OutputFormat工作原理

Hadoop_MapReduce_OutputFormat工作原理 OutputFormat 的作用: 校驗job中指定輸出路徑是否存在 將結果寫入輸出文件 OutputFormat是一個抽象類,有以下幾個子類: DBOut

原创 SpringBoot_JPA

SpringBoot_JPA 創建SpringBoot工程:springboot_jpa 生成項目的pom文件: <?xml version="1.0" encoding="UTF-8"?> <project xm

原创 Hadoop_MapReduce_Shuffle工作原理

Hadoop_MapReduce_Shuffle工作原理 Shuffle 是連接 Mapper 和 Reducer 之間的橋樑,Mapper的輸出結果必須經過Shuffle環節才能傳遞給Reducer Shuffle分爲Map階段

原创 Hadoop_MapReduce工作原理

Hadoop_MapReduce工作原理 六個階段: Input 文件輸入 Splitting 分片 Mapping Shuffling Reducing Final result mapper的輸入數據爲KV對形式,每一個K

原创 配置創建Maven工程的默認JDK版本

配置創建Maven工程的默認JDK版本 在eclipse中創建maven項目時,默認的JDK運行版本是jdk1.5,可以通過右鍵項目 -> Build Path -> Configure Build Path,Remove掉舊版本