Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
rabbitmq-db/
rabbitmq-logs

.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-22041afd0340ce965d47ae6ef1cefeee28c7c493a6346c4f15d667ab976d596c.svg)](https://classroom.github.com/a/uyodabcP)
## Лабораторная работа: Реализация MapReduce для анализа данных о продажах с ипользованием HADOOP!!!
# Цель работы

Expand Down
30 changes: 30 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
plugins {
// kotlin("jvm") version "1.9.20"
application
}

group = "org.itmo"
version = "1.0-SNAPSHOT"

repositories {
mavenCentral()
}

dependencies {
implementation("org.apache.hadoop:hadoop-client:3.3.6")
implementation("org.apache.hadoop:hadoop-common:3.3.6")
implementation("org.apache.hadoop:hadoop-mapreduce-client-core:3.3.6")
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.test {
useJUnitPlatform()
}

application {
mainClass.set("Main")
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
92 changes: 92 additions & 0 deletions final_report.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
With 1 reducers
Category Revenue; Quantity;
clothing ; 4560302171.9860; 911487;
video games ; 4560108307.4950; 913326;
baby products ; 4541435362.2510; 907186;
beauty products ; 4533874327.8490; 906417;
gardening tools ; 4531880837.7360; 905841;
automotive ; 4529861310.7390; 904962;
music instruments ; 4512294466.1370; 902389;
furniture ; 4503986763.1620; 900244;
electronics ; 4497526631.0390; 903266;
pet supplies ; 4488741730.3820; 896724;
stationery ; 4481794912.3950; 898265;
home appliances ; 4473888361.7340; 895815;
sports equipment ; 4469387812.3360; 894287;
groceries ; 4466915230.9700; 895470;
footwear ; 4465574983.3610; 894424;
jewelry ; 4463823670.7900; 893980;
office equipment ; 4463564947.3810; 892370;
toys ; 4462453654.1190; 892741;
books ; 4457620825.9530; 890948;
health & wellness ; 4454082892.4910; 890475;

With 2 reducers
Category Revenue; Quantity;
clothing ; 4560302171.9860; 911487;
video games ; 4560108307.4950; 913326;
baby products ; 4541435362.2510; 907186;
beauty products ; 4533874327.8490; 906417;
gardening tools ; 4531880837.7360; 905841;
automotive ; 4529861310.7390; 904962;
music instruments ; 4512294466.1370; 902389;
furniture ; 4503986763.1620; 900244;
electronics ; 4497526631.0390; 903266;
pet supplies ; 4488741730.3820; 896724;
stationery ; 4481794912.3950; 898265;
home appliances ; 4473888361.7340; 895815;
sports equipment ; 4469387812.3360; 894287;
groceries ; 4466915230.9700; 895470;
footwear ; 4465574983.3610; 894424;
jewelry ; 4463823670.7900; 893980;
office equipment ; 4463564947.3810; 892370;
toys ; 4462453654.1190; 892741;
books ; 4457620825.9530; 890948;
health & wellness ; 4454082892.4910; 890475;

With 4 reducers
Category Revenue; Quantity;
clothing ; 4560302171.9860; 911487;
video games ; 4560108307.4950; 913326;
baby products ; 4541435362.2510; 907186;
beauty products ; 4533874327.8490; 906417;
gardening tools ; 4531880837.7360; 905841;
automotive ; 4529861310.7390; 904962;
music instruments ; 4512294466.1370; 902389;
furniture ; 4503986763.1620; 900244;
electronics ; 4497526631.0390; 903266;
pet supplies ; 4488741730.3820; 896724;
stationery ; 4481794912.3950; 898265;
home appliances ; 4473888361.7340; 895815;
sports equipment ; 4469387812.3360; 894287;
groceries ; 4466915230.9700; 895470;
footwear ; 4465574983.3610; 894424;
jewelry ; 4463823670.7900; 893980;
office equipment ; 4463564947.3810; 892370;
toys ; 4462453654.1190; 892741;
books ; 4457620825.9530; 890948;
health & wellness ; 4454082892.4910; 890475;

With 8 reducers
Category Revenue; Quantity;
clothing ; 4560302171.9860; 911487;
video games ; 4560108307.4950; 913326;
baby products ; 4541435362.2510; 907186;
beauty products ; 4533874327.8490; 906417;
gardening tools ; 4531880837.7360; 905841;
automotive ; 4529861310.7390; 904962;
music instruments ; 4512294466.1370; 902389;
furniture ; 4503986763.1620; 900244;
electronics ; 4497526631.0390; 903266;
pet supplies ; 4488741730.3820; 896724;
stationery ; 4481794912.3950; 898265;
home appliances ; 4473888361.7340; 895815;
sports equipment ; 4469387812.3360; 894287;
groceries ; 4466915230.9700; 895470;
footwear ; 4465574983.3610; 894424;
jewelry ; 4463823670.7900; 893980;
office equipment ; 4463564947.3810; 892370;
toys ; 4462453654.1190; 892741;
books ; 4457620825.9530; 890948;
health & wellness ; 4454082892.4910; 890475;

Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading