swsnu / swppspr2015

Repository for discussing common issues that are not project-specific, SNU SWPP Spring 2015
https://sites.google.com/site/snuswppspr2015/
0 stars 0 forks source link

REEF HW questions - how to use TaskScheduler properly, TaskFailureHandler #17

Open RaySuhyunLee opened 9 years ago

RaySuhyunLee commented 9 years ago

Hello. I have two questions about assignment 2.

  1. I'm trying out the tutorial in this link. I've checked that it launches the TaskScheduler, but I have no idea how I can use it since there is no mention about port. I guess that the url would be localhost when running in local machine, but how can I check which port it is running?
  2. The specification for this assignment says I need to implement two handlers based on TaskFailureHandler. But as far as I see, there is no file named TaskFailureHandler.java in the given directory(lang/java/reef-examples/src/main/java/org/apache/reef/examples/scheduler). Do I have to implement it by my self? If so, I'd like to know what should TaskFailureHandler do.

Thanks and happy weekend! Suhyun Lee

jsjason commented 9 years ago

Hi!

  1. Take a look at the reef-webserver package, which contains classes like org.apache.reef.webserver.HttpServer. It shouldn't be too hard to find out how PortNumber is defined.
  2. There is no pre-defined TaskFailureHandler. It's your job to define it. Also, read the assignment doc carefully: TaskFailureHandler itself is not a concrete class; it should be an interface.
bgchun commented 9 years ago

This homework's designed to test how you can quickly understand large codebase and figure out code you have to write. You don't need to write much code, I believe. Also, it requires systematic testing of your code under fault injection. It'd be good to write fault injection code for this purpose.

RaySuhyunLee commented 9 years ago

I understand. Thank you very much!