spark: set JAVA_HOME for hadoop CLASSPATH fetching (#9439)
Sets the `JAVA_HOME` in the `hadoop` subprocess called during `spark.setup_environment`.
This commit is contained in:
parent
a2dc958248
commit
0f5f49f751
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user