Skip to content

Commit

Permalink
Merge pull request #1439 from Tarrasch/list2command_spark_lines
Browse files Browse the repository at this point in the history
spark: Print "Running <cmd>" using list2command
  • Loading branch information
Tarrasch committed Dec 3, 2015
2 parents a627e33 + f1928ee commit 01d96a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luigi/contrib/spark.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def app_command(self):

def run(self):
args = list(map(str, self.spark_command() + self.app_command()))
logger.info('Running: %s', repr(args))
logger.info('Running: {}'.format(subprocess.list2cmdline(args)))
tmp_stdout, tmp_stderr = tempfile.TemporaryFile(), tempfile.TemporaryFile()
proc = subprocess.Popen(args, stdout=tmp_stdout, stderr=tmp_stderr,
env=self.get_environment(), close_fds=True,
Expand Down

0 comments on commit 01d96a8

Please sign in to comment.