pasalab / mr-course-assignments Goto Github PK
View Code? Open in Web Editor NEWAssignments for courses of MapReduce
License: Apache License 2.0
Assignments for courses of MapReduce
License: Apache License 2.0
助教您好,我的作业是326,其中有一段,需要将
Map<String, Counter> counters = mr.getCounters(new MetricFilter() {
@OverRide
public boolean matches(String name, Metric metric) {
return !(name.endsWith("Ops"));
}
});
替换为
Map<String, Counter> counters = mr.getCounters((name, metric) -> !(name.endsWith("Ops")));
但是总是编译失败,报错。
我是直接将代码复制粘贴的,还是一直报错。
用源码编译的时候就success,助教,这部分代码替换成这样真的没问题吗?因为我真的不知道怎么改了啊。。。麻烦解答了。。。谢谢。。。
(Your NJUID here)
MF1833098
(Your Task link here)
(Your PR link here)
MF1833055 ‘s PR link is wrong.
MF1833022
Error after executing the following command:
mvn clean install -DskipTests
Error details:
[ERROR] GC overhead limit exceeded -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
I have added
export MAVEN_OPTS="-Xms4096m -Xmx4096m -XX:PermSize=1024m -XX:MaxPermSize=1024m"
to the file .bash_profile, but it doesn't work.
How can I solve this problem?
Thank you!
I have completed my assignment about the issue#258 with the corresponding pull request, and my NJUID is DZ1833038
. Thanks.
安照教程修改了指定的部分 但一直通不过 #289
Alluxio/alluxio#7972
MF1833082
任务是:
Replace
StringBuffer sSum = new StringBuffer();
with
StringBuilder sSum = new StringBuilder();
本地是build success的,不知道为什么提交后就Test Failed的了。
(My NJUID here)
MF1833065
(My Task link here)
(My PR link here)
(Your NJUID here)
MF1833037
(Your Task link here)
(Your PR link here)
MF1833041
MF1833070
Alluxio/new-contributor-tasks/issues/298
MF1833065
(Your NJUID here)
MF1833084
(Your Task link here)
(Your PR link here)
Could i use the master branch to commit my changes? Now i have created a new branch and commit the changes to my own github repository. And i shall create a pull request, but i don't konw whether it is right.
push新改动到对应分支后,需要额外的操作吗?
MF1833080
MF1833099
MF1833007
(Your NJUID here)
MG1833012
(Your Task link here)
(Your PR link here)
MG1833008
MG3318015
MG1833001
任务是:
Replace
Ordering.natural().onResultOf(new Function<UIFileInfo, Comparable<String>>() {
@Override
public Comparable<String> apply(UIFileInfo input) {
return input.mAbsolutePath;
}
});
with
Ordering.natural().onResultOf((Function<UIFileInfo, Comparable<String>>) input -> input.mAbsolutePath);
问题是:
Merged build finished. Test FAILed.
看之前的 issue 有提到每行代码的最大长度的问题,也尝试了多换几行,但是还是出现同样的问题。
PR 地址:
Alluxio/alluxio#8002
助教:
您好!
MF1833098
Alluxio/alluxio#7981
任务是:
Replace
if (part1 == part2) {
return 0;
}
if (part1 < part2) {
return -1;
}
return 1;
with
return Long.compare(part1, part2);
在本地测试的时候是build success,提交之后的结果为test failed
MF1833109
MF1833021
(Your NJUID here)
MF1833038
(Your Task link here)
(Your PR link here)
MF1833006
MF1833029
MF1833097
MF1833066
DZ1833024
MF1833102
MF1833003
MF1833055
NJUID: MF1833066
(Your NJUID here)
DZ1833002
(Your Task link here)
(Your PR link here)
助教你好,我的任务是:
Replace
MetricsSystem.registerGaugeIfAbsent(MetricsSystem.getMetricName(CAPACITY_TOTAL),
new Gauge<Long>() {
@Override
public Long getValue() {
return blockWorker.getStoreMeta().getCapacityBytes();
}
});
MetricsSystem.registerGaugeIfAbsent(MetricsSystem.getMetricName(CAPACITY_USED),
new Gauge<Long>() {
@Override
public Long getValue() {
return blockWorker.getStoreMeta().getUsedBytes();
}
});
MetricsSystem.registerGaugeIfAbsent(MetricsSystem.getMetricName(CAPACITY_FREE),
new Gauge<Long>() {
@Override
public Long getValue() {
return blockWorker.getStoreMeta().getCapacityBytes() - blockWorker.getStoreMeta()
.getUsedBytes();
}
});
with
MetricsSystem.registerGaugeIfAbsent(MetricsSystem.getMetricName(CAPACITY_TOTAL),
() -> blockWorker.getStoreMeta().getCapacityBytes());
MetricsSystem.registerGaugeIfAbsent(MetricsSystem.getMetricName(CAPACITY_USED),
() -> blockWorker.getStoreMeta().getUsedBytes());
MetricsSystem.registerGaugeIfAbsent(MetricsSystem.getMetricName(CAPACITY_FREE),
() -> blockWorker.getStoreMeta().getCapacityBytes() - blockWorker.getStoreMeta()
.getUsedBytes());
提交之后,Merged build finished. Test PASSed.但是最后给的回复是:Thanks for contributing! It looks like this change has already been made by another pull request。请问一下这是什么情况呀?
MG1833029
DZ1833020
(Your NJUID here)
MG1833038
(Your Task link here)
(Your PR link here)
(Your NJUID here)
MG1833001
(Your Task link here)
(Your PR link here)
MF1833029
MF1833003
MG1833018 房康
MG1833016
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.