def test_environment_variables_018(self): runner = LocalMRJobRunner(hadoop_version='0.18', conf_paths=[]) # clean up after we're done. On windows, job names are only to # the millisecond, so these two tests end up trying to create # the same temp dir with runner as runner: runner._setup_working_dir() self.assertIn('mapred_cache_localArchives', runner._subprocess_env('mapper', 0, 0).keys())
def test_environment_variables_018(self): runner = LocalMRJobRunner(hadoop_version='0.18', conf_paths=[]) # clean up after we're done. On windows, job names are only to # the millisecond, so these two tests end up trying to create # the same temp dir with runner as runner: runner._setup_working_dir() self.assertIn('mapred_cache_localArchives', runner._subprocess_env('M', 0, 0).keys())
class TestIronPythonEnvironment(unittest.TestCase): def setUp(self): self.runner = LocalMRJobRunner(conf_paths=[]) self.runner._setup_working_dir() def test_env_ironpython(self): with patch.object(local, 'is_ironpython', True): environment = self.runner._subprocess_env('M', 0, 0) self.assertIn('IRONPYTHONPATH', environment) def test_env_no_ironpython(self): with patch.object(local, 'is_ironpython', False): environment = self.runner._subprocess_env('M', 0, 0) self.assertNotIn('IRONPYTHONPATH', environment)
def test_environment_variables_021(self): runner = LocalMRJobRunner(hadoop_version='0.21', conf_paths=[]) with runner as runner: runner._setup_working_dir() self.assertIn('mapreduce_job_cache_local_archives', runner._subprocess_env('mapper', 0, 0).keys())
def test_environment_variables_021(self): runner = LocalMRJobRunner(hadoop_version='0.21', conf_paths=[]) with runner as runner: runner._setup_working_dir() self.assertIn('mapreduce_job_cache_local_archives', runner._subprocess_env('M', 0, 0).keys())