From d2c603bf5e008d6abbf9c7978c14511ae008c1b9 Mon Sep 17 00:00:00 2001 From: skakker Date: Fri, 28 Jul 2017 19:04:10 +0530 Subject: [PATCH] added logic for map reduce time-skew heuristic (#267) --- app-conf/HeuristicConf.xml | 12 +-- app-conf/elephant.conf | 2 +- .../mapreduce/data/MapReduceTaskData.java | 7 ++ ...uristic.java => GenericSkewHeuristic.java} | 98 ++++++++++++++----- ...euristic.java => MapperSkewHeuristic.java} | 4 +- ...uristic.java => ReducerSkewHeuristic.java} | 4 +- ...w.scala.html => helpMapperSkew.scala.html} | 2 +- ....scala.html => helpReducerSkew.scala.html} | 4 +- .../drelephant/analysis/AnalyticJobTest.java | 34 +++---- .../heuristic/HeuristicConfigurationTest.java | 4 +- ...Test.java => MapperSkewHeuristicTest.java} | 50 +++++++++- ...est.java => ReducerSkewHeuristicTest.java} | 50 +++++++++- .../heuristic/HeuristicConfTest1.xml | 6 +- .../heuristic/HeuristicConfTest2.xml | 4 +- .../heuristic/HeuristicConfTest3.xml | 4 +- .../heuristic/HeuristicConfTest4.xml | 4 +- .../heuristic/HeuristicConfTest5.xml | 4 +- test/resources/test-init.sql | 2 +- test/rest/RestAPITest.java | 9 +- .../components/heuristic-details-list-test.js | 2 +- .../components/heuristics-summary-test.js | 2 +- .../single-heuristic-detail-test.js | 2 +- 22 files changed, 230 insertions(+), 80 deletions(-) rename app/com/linkedin/drelephant/mapreduce/heuristics/{GenericDataSkewHeuristic.java => GenericSkewHeuristic.java} (55%) rename app/com/linkedin/drelephant/mapreduce/heuristics/{MapperDataSkewHeuristic.java => MapperSkewHeuristic.java} (90%) rename app/com/linkedin/drelephant/mapreduce/heuristics/{ReducerDataSkewHeuristic.java => ReducerSkewHeuristic.java} (89%) rename app/views/help/mapreduce/{helpMapperDataSkew.scala.html => helpMapperSkew.scala.html} (94%) rename app/views/help/mapreduce/{helpReducerDataSkew.scala.html => helpReducerSkew.scala.html} (91%) rename test/com/linkedin/drelephant/mapreduce/heuristics/{MapperDataSkewHeuristicTest.java => MapperSkewHeuristicTest.java} (65%) rename test/com/linkedin/drelephant/mapreduce/heuristics/{ReducerDataSkewHeuristicTest.java => ReducerSkewHeuristicTest.java} (65%) diff --git a/app-conf/HeuristicConf.xml b/app-conf/HeuristicConf.xml index 21a00168a..833fa2bc3 100644 --- a/app-conf/HeuristicConf.xml +++ b/app-conf/HeuristicConf.xml @@ -21,9 +21,9 @@ mapreduce - Mapper Data Skew - com.linkedin.drelephant.mapreduce.heuristics.MapperDataSkewHeuristic - views.html.help.mapreduce.helpMapperDataSkew + Mapper Skew + com.linkedin.drelephant.mapreduce.heuristics.MapperSkewHeuristic + views.html.help.mapreduce.helpMapperSkew