Skip to content

Remove automatic directory creation of mapred.system.dir #101

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

childsb
Copy link
Contributor

@childsb childsb commented Jun 4, 2014

The mapred.system.dir is required for map reduce jobs to run. Up until now the SHIM creates the directory as a user convenience, but this isn't the best behavior and could lead to security problems. The directory should be created before the user starts hadoop.

This patch removes the automatic directory creation and instead throws a Runtime exception.

…throw a runtime exception. The directory should already be created with permissions before hadoop starts
@rootfs
Copy link
Contributor

rootfs commented Jun 4, 2014

+1
this is great

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.

2 participants