Skip to content
Snippets Groups Projects
Commit 0f5f49f7 authored by Matt Belhorn's avatar Matt Belhorn Committed by Peter Scheibel
Browse files

spark: set JAVA_HOME for hadoop CLASSPATH fetching (#9439)

Sets the `JAVA_HOME` in the `hadoop` subprocess called during
`spark.setup_environment`.
parent a2dc9582
Branches
Tags
No related merge requests found
......@@ -49,6 +49,7 @@ def install_dir(dirname):
@when('+hadoop')
def setup_environment(self, spack_env, run_env):
hadoop = self.spec['hadoop'].command
hadoop.add_default_env('JAVA_HOME', self.spec['java'].home)
hadoop_classpath = hadoop('classpath', output=str)
# Remove whitespaces, as they can compromise syntax in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment