[REEF-899] Make JobSubmissionDirectory in REEF-Runtime-YARN #606
Conversation
I'm not sure about this change. This parameter only makes sense on the YARN runtime, after all. It is in the wrong package, though. |
Oh, then, may I change that package name according to the directory path like the following?
I guessed that the reason of package naming was both |
This is tricky, as the class is |
I see. |
@markusweimer , I'm preparing a whole round of deprecation / renaming by maintaining two files in their own correct packages.
By the way, it seems to be really tricky in two places.
|
This is tricky indeed. Maybe we need to deprecate it in this version, and make it private in the next? People shouldn't bind to it directly anyhow. |
Thank you! I will do like that by splitting this issue into a few sub-issues. |
838dcd9
to
d6630e9
Compare
To move JobSubmissionDirectory from 'org.apache.reef.driver.parameters' into 'org.apache.reef.runtime.yarn.driver.parameters' package, this PR * Rename the package of existing one in reef-runtime-yarn * Make a new deprecated o.a.r.d.p.JobSubmissionDirectory in reef-common * Add 'TODO[JIRA REEF-904]'s JIRA: [REEF-899](https://issues.apache.org/jira/browse/REEF-899) Pull request: This closes apache#606
d6630e9
to
f0e9f69
Compare
To move JobSubmissionDirectory from 'org.apache.reef.driver.parameters' into 'org.apache.reef.runtime.yarn.driver.parameters' package, this PR * Rename the package of existing one in reef-runtime-yarn * Make a new *deprecated* o.a.r.d.p.JobSubmissionDirectory in reef-common * Add 'TODO[JIRA REEF-904]'s JIRA: [REEF-899](https://issues.apache.org/jira/browse/REEF-899) Pull request: This closes apache#606
f0e9f69
to
257fe91
Compare
To move JobSubmissionDirectory from 'org.apache.reef.driver.parameters' into 'org.apache.reef.runtime.yarn.driver.parameters' package, this PR * Rename the package of existing one in reef-runtime-yarn * Make a new *deprecated* o.a.r.d.p.JobSubmissionDirectory in reef-common * Add 'TODO[JIRA REEF-904]'s JIRA: [REEF-899](https://issues.apache.org/jira/browse/REEF-899) Pull request: This closes apache#606
257fe91
to
e6d3c1b
Compare
To move JobSubmissionDirectory from 'org.apache.reef.driver.parameters' into 'org.apache.reef.runtime.yarn.driver.parameters' package, this PR * Rename the package of existing one in reef-runtime-yarn * Make a new *deprecated* o.a.r.d.p.JobSubmissionDirectory in reef-common * Add 'TODO[JIRA REEF-904]'s JIRA: [REEF-899](https://issues.apache.org/jira/browse/REEF-899) Pull request: This closes apache#606
Sorry, @markusweimer . I was confused.
If I missed something, please let me know. |
|
||
/** | ||
* @deprecated in 0.14. Use org.apache.reef.runtime.yarn.driver.parameters.JobSubmissionDirectory. | ||
* TODO[JIRA REEF-904]: Act on deprecated JobSubmissionDirectory and JOB_SUBMISSION_DIRECTORY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move the TODO into a //
comment. I don't think we have a style guide for this, but this is how we always do it elsewhere.And I fully expect this to be missed if we ever write a script to find them :-)
This could work. However, we need to validate on an actual cluster to be sure this doesn't break anything. Can you test on Linux/YARN? |
To move JobSubmissionDirectory from 'org.apache.reef.driver.parameters' into 'org.apache.reef.runtime.yarn.driver.parameters' package, this PR * Rename the package of existing one in reef-runtime-yarn * Make a new *deprecated* o.a.r.d.p.JobSubmissionDirectory in reef-common * Add 'TODO[JIRA REEF-904]'s JIRA: [REEF-899](https://issues.apache.org/jira/browse/REEF-899) Pull request: This closes apache#606
e6d3c1b
to
ec78194
Compare
Yes. It passed
Actually, I used a docker-based Hadoop cluster (1 name node + 3 data node) for development. |
@dongjoon-hyun @markusweimer Just to be safe, it'd be also good to test on HDInsight. |
+1 for the idea, @bgchun . But, I'm wondering how to do by myself? |
@markusweimer @afchung Suggestion? |
@bgchun @dongjoon-hyun We have access to HDInsight clusters. I'll test and merge this PR if it passes. Thanks! |
Thank you, @afchung . |
@afchung Can you please also check a .NET app? This might have implications for those as well. |
@markusweimer @dongjoon-hyun Ran C# and Java jobs on HDInsight and local, and everything has passed. Thanks! |
Thank you for testing, @afchung ! |
To move JobSubmissionDirectory from 'org.apache.reef.driver.parameters' into 'org.apache.reef.runtime.yarn.driver.parameters' package, this PR * Rename the package of existing one in reef-runtime-yarn * Make a new *deprecated* o.a.r.d.p.JobSubmissionDirectory in reef-common * Add 'TODO[JIRA REEF-904]'s JIRA: [REEF-899](https://issues.apache.org/jira/browse/REEF-899) Pull request: This closes apache#606
According to the package name of JobSubmissionDirectory,
'org.apache.reef.driver.parameters', it is more natural that
JobSubmissionDirectory is in REEF-Common module with other parameters
having the same package name together.
JIRA:
REEF-899
Pull request:
This closes #