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

[SPARK-25200][YARN] Allow specifying HADOOP_CONF_DIR as spark property #407

Closed
wants to merge 11 commits into from

Conversation

adambalogh
Copy link

@adambalogh adambalogh commented Sep 7, 2018

SPARK-25200 - apache#22289

Replicates the behaviour of setting HADOOP_CONF_DIR, but as a spark config spark.yarn.conf.dir

Copy link

@robert3005 robert3005 left a comment

Choose a reason for hiding this comment

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

One minor comment re style otherwise looks good

val confDirsEnvKeys = Seq("HADOOP_CONF_DIR", "YARN_CONF_DIR")
val confDirProp = sparkConf.getOption("spark.yarn.conf.dir")

val confDirPaths = (confDirsEnvKeys.map(sys.env.get) :+ confDirProp).flatMap(_.toList)

Choose a reason for hiding this comment

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

can just do .flatten here

Copy link
Author

Choose a reason for hiding this comment

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

fixed

@robert3005
Copy link

Going to repush to this repo so that tests run

@adambalogh
Copy link
Author

Thanks for the swift review @robert3005 ! I made the changes

@robert3005 robert3005 closed this Sep 13, 2018
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