Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit execution context / easier switching between modes #1113

Merged
merged 2 commits into from
Dec 4, 2014

Conversation

declerambaul
Copy link

Would something like this makes sense? Is there a way to recover the hadoop config after parsing the args/mode, or would we need to preserve it at startup (like in this pr)?

Sriram pointed me to #989 which is related but more general (and more effort).

@ianoc
Copy link
Collaborator

ianoc commented Dec 4, 2014

This looks like a reasonable incremental improvement. LGTM.

Any thoughts @johnynek ?

* If the repl is started in Hdfs mode, this field is used to preserve the settings
* when switching Modes.
*/
var storedHdfsMode: Option[Mode] = None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Option[Hdfs]

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be private[scalding]? Any reason to not make it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done and done

@johnynek
Copy link
Collaborator

johnynek commented Dec 4, 2014

Great idea. Love to ship it in 0.12.1.

@johnynek
Copy link
Collaborator

johnynek commented Dec 4, 2014

merge when green

johnynek added a commit that referenced this pull request Dec 4, 2014
Implicit execution context / easier switching between modes
@johnynek johnynek merged commit 1201e44 into develop Dec 4, 2014
@johnynek johnynek deleted the dcl/implicit_context branch December 4, 2014 23:54
@ianoc
Copy link
Collaborator

ianoc commented Dec 5, 2014

Do we have a develop-0.12 branch for this to merge to/did we do it?

@johnynek
Copy link
Collaborator

johnynek commented Dec 5, 2014

This just went into develop, which is still 0.12 compatible, I think.

On Thu, Dec 4, 2014 at 2:48 PM, ianoc notifications@github.com wrote:

Do we have a develop-0.12 branch for this to merge to/did we do it?


Reply to this email directly or view it on GitHub
#1113 (comment).

Oscar Boykin :: @posco :: http://twitter.com/posco

@joshualande
Copy link
Contributor

This is great. Thanks so much for adding this nice feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants